Get Payment
/v1/payments/:id
Retrieve the current state of a payment transaction. Requires the X-API-Key header.
Path Parameters
idstringrequiredAny of: the transaction ID, the payment link id or slug returned by Create Payment, your own merchantOrderId, or the Duitku reference.
Response
idstringTransaction ID.
merchantOrderIdstringInternal Artos order ID (e.g. PL-inv-xxxx).
clientMerchantOrderIdstring | nullYour merchantOrderId from Create Payment, or null if the payment was not created via the API.
referencestringPayment provider (Duitku) reference.
duitkuReferencestringSame as reference; kept for backward compatibility.
amountintegerPayment amount in IDR.
paymentMethodstringPayment method code (e.g. SP for QRIS).
statusstringOne of pending, paid, failed, expired. See Payment Status.
customerEmailstring | nullCustomer email.
customerNamestring | nullCustomer name.
productDetailsstringProduct description.
qrStringstring | nullQRIS payload, when applicable.
vaNumberstring | nullVirtual account number, when applicable.
paymentUrlstring | nullPayment URL.
feestring | nullProvider fee, if known.
paidAtstring | nullTime the payment was completed (ISO 8601).
expiredAtstring | nullExpiry time (ISO 8601).
createdAtstringCreation time (ISO 8601).
updatedAtstringLast update time (ISO 8601).
Examples
curl https://api-artos.kasir.ai/v1/payments/ORDER-001 \
-H "X-API-Key: art_live_your_api_key"{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"merchantOrderId": "PL-inv-a1B2c3D4e5",
"clientMerchantOrderId": "ORDER-001",
"reference": "DS1234525ABCDEFGH",
"duitkuReference": "DS1234525ABCDEFGH",
"amount": 50000,
"paymentMethod": "SP",
"status": "paid",
"customerEmail": "[email protected]",
"customerName": "Budi Santoso",
"productDetails": "Premium Plan",
"qrString": "00020101021226...",
"vaNumber": null,
"paymentUrl": "https://artos.dev/pay/inv-a1B2c3D4e5",
"fee": "1500",
"paidAt": "2025-01-01T00:05:00.000Z",
"expiredAt": "2025-01-01T01:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:05:00.000Z"
}
}{ "success": false, "error": "Transaction not found" }