v1
latestOpenAPI 3.1.02026-07-26500375.1 KBPayment Fetch by ID
The following endpoint retrieves the details of a single payment
get/payments/{id}
Path parameters
idstring required
Unique identifier of the Payment to be retrieved
Query parameters
expandstring
Used to retrieve additional information about the Order. Supported values are: customer, payments. Example: /orders/ord_A1B1C1D1234?expand=customer&expand=payments
Response
200
Example response
{
"id": "pay_76n67eK9Fq4137",
"amount": "20000",
"currency": "IDR",
"status": "completed",
"order_id": "ord_B14sdfwAdmmSDF24a",
"payment_ref_id": "txn2314",
"created_at": "2021-09-20T05:11:09.574138Z",
"is_live": true,
"expiration_date": "2021-09-21T05:11:09.574136Z",
"payment_details_type": "ewallet_details",
"method_id": "OVO",
"updated_at": "2021-09-20T05:11:15.161768Z",
"CustomerID": "cus_iT1g1t74655079",
"CustomerName": "test",
"Currency": "IDR"
}