API reference
API reference
Every endpoint of the ekash API v1, generated from its OpenAPI document.
Base URLs#
- Sandbox
https://stage.ekash.ai/dev - Production
https://ekash.ai
Essentials#
Send payments from your ekash wallets — single or in batches — and track them to settlement.
Authentication. Every request needs your API key: Authorization: Bearer ek_live_… (or X-API-Key). Keys are issued per company by an ekash administrator, carry scopes, and are shown exactly once. A key beginning ek_test_ belongs to the sandbox.
Errors. Failures use real HTTP status codes and a single error shape: { "error": { type, code, message, fields, request_id } }. Branch on code, not on message.
Idempotency. POST /v1/payments requires an Idempotency-Key header. Replaying it returns the original payment with Idempotent-Replayed: true.
Rate limits. Per key, per minute. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining; a 429 carries Retry-After.
Money is always a string with 2 decimals next to an ISO currency code. Timestamps are RFC 3339 UTC.
Endpoints#
Payments
Create, price, approve, reject and track payments
- POST
/v1/paymentsCreate a payment - POST
/v1/payments/quotePrice a payment - GET
/v1/paymentsList payments - GET
/v1/payments/{id}Get a payment - POST
/v1/payments/{id}/approveApprove a payment - POST
/v1/payments/{id}/rejectReject a payment - GET
/v1/payments/{id}/remittanceDownload the remittance advice
Batches
Upload, validate, submit and approve batches of payments
- GET
/v1/batches/templates/{rail}Download a batch template - POST
/v1/batchesUpload a batch - GET
/v1/batches/{id}Get a batch - POST
/v1/batches/{id}/submitSubmit a batch - POST
/v1/batches/{id}/approveApprove a batch - POST
/v1/batches/{id}/rejectReject a batch - DELETE
/v1/batches/{id}Delete a batch
Recipients
Saved payees you can pay by id
- POST
/v1/recipientsAdd a recipient - GET
/v1/recipientsList recipients - GET
/v1/recipients/{id}Get a recipient - DELETE
/v1/recipients/{id}Delete a recipient
Wallets
Balances of the company's currency wallets
Reference data
Supported currencies and per-country bank field requirements
- GET
/v1/currenciesList supported currencies - GET
/v1/countries/{code}/bank-requirementsBank fields required for a country
Webhooks
Register endpoints, inspect deliveries and retry failures
- POST
/v1/webhooksRegister a webhook endpoint - GET
/v1/webhooksList your webhook endpoints - GET
/v1/webhooks/{id}Read one webhook endpoint - PATCH
/v1/webhooks/{id}Update a webhook endpoint - DELETE
/v1/webhooks/{id}Delete a webhook endpoint - POST
/v1/webhooks/{id}/testSend a test delivery - GET
/v1/webhooks/{id}/deliveriesList an endpoint's deliveries - POST
/v1/webhooks/{id}/deliveries/{deliveryId}/retryRetry a delivery - GET
/v1/webhooks/event-typesList the webhook event types
Events
Replay the webhook event history
Schemas#
The schema index lists every object the API sends or accepts.