Payments
Retrieve payment
Returns the current state of a direct payment. Prefer webhooks over polling.
Returns the current state of a direct payment. Prefer webhooks over polling.
Authorization
secretKey AuthorizationBearer <token>
Sandbox try-it accepts sk_test_… only.
In: header
Path Parameters
id*string
The payment's id.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "reference_id": "string", "type": "Payment Link", "created_by": { "type": "user", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "title": "string", "status": "pending", "amount": 0, "fee": { "total": 0, "transaction": 0, "instant_settlement": 0, "paid_by": "me" }, "payer_amount": 0, "net_amount": 0, "payment_method": "string", "category": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "instructions": { "type": "virtual_account", "bank": "string", "va_number": "string", "qr_string": null, "qr_image_url": null }, "settlement_account_id": "d050fea4-5b02-490d-8c34-3ec6e6f56121", "expires_at": "2019-08-24T14:15:22Z", "paid_at": "2019-08-24T14:15:22Z", "settle_at": "2019-08-24T14:15:22Z", "settled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" }, "meta": { "request_id": "string" }}