Skip to content

Delete Sales Order Detail Line

DELETE /api/sales-order-details/{id}

Authentication required. CSRF header required: X-XSRF-TOKEN

Deletes a single line item from a sales order. If this is the last line on the parent SO, the parent SO is also deleted.


Path Parameters

Parameter Type Required Description
id integer Yes Internal line item identifier

Errors

Status Code Description
400 SalesOrderDetails.NotFound No detail with this ID
400 SalesOrderDetails.StillInUse Detail referenced by other records

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-details/201 \
  -H "X-XSRF-TOKEN: $CSRF"