Skip to main content
GET
/
tx
/
payment-status
/
{reference}
Get Payment Status
curl --request GET \
  --url https://api.stablepay.ai/tx/payment-status/{reference} \
  --header 'Authorization: Bearer <token>'
{
  "status": "processed",
  "timestamp": "2023-11-07T05:31:56Z",
  "amount": 1
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme. Format: Bearer {STA_xxxx}

Path Parameters

reference
string
required

Reference of the transaction to confirm.

Minimum length: 1

Response

Transaction status fetched successfully

status
enum<string>
required

The status of the transaction can either be processed or not processed.

Available options:
processed,
not_processed
Example:

"processed"

timestamp
string<date-time>

Timestamp when the status was last updated.

amount
number

Transaction amount if processed.

Required range: x >= 0