v1

latestOpenAPI 3.1.02026-07-26500375.1 KB

Payment 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

idstring
amountstring
currencystring
statusstring
order_idstring
payment_ref_idstring
created_atstring
is_liveboolean
expiration_datestring
payment_details_typestring
method_idstring
updated_atstring
metadataobject
retry_countinteger
discountstring
paid_amountstring
provider_idstring
total_feestring
promo_idstring
shipping_feestring
{"stackTrail":"paths:/payments/{id}:get:responses:200:content:application/json:schema:properties:ds_error_metadata","oasType":"schema","type":"unknown"}
CustomerIDstring
CustomerNamestring
CustomerEmailstring
OrderRefIDstring
Currencystring
failure_reasonobject

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"
}