Payment Detail
Retrieve payment details and the latest transaction status.
GET
cURL
/payments/:id
Returns transaction detail.
Path Params
| Param | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Transaction UUID or reference_id. |
Request Example
curl "https://api.chiwapay.com/payments/f2b1d5b0-7b1f-4c5d-9c37-93f0c8f6a001" \ -H "Authorization: Bearer sk_xxx"Response
{
"payment": {
"id": "f2b1d5b0-7b1f-4c5d-9c37-93f0c8f6a001",
"reference_id": "PAY-LXAMPLE",
"merchant_reference_id": "ORDER-1024",
"payment_method_code": "qris",
"provider": "gopay",
"currency": "IDR",
"amount": 150000,
"fee_amount": 1050,
"net_amount": 150000,
"total_amount": 151050,
"status": "paid",
"paid_at": "2026-05-19T10:01:00Z",
"created_at": "2026-05-19T10:00:00Z",
"updated_at": "2026-05-19T10:01:00Z"
}
}Response Fields
| Field | Description |
|---|---|
payment.id | Transaction UUID. |
payment.reference_id | Chiwa Pay transaction ID. |
payment.merchant_reference_id | Merchant order ID. |
payment.status | Transaction status. |
payment.total_amount | Amount the customer must pay. |
payment.net_amount | Amount after fee. |
payment.paid_at | Time payment was received. |
HTTP Error Code
| HTTP | Code | Description |
|---|---|---|
401 | invalid_api_key | Secret key is invalid. |
403 | merchant_not_approved | Merchant is not active. |
404 | not_found | Transaction was not found. |