Skip to main content
Purchase Orders

Create Purchase Order

Creates a purchase order.

POST
/v1/purchase_orders

Scope(s): APP::PURCHASE-ORDERS::MANAGE

expandstringquery

Usage: expand=*

Expand channel, currency, goodsins, goodsins.consignment_qualities, goodsins.containers, goodsins.items, goodsins.items.batch, goodsins.items.component, goodsins.items.component.doqs, goodsins.items.component.doqs.type, goodsins.items.component.last_cost, goodsins.items.component.last_cost.cost_currency, goodsins.items.component.last_cost.landed_currency, goodsins.items.component.sales, goodsins.items.component.stock, goodsins.items.cost, goodsins.items.cost.currency, goodsins.items.cost.transports, goodsins.port, goodsins.transport_costs, goodsins.transport_costs.currency, goodsins.transport_costs.tax, lines, lines.component, lines.component.doqs, lines.component.doqs.type, lines.component.last_cost, lines.component.last_cost.cost_currency, lines.component.last_cost.landed_currency, lines.component.sales, lines.component.stock, lines.doq, payments, payments.currency, references, supplier, supplier.currency, tags, type, warehouse, warehouse.country

Body

application/json
currency_codestringrequired

Currency code

goodsinanyrequired

First goodsin.

linesany

Products ordered.

product_channel_idnumberrequired

Product channel ID.

product_component_supplier_idnumberrequired

Supplier ID.

referencesany

List of references.

warehouse_codestringrequired

Warehouse code.

Response

200application/json

successful operation

approved_dateany

Date the purchase order was accepted on.

channelobject

Product channel details.

commentsstring

Comments.

completed_dateany

Date of completion.

createdany

Created date.

currencyobject

Currency.

currency_idnumber

Currency ID.

discountnumber

Discount amount.

discount_typeenum<string>

Discount type.

Available options: percentage, value
goodsinsany

List of goodsins.

idnumber

ID.

linesany

Ordered lines.

modifiedany

Last modified date.

notification_email_addressesstring

Notification email address.

paymentsany

Payments made to suppliers.

product_channel_idnumber

ID of the product channel.

product_component_supplier_idnumber

Supplier ID.

purchase_order_type_idnumber

ID of the purchase order type.

referencesany

List of references.

reject_reasonstring

Reason for rejecting the purchase order.

statusenum<string>

Purchase order status.

Available options: draft, cancelled, awaiting_approval, awaiting_booking, rejected, open, completed, discrepancies, pending_completion
supplierobject

Supplier.

tagsany

List of applied tags.

typeobject

Purchase order type.

warehouseobject

Warehouse.

warehouse_idnumber

Warehouse ID.