Creates a withdrawal using the saved details from the beneficiary identified in the body. Call GET /api/v1/payment-reasons, then submit its id and required text fields together in the flat paymentReasons object. Idempotency-Key is required; reuse with changed request content returns 409.
Multipart requests. Send JSON in the request part with content type application/json, and each file as paymentReasonDocuments.{documentKey} using metadata returned by GET /api/v1/payment-reasons.
Headers
-
Public API key issued from the Lumepay API key management flow.
-
API secret paired with the public API key.
Responses
-
Withdrawal created successfully
-
Request validation failed
-
Resource was not found for the authenticated API key owner
-
Request conflicts with current resource or money movement state
-
Cloudflare API rate limit exceeded
-
Authenticated API key is not allowed to perform this action
-
Unexpected server error
-
API key authentication failed
curl \
--request POST 'https://api.staging.lumepay.com/api/v1/beneficiaries/withdrawals' \
--header "Content-Type: multipart/form-data" \
--header "Idempotency-Key: string" \
--header "X-API-KEY: string" \
--header "X-API-SECRET: string" \
--form 'request={"beneficiaryId":"ben_7K9Q2M","amount":101,"paymentReasons":{"paymentReasonId":18,"regulatoryBodyName":"Financial Sector Conduct Authority","licenceRegistrationReference":"FSP-123456"}}'
curl \
--request POST 'https://api.staging.lumepay.com/api/v1/beneficiaries/withdrawals' \
--header "Content-Type: application/json" \
--header "Idempotency-Key: string" \
--header "X-API-KEY: string" \
--header "X-API-SECRET: string" \
--data '{
"beneficiaryId": "ben_7K9Q2M",
"amount": 101,
"paymentReasons": {
"paymentReasonId": 18,
"regulatoryBodyName": "Financial Sector Conduct Authority",
"licenceRegistrationReference": "FSP-123456"
}
}'
# Headers
Idempotency-Key: string
X-API-KEY: string
X-API-SECRET: string
# Payload
{
"beneficiaryId": "ben_7K9Q2M",
"amount": 101,
"paymentReasons": {
"paymentReasonId": 18,
"regulatoryBodyName": "Financial Sector Conduct Authority",
"licenceRegistrationReference": "FSP-123456"
}
}
{
"transactionId": "WD5M8Q1P",
"status": "PENDING"
}
{
"httpStatus": 400,
"requestId": "req_01HY0000000000000000000000",
"message": "Request validation failed",
"code": 400,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}
{
"httpStatus": 404,
"requestId": "req_01HY0000000000000000000000",
"message": "Resource was not found for the authenticated API key owner",
"code": 404,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}
{
"httpStatus": 409,
"requestId": "req_01HY0000000000000000000000",
"message": "Request conflicts with current resource or money movement state",
"code": 409,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}
{
"error": "rate_limit_exceeded",
"message": "API rate limit exceeded"
}
{
"httpStatus": 403,
"requestId": "req_01HY0000000000000000000000",
"message": "Authenticated API key is not allowed to perform this action",
"code": 403,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}
{
"httpStatus": 500,
"requestId": "req_01HY0000000000000000000000",
"message": "Unexpected server error",
"code": 500,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}
{
"httpStatus": 401,
"requestId": "req_01HY0000000000000000000000",
"message": "API key authentication failed",
"code": 401,
"timestamp": "2026-01-01T00:00:00Z",
"errors": []
}