Przejdź do głównej zawartości

Get Payment Status

POST
/payments/status/

Retrieves detailed information about a specific payment by its transaction ID. This is also the way to get a single payment's full details, since the API does not expose a GET /payments/{id}/ endpoint.

Authentication

Requires OAuth 2.0 authentication with read and write scopes.

Request Body

ParameterTypeRequiredDescription
transaction_id requiredstring (UUID)YesThe unique identifier of the payment to retrieve

Example Request

curl -X POST {{BASE_URL}}/payments/status/ \
-H "Authorization: Bearer your_access_token" \
-H "Content-Type: application/json" \
-d '{
"transaction_id": "550e8400-e29b-41d4-a716-446655440000"
}'

Response

Success Response (200 OK)

{
"transaction_id": "550e8400-e29b-41d4-a716-446655440000",
"blockchain": "TRX",
"currency": "USDTTRC20",
"status": "completed",
"amount_usd": "100.00",
"amount_crypto": "100.050000",
"address": "TYN2WuEqttM5JjGk4ynGkxcnMRR9SZcvVx",
"token": "USDT",
"transaction_hash": "abc123def456...",
"order_id": "ORDER-12345",
"order_description": "Premium subscription",
"callback_url": "https://your-site.com/webhook/payment",
"expiry_time": "2026-01-15T10:30:00Z",
"created_at": "2026-01-15T10:00:00Z",
"updated_at": "2026-01-15T10:20:00Z",
"is_fixed_rate": true,
"is_fee_paid_by_user": false
}

Response Fields (TransactionDetailSerializer)

FieldTypeDescription
transaction_iduuidUnique payment identifier
blockchainstringBlockchain network (e.g., "TRX", "ETH")
currencystringCombined currency code (e.g., "USDTTRC20")
statusstringCurrent payment status (see Status Values below)
amount_usddecimalAmount in price currency (USD)
amount_cryptostringComputed cryptocurrency amount
addressstringBlockchain address for the payment
tokenstringToken symbol (e.g., "USDT", "USDC")
transaction_hashstringBlockchain transaction hash (null until payment is detected on-chain)
order_idstringYour order identifier
order_descriptionstringPayment description
callback_urlstringWebhook URL for status notifications
expiry_timedatetimeISO 8601 timestamp when payment expires
created_atdatetimeISO 8601 creation timestamp
updated_atdatetimeISO 8601 last update timestamp
is_fixed_ratebooleanWhether a fixed exchange rate was used
is_fee_paid_by_userbooleanWhether the customer pays network fees

Status Values

StatusDescription
waitingWaiting for payment from customer
confirmingPayment received, waiting for blockchain confirmations
confirmedPayment confirmed on blockchain
sendingProcessing payment to merchant wallet
completedPayment successfully completed
expiredPayment window expired without payment
failedPayment failed

Error Responses

400 Bad Request

{
"error": {
"code": "invalid_request",
"message": "Invalid or missing transaction_id"
}
}

404 Not Found

{
"error": {
"code": "not_found",
"message": "Transaction with the specified ID was not found",
"details": {
"transaction_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
}

Notes

  • This endpoint serves as the way to retrieve a single payment's full details. There is no separate GET /payments/{id}/ endpoint.
  • The transaction_hash field is only populated once a transaction has been identified on the blockchain.
  • For real-time status updates, implement a webhook handler instead of polling this endpoint.
  • The wallet_id and customer_email fields may also be included in the response when they were provided during payment creation.

Related Endpoints