StatusApi
Transaction Status
The Status API retrieves the status of a specific transaction by `transaction_id` or `order_id`. This endpoint returns real-time transaction data, including status, amount, currency, and customer information.
API Endpoint
Live APIProduction environment
GET
https://api.thepayment.company/api/live/status/{id}Test APISandbox environment
GET
https://api.thepayment.company/api/test/status/{id}Examples:
- https://api.thepayment.company/api/live/status/TPC01862809 (lookup with
transaction_id) - https://api.thepayment.company/api/live/status/order67890 (lookup with
order_id)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | String | Yes | Unique transaction ID used to fetch the transaction status. |
order_id | String | No | Order ID supplied when the transaction was created. |
Headers
| Header Name | Description |
|---|---|
Content-Type | Defines the content type. Always use application/json. |
Authorization | Bearer token used for authentication. |
Sample Responses
Note
Response payload format varies by payment method:
- Card & APM transactions: Standard response with
refundandchargebackdetails. - Crypto Payin transactions: Extended response with crypto-specific fields such as
crypto_currency,crypto_network,crypto_payment_status, and crypto payment amounts.
Card and APM transaction:
Crypto pay-in transaction:
Additional Crypto Response Fields:
| Field | Type | Description |
|---|---|---|
crypto_currency | String | Cryptocurrency used for the payment, such as TRX, BTC, ETH, or USDT. |
crypto_network | String | Blockchain network used for the transaction, such as TRON or Ethereum. |
crypto_payment_status | String | Current crypto payment status. Possible values are FULLPAID, UNDERPAID, and OVERPAID. |
crypto_amount | Number | Expected crypto amount for the transaction. |
crypto_paid_amount | Number | Actual crypto amount received from the customer. |
Understanding Crypto Payment Status
- FULLPAID: The exact crypto amount was received, so the transaction is successful.
- UNDERPAID: The received amount is lower than required, so the transaction may fail.
- OVERPAID: The received amount is higher than required, and excess handling depends on your configuration.