Retrieve a checkout

Fetch the current state of a checkout by its JKAPay reference. Call this from your server when the customer returns to your returnUrl, before you release goods.

GET/v1/checkout/:reference
cURL
curl https://api.jkapay.com/v1/checkout/JKA_M3A8_8F2E1B4C \
  -H "Authorization: Bearer sk_test_YOUR_KEY" \
  -H "X-JKAPay-Merchant-Id: MCH_XXXXXXXXXXXX"
Response200
JSON
{
  "checkout": {
    "reference": "JKA_M3A8_8F2E1B4C",
    "clientReference": "ORD-12345",
    "status": "SUCCESS",
    "type": "COLLECTION",
    "amount": "150.00",
    "fee": "4.50",
    "net": "145.50",
    "currency": "GHS",
    "customer": {
      "msisdn": null,
      "name": "Ama Mensah",
      "email": "ama@example.com",
      "network": null
    },
    "description": "Order #12345",
    "failureReason": null,
    "metadata": null,
    "initiatedAt": "2026-11-18T10:30:00.000Z",
    "completedAt": "2026-11-18T10:31:12.000Z",
    "checkoutUrl": "https://jkapay.com/pay/JKA_M3A8_8F2E1B4C"
  }
}
Statuses. PENDING means the customer hasn't paid yet. SUCCESS and FAILED are final. Always check that amount matches the order. See the status reference.

Errors

  • 401 UNAUTHENTICATED: missing, malformed, or revoked API key.
  • 404 NOT_FOUND: no checkout with that reference on your account.