Admin

Reverse a ledger transaction

Posts the mirror image of a posted transaction. The original is never modified. The two halves of an order credit spend are reversed together.

post/admin/ledger/transactions/{transaction_id}/reverse

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/ledger/transactions/{transaction_id}/reverse
  • Auth: HTTP bearer

Path parameters

transaction_idstring uuid required
Example:a8d87621-612f-4e72-baa8-39570eaa83f0

Request body

descriptionstring

Response

Reversal posted

idstring uuid required
status'PENDING' | 'POSTED' | 'ARCHIVED' required
descriptionstring required
external_sourcestring nullable required
external_idstring nullable required
reverses_transaction_idstring uuid nullable required
reversed_by_transaction_idstring uuid nullable required
pending_transaction_idstring uuid nullable required
order_idstring uuid nullable required
order_item_idstring uuid nullable required
created_bystring uuid nullable required
metadataobject nullable required

Changes

No recorded changes to this operation across all 4 revisions of this API.