Skip to Content
ePay.lkDocs
API reference

Overview

Base URLs, authentication, request format and every /v1 endpoint at a glance.

Base URLs

EnvironmentBase URLKeys
Productionhttps://beta.api.epay.lksk_live_…
Sandboxhttps://beta.sandbox-api.epay.lksk_test_…

All endpoints are versioned under /v1. Backwards-compatible changes (new endpoints, new optional parameters, new response fields, new event types) can happen at any time — write clients that ignore unknown fields.

Requests

  • Authenticate with Authorization: Bearer <secret key> (details).
  • Send JSON bodies with Content-Type: application/json.
  • Send Idempotency-Key on POST /v1/payments and POST /v1/refunds (details).
  • Amounts are integer minor units; timestamps are ISO 8601 UTC; JSON keys are snake_case.
  • Errors use the error envelope; lists use cursor pagination.

Endpoints

MethodPathScopeDescription
POST/v1/paymentspayments:writeCreate a payment and get a checkout_url
GET/v1/paymentspayments:readList payments (status, order_id)
GET/v1/payments/:idpayments:readRetrieve a payment
POST/v1/payments/:id/cancelpayments:writeCancel an unpaid payment
POST/v1/refundsrefunds:writeRefund a payment in full or in part
GET/v1/refundsrefunds:readList refunds (payment_id)
GET/v1/refunds/:idrefunds:readRetrieve a refund
POST/v1/payment_linkspayment_links:writeCreate a payment link
GET/v1/payment_links/:idpayment_links:readRetrieve a payment link
GET/v1/eventsevents:readList events (type)
GET/v1/events/:idevents:readRetrieve an event
GET/v1/balancebalance:readPending, available and in-transit balance

Rate limits

Requests are rate-limited per API key. Exceeding the limit returns 429 rate_limit_error / rate_limited; back off exponentially and retry. If you need sustained higher throughput, contact ePay.

On this page