Back to reference
POST/wallets/reverse
Ledger

Reverse ledger posting

Creates reversal entries for an original debit/credit ledger pair. Original entries remain immutable.

Access tierrestricted_financeRate limit20/minIdempotencynoneAuthenticationBearerAuth
SourceLuxApi/app/Http/Controllers/Api/WalletApiController.php::reverseLuxPayProjects @ 146e98baa44e

Parameters

X-Request-IDheader
stringOptional

Client correlation identifier. LuxPay may generate one when omitted.

Example: req_01J...

Request body

LedgerReversalRequestRequired
debit_ledger_entry_id
integer
credit_ledger_entry_id
integer
reason
string | 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.
status
boolean
Example: true
message
string | null
data
object
{
  "status": true,
  "message": "string",
  "data": {}
}
400
401
403
404
409
422
429
500
OpenAPI JSONOpenAPI YAMLPostman collection