Skip to navigation

Add Item to Purchase Order

Adds a new line item to a purchase order. Returns 201 Created.

Requires scope: purchase_orders:write

Authentication

API_KEYstring
API Key authentication via header

Path parameters

idUUIDRequired
Purchase order ID.

Request

This endpoint expects an object.
materialIdUUIDRequired
ID of the material to add. Required.
quantitydoubleRequired
Quantity to order. Required. Must be greater than zero.
pricedoubleRequired
Cost per unit in USD. Required. Must be greater than or equal to zero.
materialVariationIdUUIDOptional
ID of the material variation, if applicable.
notestringOptional
Optional note for this line item.

Response

This endpoint returns an object.
idUUID
Unique identifier for this line item.
quantitydouble
Ordered quantity.
pricedouble
Cost per unit in USD.
materialobjectOptional
Reference to the material being ordered.
variationobjectOptional
Reference to the material variation, if applicable.
notestringOptional
Optional note for this line item.
createdAtdatetimeOptional
ISO 8601 timestamp when the item was created.
updatedAtdatetimeOptional
ISO 8601 timestamp when the item was last updated.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Rate Limit Error