Skip to content

Delete Sales Order

DELETE /api/sales-order/{id}

Required privilege: Demand / Edit CSRF header required: X-XSRF-TOKEN

Permanently deletes a sales order and all of its line items.


Path Parameters

Parameter Type Required Description
id integer Yes Internal SO identifier

Errors

Status Code Description
400 SalesOrderList.NotFound No SO with this ID
400 SalesOrderList.StillInUse SO referenced by other records
403 User.NotPrivileged Insufficient privilege

Code Examples

CSRF=$(grep csrf_access_token cookies.txt | awk '{print $NF}')
curl -b cookies.txt -X DELETE https://acme.knosc.com/api/sales-order/88 \
  -H "X-XSRF-TOKEN: $CSRF"