Create a purchase order item
This endpoint is available to Group API Keys only.
Creates a new line item on an existing draft purchase order.
A purchase order item is a single line item on a purchase order, identifying the inventory being ordered, the quantity, and the price. The quantity specified in the payload is expected to be in the same unit of measure as the configured unit of measure for the inventory code.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of the purchase order to add this item to
The quantity to order (must be greater than 0)
x > 0The inventory id identifying the item to order. Must provide exactly one of inventory_shortcode or inventory_id, not both
x > 0The inventory shortcode (human-readable code) identifying the item to order. Must provide exactly one of inventory_shortcode or inventory_id, not both. Inventory shortcodes are deprecated for new integrations; supported during a deprecation window for existing callers.
An optional SKU identifier for this item
The total price for this line item, in cents
x >= 0Response
Created
The datetime this object was created.
The unique identifier for the purchase order item
The inventory id for this item
The datetime this object was last modified; changes to related entities will not update this field.
The quantity ordered
The SKU identifier for this item
The total price for this line item, in cents
The unit of measure for this item
The inventory shortcode (human-readable code) for this item