IP addresses

Every request goes to https://api.lemak.cash. About the reference.

List the addresses webhooks come from

GET /v1/ips

Returns the IP addresses that webhook deliveries leave from. No key is needed. Verify the signature in the X-Webhook-Signature header: that is the control. Allow-listing these addresses is optional. A change is announced to every merchant before it takes effect, and updated_at moves with it. API requests reach shared Cloudflare addresses, which are not listed.

Authentication

None. The checkout session token in the path is the whole authority.

Responses

200

The addresses.

application/json

IpList

FieldTypeDescription
object requiredip_list
webhooks requiredarray of stringThe IPv4 and IPv6 addresses webhook deliveries leave from. Empty until published.
updated_at optionalstring (date-time)When the list last changed. Absent while the list is empty.

Errors

Every error answers with the error object.

StatusWhen
OtherAn error. The status tells you the kind: 400 invalid request, 401 invalid API key, 402 payment could not be placed, 403 forbidden, 404 not found, 409 conflict, 413 body over 64 KiB, 422 idempotency key reused, 429 too many requests, 5xx server error. A test mode key takes at most 5 requests a second.

Example

curl https://api.lemak.cash/v1/ips