Revoke sales documents
patch/api/v1/sales-documents/revokeRevoke the list of sales documents that were sent to customers.
Code snippet
curl -X 'PATCH' \
'https://{yourdomain}/api/v1/sales-documents/revoke' \
-H 'accept: application/json; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json; x-api-version=1.0' \
-d '{
"data": {
"documentNumbers": [
"Quo-003215",
"Quo-003213"
]
}
}'
Request body
| Field | Description | Example | Validation |
| documentNumbersarray | One or more document numbers identifying the sales documents to revoke. | "documentNumbers": [ "Quo-003215", "Quo-003213" ] | Each document must have the "Sent to customer" status. |
Example response
200 Success
{
"message": "Document(s) revoked."
}