SX Digital Pay
    SX Digital Pay
    • Getting started
    • Authentication
    • Webhook Validation
    • Webhook Delivery System
    • Recommended workflows
    • Merchant
      • Get merchant profile
        GET
    • PaymentLinks
      • Create single-use payment link
        POST
      • List single-use payment links
        GET
      • Get link details
        GET
    • Webhooks
      • Link created
      • Link status changed
      • Link paymentStatus changed

    Authentication

    API Authentication#

    API keys for production are issued per merchant and can be obtained in the Merchant panel under Integration menu.
    Send either header x-api-key: <api-key> or Authorization: Bearer <api-key>.
    Production API keys are issued per merchant and can be obtained in the Merchant panel under Integration.
    Sandbox uses a shared API key provided by SX Digital Pay for testing.
    Keep keys secret, rotate them periodically, and remove old keys immediately when rotating.
    Sandbox notes:
    GET /payment-links is blocked in sandbox and returns 403.
    Payments are disabled in sandbox; use the Sandbox panel on the quote page to simulate events.

    Sandbox API Key#

    Use the shared sandbox key below in the x-api-key header for testing:
    sxk_sandbox_088da8714156b49f767664fc9bebbcb047841b660b8fda7b

    Example (Production)#

    Example (Sandbox)#

    Previous
    Getting started
    Next
    Webhook Validation
    Built with