The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Create purchase order line

POST

https://api.pack.cloud/v1/organizations/{organizationId}/purchase-orders/{purchaseOrderId}/lines

Request

Path parameters

organizationIdstring
purchaseOrderIdstring

Payload

quantity_orderedintegerrequired
Quantity that is ordered
product_idstringrequired
ID of the product that is ordered
Price per item
currencystringrequired
ISO 4217 code of the currency
Example:EUR
valuestringrequired
Money amount
Example:9.95

Response

Created

Body

idstring
ID of the purchase order line
purchase_order_idstring
ID of the purchase order
product_idstring
ID of the ordered product
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_receivedinteger
Quantity that is received in completed goods receipts
sell_aheadinteger
Quantity to allow pre-orders for this product