Payments

Get payment details

Retrieve detailed information about a specific payment by its ID. Returns the full payment object including associated user, order, subscription, charges, and invoice details.

Authorization

Public key
x-fngs-public-key<token>

In: header

Path Parameters

paymentId*string

Unique identifier (UUID) of the payment.

Formatuuid

Response Body

application/json

application/json

GET
/v0/payments/{paymentId}
curl -X GET "https://example.com/v0/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "status": "success",  "data": {    "payment": {      "object": "payment",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "type": "one_time",      "number": "string",      "status": "PENDING",      "value": 0,      "tax": 0,      "fee": 0,      "currency": "AFN",      "currencyDecimals": null,      "createdAt": 0,      "userId": null,      "user": null,      "orderId": null,      "orderNumber": null,      "order": null,      "subscriptionId": null,      "subscription": null,      "checkoutId": null,      "discount": null,      "invoiceNumber": null,      "invoiceUrl": null,      "charges": null    }  }}