Skip to main content
inputWarehousePurchaseOrderCreationInput

Fields

supplierId
ID!
required

The ID of the supplier, an active one. Currency and language of the order are the supplier's.

companyId
ID

The ID of the company that orders; its address becomes the billing address. When omitted, the supplier's default company is used, else the first company.

supplierContactId
ID

The ID of the supplier's contact person to address the order to. When omitted, the supplier's address is used without a person.

requestedDeliveryDate
DateTime

When the goods are requested. When omitted: today plus the supplier's delivery time, or plus 14 days when the supplier has none.

Replaces the delivery address the order would get from its warehouse or customer.

supplierDocumentNumber
String

The supplier's number for the order.

referenceNumber
String

A free reference.

internalComment
String

A comment for internal use.

printNote
String

A note printed on the order documents.

warehouseId
ID

The ID of the receiving warehouse, an active one that is no drop shipping target. When omitted, the supplier's default warehouse is used; one of the two is required. The delivery address is the warehouse's.

release
Boolean

Whether to release the order right away, as the release box of the purchase order dialog does. Defaults to false; when the ERP does not require release, every new order is released anyway.