Skip to content

POST /payment/info

Returns the current status and details of a payment. Requires authentication. Provide at least one of uuid or order_id.

POST /payment/info
FieldTypeRequiredDescription
uuidstringNo*The payment UUID
order_idstringNo*Your internal order identifier

* At least one of uuid or order_id is required.

Terminal window
# Compute sign: MD5(base64(JSON.stringify(body)) + API_KEY)
curl -X POST https://api.nearpayments.io/cryptomus/v1/payment/info \
-H "Content-Type: application/json" \
-H "merchant: YOUR_MERCHANT_UUID" \
-H "sign: COMPUTED_SIGN" \
-d '{
"order_id": "order-42"
}'

The adapter maps upstream Cryptomus statuses to NearPayments statuses:

Cryptomus StatusNearPayments Status
waitingprocess
confirmingconfirm_check
confirmedconfirm_check
sendingprocess
partially_paidwrong_amount
finishedpaid
failedfail
refundedrefund_paid
expiredcancel
{
"state": 0,
"result": {
"uuid": "a1b2c3d4-...",
"order_id": "order-42",
"amount": "50.00",
"payment_amount": "50.00",
"payer_amount": "50.00",
"discount_percent": 0,
"discount": "0.00",
"payer_currency": "USDT",
"currency": "USDT",
"merchant_amount": "49.50",
"network": "tron",
"address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"from": "TXyz...",
"txid": "abc123...",
"payment_status": "finished",
"url": "https://api.nearpayments.io/pay/a1b2c3d4-...",
"expired_at": 1710600000,
"status": "paid",
"is_final": true,
"additional_data": null,
"created_at": "2025-01-15T10:30:00+00:00",
"updated_at": "2025-01-15T10:35:00+00:00"
}
}