API reference
The merchant API, generated from openapi.yaml. Version 2026-09-01.
Basics
Every request goes to https://api.lemak.cash over HTTPS. Every /v1 request carries your secret key as Authorization: Bearer sk_test_... or sk_live_.... A test key reaches only test data.
Send Api-Version to choose the version that answers one request. Without it, the version your account is pinned to answers. The changelog lists every version.
Every write takes an Idempotency-Key. A retry with the same key and the same body replays the first answer.
Errors
Every error answers with this object. code is stable and is the field to branch on. message is for a person and can change.
ErrorEnvelope
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error required | Error | Fields of error
|
Resources
Payment intents
- POST
/v1/payment_intents - GET
/v1/payment_intents - GET
/v1/payment_intents/{id} - POST
/v1/payment_intents/{id}/cancel - POST
/v1/payment_intents/{id}/attempts - GET
/v1/payment_intents/{id}/attempts - POST
/v1/test/payment_intents/{id}/simulate - POST
/v1/test/payment_intents/{id}/advance