GET
Get Payment
/v1/payments/:id
Retrieve the details of an existing payment transaction by its ID.
Path Parameters
idstringrequiredThe transaction ID returned from Create Payment.
Examples
curl
curl https://api-artos.kasir.ai/v1/payments/tx_abc123 \
-H "X-API-Key: art_live_your_api_key"200 — Success
{
"success": true,
"data": {
"id": "tx_abc123",
"merchantOrderId": "ORDER-001",
"amount": 50000,
"status": "paid",
"paymentMethod": "SP",
"customerEmail": "[email protected]",
"productDetails": "Premium Plan",
"paymentUrl": "https://pay.artos.dev/...",
"reference": "REF-12345",
"createdAt": "2025-01-01T00:00:00.000Z",
"paidAt": "2025-01-01T00:05:00.000Z"
}
}404 — Not found
{ "success": false, "error": "Transaction not found" }