v13

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-012612103.2 KB
Sales

Update sale status

Performs a status action on a sale. Available actions: mark_paid (unpaid -> paid), refund (paid -> refunded), cancel (unpaid or paid -> cancelled).

put/sales/{id}

Path parameters

idstring required

The encoded ID of the sale

Request body

action'mark_paid' | 'refund' | 'cancel' required

The action to perform on the sale

Response

Sale updated successfully

Example response

{
  "meta": {
    "message": "Sale updated successfully"
  }
}