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 order line
POST
https://api.pack.cloud/v1/organizations/{organizationId}/orders/{orderId}/lines
Request
Path parameters
organizationIdstring
orderIdstring
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
Price per item including VAT
currencystringrequired
ISO 4217 code of the currency
Example:EUR
valuestringrequired
Money amount
Example:9.95
namestringrequired
Name of the product ordered
Response
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment
Created
Body
idstring
ID of the order line
parent_idstringnull
ID of the parent order line (virtual bundle order line)
order_idstring
ID of the order
product_idstring
ID of the ordered product
namestring
Name of the product ordered
Price per item
Price per item
quantity_orderedinteger
Quantity that is ordered
quantity_allocatedinteger
Quantity that is allocated to a fulfillment
quantity_shippedinteger
Quantity that is shipped (already)
quantity_unallocatedinteger
Quantity that is not (yet) allocated to a fulfillment