Skip to main content
POST
/
api
/
sale-invoices
/
{id}
/
cancel-writeoff
Cancel the written off sale invoice.
curl --request POST \
  --url https://api.example.com/api/sale-invoices/{id}/cancel-writeoff \
  --header 'Authorization: <authorization>' \
  --header 'organization-id: <organization-id>'

Headers

Authorization
string
required

Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Path Parameters

id
number
required

The sale invoice id

Response

The sale invoice has been successfully marked as not written off.