Skip to main content

Create Consignment Settlement

POST 

/api/purchase-orders/:purchaseOrder/consignment/settlements

Generate a settlement bill for a consignment purchase order, covering the consigned stock that has sold but not yet been settled. The bill is created for the supplier and the purchase order stays open so further sales can be settled later.

Request body (all optional):

  • settlement_date (date): the report/settlement date. Defaults to today.
  • line_quantities (object): map of purchase order line ID to the quantity to settle for that line. Each value is clamped to what is still unsettled. Omit to settle every sold-but-unsettled unit.

Returns 422 when the purchase order is not a consignment order, or when there is nothing left to settle.

Authentication: Requires a Bearer token.

Request

Responses

Created

Response Headers
    Content-Type