POST
Ledger/wallets/reverseReverse ledger posting
Creates reversal entries for an original debit/credit ledger pair. Original entries remain immutable.
Access tierrestricted_financeRate limit20/minIdempotencynoneAuthenticationBearerAuth
Source
LuxApi/app/Http/Controllers/Api/WalletApiController.php::reverseLuxPayProjects @ 146e98baa44eParameters
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...Request body
LedgerReversalRequestRequired
debit_ledger_entry_idinteger
credit_ledger_entry_idinteger
reasonstring | null
JSON example
{
"debit_ledger_entry_id": 1,
"credit_ledger_entry_id": 1,
"reason": "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/wallets/reverse' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"debit_ledger_entry_id": 1,
"credit_ledger_entry_id": 1,
"reason": "string"
}'Responses
200Successful response.
statusboolean
Example:
truemessagestring | null
dataobject
{
"status": true,
"message": "string",
"data": {}
}