POST
Settlements/wallet-settlementsCreate settlement
Creates a settlement for a defined period and wallet.
Access tierbusiness_financeRate limit20/minIdempotencybody:idempotency_keyAuthenticationBearerAuth
Source
LuxApi/app/Http/Controllers/Api/SettlementApiController.php::createLuxPayProjects @ 146e98baa44eParameters
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...Request body
CreateSettlementRequestRequired
wallet_idinteger
period_typestring
Allowed: daily, weekly, monthly, custom
period_startstring
period_endstring
idempotency_keystring
notesstring | null
JSON example
{
"wallet_id": 1,
"period_type": "daily",
"period_start": "2026-07-16",
"period_end": "2026-07-16",
"idempotency_key": "string",
"notes": "string"
}Code examples
The displayed sandbox host is a placeholder until an official host is provisioned. Never paste a production token into a public browser.
curl --request POST \
--url 'https://sandbox-api.luxpay.example/v1/wallet-settlements' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"wallet_id": 1,
"period_type": "daily",
"period_start": "2026-07-16",
"period_end": "2026-07-16",
"idempotency_key": "string",
"notes": "string"
}'Responses
201Successful response.
statusboolean
Example:
truemessagestring | null
dataSettlement
{
"status": true,
"message": "string",
"data": {
"id": 1,
"uuid": "00000000-0000-4000-8000-000000000001",
"wallet_id": 1,
"period_type": "daily",
"period_start": "2026-07-16",
"period_end": "2026-07-16",
"status": "pending",
"idempotency_key": "string",
"notes": "string",
"items": [
{}
],
"created_at": "2026-07-16T12:00:00Z"
}
}