Organization / Purchase orders
purchaseOrderCreate
Create a new purchase order
Arguments
1 argumentprice•MoneyInputPrice per item
productId•IDID of the product that is ordered
quantityOrdered•IntQuantity that is ordered
sellAhead•IntDefault: 0Quantity to allow pre-orders for this product
reference•StringReference of the order
supplierId•IDID of the supplier
Possible return
createdAt•DateTimeTz!When the order was created.
expectedDeliveryAt•DateThe earliest expected delivery date on a linked goods receipt.
id•ID!Unique primary key.
isUpdatable•Boolean!Whether this purchase order can be updated.
itemsCount•Int!Number of items ordered in this purchase order.
productsCount•Int!Number of products in this purchase order.
reference•StringReference of the order
status•PurchaseOrderStatus!Status of the order
CANCELEDCOMPLETEDCREATEDEXPECTEDORDEREDRECEIVEDRECEIVINGupdatedAt•DateTimeTz!When the order was last updated.
field•[String!]message•String!