Skip to content

GET /v1/payment/{id}

Returns the current status and details of a payment. Requires authentication.

GET /v1/payment/{payment_id}
Terminal window
curl https://api.nearpayments.io/v1/payment/1 \
-H "x-api-key: YOUR_API_KEY"
StatusDescription
waitingAwaiting payment
confirmingTransaction detected, waiting for confirmations
confirmedConfirmed on-chain
sendingConverting and sending to merchant
finishedPayment complete
partially_paidBuyer sent less than required
failedPayment failed
refundedPayment was refunded
expiredPayment expired (24h default)
{
"payment_id": 1,
"payment_status": "finished",
"pay_address": "bc1q...",
"price_amount": 25.50,
"price_currency": "usd",
"pay_amount": 0.00029,
"actually_paid": 0.00029,
"pay_currency": "btc",
"order_id": "order-42",
"order_description": null,
"purchase_id": 5234123456,
"outcome_amount": 25.50,
"outcome_currency": "usdc",
"invoice_id": null,
"payin_extra_id": null,
"payin_hash": null,
"payout_hash": null,
"burning_percent": "null",
"type": "crypto2crypto",
"created_at": "2025-01-15T10:30:00.000Z",
"updated_at": "2025-01-15T10:35:00.000Z"
}