Status API
The Status API allows you to fetch the status of a specific transaction using either the `transaction_id` or `order_id`. This endpoint provides real-time information about the transaction, including its status, amount, currency, and customer details.
API Endpoint
Example:
https://backend.pay.agency/api/live/status/PA01862809(using transaction_id)https://backend.pay.agency/api/live/status/order67890(using order_id)
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | String | Yes | The unique ID of the transaction to retrieve its status. |
order_id | String | No | The order ID, if provided during the transaction. |
Headers
| Header Name | Description |
|---|---|
Content-Type | Specifies the content type. Always set to application/json. |
Authorization | Bearer token for authentication. |
Success Response
Important
The response format differs based on the payment method:
- Card & APM Transactions: Standard response with
refundandchargebackinformation. - Crypto Payin Transactions: Enhanced response with additional cryptocurrency-specific fields like
crypto_currency,crypto_network,crypto_payment_status, and payment amounts.
Card & APM Transactions
If the request is successful and a valid transaction_id or order_id is provided for a card or APM transaction, the API will return the following response:
Crypto Payin Transactions
For Crypto Payin transactions, the API returns additional fields specific to cryptocurrency payments:
Note
This response format is specifically for Crypto Payin transactions only. Other crypto payment types may have different response structures.
Additional Crypto Fields:
| Field | Type | Description |
|---|---|---|
crypto_currency | String | The cryptocurrency used for the payment (e.g., TRX, BTC, ETH, USDT). |
crypto_network | String | The blockchain network used for the transaction (e.g., TRON, Ethereum). |
crypto_payment_status | String | The status of the crypto payment. Possible values: FULLPAID, UNDERPAID, OVERPAID. |
crypto_amount | Number | The expected cryptocurrency amount for the transaction. |
crypto_paid_amount | Number | The actual cryptocurrency amount paid by the customer. |
Crypto Payment Status
- FULLPAID: The exact crypto amount was received. Transaction is successful.
- UNDERPAID: Less than the required amount was received. Transaction may fail.
- OVERPAID: More than the required amount was received. Excess amount handling depends on your configuration.