Skip to main content
Withdrawals (settlements) let you request payout of your unsettled payment balance to your registered bank account. A withdrawal request bundles all unsettled PAID payments (optionally scoped to a single branch) into a settlement request.

Endpoints


Create Withdrawal Request

Creates a withdrawal request for all currently unsettled PAID payments belonging to your merchant account (or a single branch, if branchId is provided).

Authentication

Requires HMAC authentication with headers:
  • x-api-key: Your API key ID only (e.g., ak_live_xxx)
  • x-timestamp: Current Unix timestamp in milliseconds
  • x-signature: HMAC-SHA256 signature (using derived signing key)

Example Request

Request Body

Example Response (201 Created)

Notes

  • Attribution: Withdrawal requests created via the public API record the apiKeyId of the API key that made the request; requestedBy/requesterName (dashboard user info) will be null/"API" for these requests.
  • One request per day: Only one active (PENDING or APPROVED) withdrawal request is allowed per merchant per day.
  • Minimum amount: The total net amount must meet the platform’s configured minimum withdrawal threshold, or the request is rejected with 400.
  • Auto-approval: If the total net amount is below the platform’s configured auto-approval threshold, the request is automatically approved and the fund transfer to your bank account is initiated immediately — the response may already reflect status: "APPROVED" in that case. Otherwise, the request stays PENDING until reviewed by CeyLabs admins, and the fund transfer happens upon approval.
  • Locking: Payments included in a withdrawal request are locked (cannot be included in another request) until the request is approved or rejected. Rejected requests release their payments back into the unsettled pool.

List Withdrawal Requests

Retrieve a paginated list of withdrawal requests for your merchant account.

Authentication

Requires HMAC authentication with headers:
  • x-api-key: Your API key ID only (e.g., ak_live_xxx)
  • x-timestamp: Current Unix timestamp in milliseconds
  • x-signature: HMAC-SHA256 signature (using derived signing key)

Example Request

Query Parameters

Example Response (200 OK)


Get Withdrawal Request

Get details of a specific withdrawal request, including the payments included in it.

Authentication

Requires HMAC authentication with headers:
  • x-api-key: Your API key ID only (e.g., ak_live_xxx)
  • x-timestamp: Current Unix timestamp in milliseconds
  • x-signature: HMAC-SHA256 signature (using derived signing key)

Example Request

Example Response (200 OK)


Error Codes