Light APIv1.0.0

API / Reference / Purchase Orders

Delete purchase order line

DELETE https://api.light.inc/v1/purchase-orders/{purchaseOrderId}/lines/{lineId}

Deletes a purchase order line item

Only while unlocked and not core-locked; the last line cannot be deleted (PURCHASE_ORDER_AT_LEAST_ONE_LINE). Answers 204 with no body.

Authorization

Send one of these on every request. See Authentication for how to get credentials.

  • API key

    Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

  • Bearer token

Path parameters

  • purchaseOrderId string · uuidrequired

  • lineId string · uuidrequired

Response

This endpoint returns no content.