Skip to main content

Get Order

Retrieve a single order by its PGA reference code.

Endpoint

GET /v1/orders/:ref_code

Request

Path Parameters

ParameterDescription
ref_codeThe PGA reference code returned when the order was created (e.g., ORD-260601103045-A1B2)

Example

cURL
curl https://api.nusio-saka.com/v1/orders/ORD-260601103045-A1B2 \
-H "X-API-Key: your-api-key"

Response

HTTP 200 OK

{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"ref_code": "ORD-260601103045-A1B2",
"merchant_order_id": "INV-2026-00123",
"amount_minor": 5000000,
"currency_code": "IDR",
"status": "PAID",
"qris_string": "00020101021226...",
"qr_url": "https://cdn.nusio-saka.com/qr/ORD-260601103045-A1B2.png",
"expires_at": "2026-06-01T10:45:45Z",
"paid_at": "2026-06-01T10:38:12Z",
"is_settled": false,
"vendor_rrn": "220601103812001",
"customer_name": "Budi Santoso",
"customer_phone": "6281234567890",
"created_at": "2026-06-01T10:30:45Z"
}
}

Error Codes

CodeHTTPDescription
ORDER_NOT_FOUND404No order with this ref_code belonging to your merchant