Kutanapay Merchant API
    • Getting Started
    • Authentication
    • Use the API in your application
    • Webhooks
      • Webhooks Events
    • Merchant Checkout
      • Create checkout
        POST
      • List checkouts
        GET
      • Get checkout
        GET
      • Cancel checkout
        POST
      • Create checkout button embed session
        POST
    • Webhook Events
      • Checkout created
      • Checkout paid
      • Customer says they paid
      • Checkout approved
      • Checkout rejected
      • Checkout failed
      • Checkout timed out
      • Checkout expired
      • Checkout refunded
      • A second collection arrived
      • Test event
    • Schemas
      • RequestBodies
        • CheckoutEvent
      • DetailError
      • WebhookEnvelope
      • CheckoutEventData

    Use the API in your application

    Call the Checkout API over HTTPS from your backend. Do not put x-api-key in browsers, mobile apps, or public repos.
    For a full guide (payment link, customer flow, lifecycle, webhooks), read Checkouts.

    Base URL#

    EnvironmentBase URL
    ProductionUse API endpoint our team will send to you
    Sandboxhttps://dev.kutanapay.com
    All paths in the API reference are appended to the base URL, for example:
    POST https://dev.kutanapay.com/api/v1/merchants/checkouts

    Create a checkout (minimal)#

    Use the JSON response:
    data.checkout_url – redirect the customer or send this link by email/SMS.
    data.id – store as your KutanaPay checkout id.
    data.payment_reference – useful for support.

    Typical server flow#

    1.
    Your app creates an order in your database.
    2.
    Your server calls Create checkout.
    3.
    You return checkout_url to your frontend (link or redirect only; never the API key).
    4.
    Your webhook handler receives checkout.paid and marks the order paid (see Webhooks and Webhook event reference).
    5.
    If the customer abandons payment, call Cancel checkout while status is still pending.

    Other endpoints#

    Same header on every call:
    NeedMethod and path
    CancelPOST /api/v1/merchants/checkouts/{checkout_id}/cancel
    StatusGET /api/v1/merchants/checkouts/{checkout_id}
    ListGET /api/v1/merchants/checkouts
    Request and response shapes match the API reference examples (same envelope: status, message, data).

    Apidog “Try it”#

    1.
    Set environment baseUrl to your API host (no trailing slash).
    2.
    Set Auth → API Key → header x-api-key.
    3.
    Run Create checkout and copy the example into your integration tests.
    Modified at 2026-09-26 20:50:57
    Previous
    Authentication
    Next
    Webhooks
    Built with