purchaseOrderCreateLine
Create a new purchase order line
Arguments
2 argumentsid•ID!ID of the purchase order.
currency•String!ISO 4217 currency code
value•String!Amount
productId•IDID of the product that is ordered
quantityOrdered•IntQuantity that is ordered
Possible return
id•ID!Unique primary key.
id•ID!Unique primary key.
name•String!Name of the ordered product
billingAddress•AddressBilling address of the order
brand•Brand!Brand of the order
canceledAt•DateTimeTzWhen the order was canceled.
createdAt•DateTimeTz!When the order was created.
customer•CustomerCustomer of the order
customsInvoiceNumber•StringInvoice number for customs
customsShipmentType•CustomsShipmentTypeShipment export type for customs
DOCUMENTSGIFTRETURNED_GOODSSALE_GOODSSAMPLEevents•EventConnection!Events related to this order
exceptions•OrderExceptionConnection!Exceptions related to this order
fulfillmentPreferences•OrderFulfillmentPreferencesFulfillment preferences of the order.
fulfillments•FulfillmentConnection!Fulfillments of the order
id•ID!Unique primary key.
integration•IntegrationIntegration of the order
integrationReference•StringIntegration reference of the order
isUpdatable•Boolean!Whether this order can be updated.
lines•OrderLineConnection!Order lines
locale•StringBCP-47 locale used for communication templates
metafields•MetafieldConnection!Metafields attached to this order
quantityAllocated•Int!Quantity allocated in to fulfillments
quantityOrdered•Int!Quantity ordered
quantityShipped•Int!Quantity (already) shipped
quantityUnallocated•Int!Quantity that is not (yet) allocated to a fulfillment
recipientAddress•AddressRecipient address of the order
reference•StringReference of the order
shipments•ShipmentConnection!Shipments
shippedAt•DateTimeTzWhen the order was shipped.
shippingPrice•MoneyShipping cost paid by the customer
status•OrderStatus!Status of the order
ALLOCATEDCANCELEDCREATEDEXPECTEDPARTIALLY_SHIPPEDSHIPPEDUNALLOCATEDtickets•SupportTicketAccessConnection!Support tickets linked to this order
updatedAt•DateTimeTz!When the order was last updated.
parentLine•OrderLineParent order line (for bundles)
currency•String!ISO 4217 currency code
value•String!Amount
currency•String!ISO 4217 currency code
value•String!Amount
barcodes•[ProductBarcode!]Barcodes linked to this product
brandName•StringBrand name of the product
code•StringArticle number of the product
costPrice•MoneyCost price of the product
countryCodeOfOrigin•StringCountry code of origin of the product
createdAt•DateTimeTz!When the product was created.
description•StringGoods description for customs in English
dimensions•DimensionsDimensions of the product
hsCode•StringHS code of the product
id•ID!Unique primary key.
integrationProducts•IntegrationProductConnection!The integration products associated with this product.
media•ProductMediaConnection!The media associated with this product.
metafields•MetafieldConnection!Metafields attached to this product
name•StringName of the product
orderLines•OrderLineConnection!Order lines of the product.
partOfBundles•ProductPartConnection!List bundles
parts•ProductPartConnection!List parts
price•MoneySelling price of the product.
productSuppliers•ProductSupplierConnection!Purchasing configuration for suppliers linked to this product.
productWarehouses•ProductWarehouseConnection!The product warehouses associated with this product.
purchaseAdviceMode•PurchaseAdviceMode!How purchasing advice is calculated for this product.
BACKORDERS_ONLYTARGET_STOCKquantityAllocated•Int!Quantity allocated to fulfillments
quantityAvailable•Int!Quantity available
quantityIncoming•Int!Quantity incoming on open purchase orders.
quantityOnHand•Int!Quantity on hand in warehouses
quantityUnallocated•Int!Total quantity unallocated (backorders) across all order lines
stockMutations•StockMutationConnection!List stock mutations
stocks•StockConnection!List stocks
suppliers•SupplierConnection!The suppliers associated with this product.
tags•TagConnection!List linked tags
updatedAt•DateTimeTz!When the product was last updated.
weight•WeightWeight of the product
quantityAllocated•Int!Quantity allocated in to fulfillments
quantityOrdered•Int!Quantity ordered
quantityShipped•Int!Quantity (already) shipped
quantityUnallocated•Int!Quantity that is not (yet) allocated to a fulfillment
currency•String!ISO 4217 currency code
value•String!Amount
barcode•String!Barcode
id•ID!Unique primary key.
quantity•Int!Quantity of items when scanned
brandName•StringBrand name of the product
code•StringArticle number of the product
currency•String!ISO 4217 currency code
value•String!Amount
countryCodeOfOrigin•StringCountry code of origin of the product
createdAt•DateTimeTz!When the product was created.
description•StringGoods description for customs in English
hsCode•StringHS code of the product
id•ID!Unique primary key.
A list of IntegrationProduct edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[ProductMediaEdge!]!A list of ProductMedia edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[MetafieldEdge!]!A list of Metafield edges.
pageInfo•PageInfo!Pagination information about the list of edges.
name•StringName of the product
edges•[OrderLineEdge!]!A list of OrderLine edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[ProductPartEdge!]!A list of ProductPart edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[ProductPartEdge!]!A list of ProductPart edges.
pageInfo•PageInfo!Pagination information about the list of edges.
currency•String!ISO 4217 currency code
value•String!Amount
edges•[ProductSupplierEdge!]!A list of ProductSupplier edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[ProductWarehouseEdge!]!A list of ProductWarehouse edges.
pageInfo•PageInfo!Pagination information about the list of edges.
purchaseAdviceMode•PurchaseAdviceMode!How purchasing advice is calculated for this product.
BACKORDERS_ONLYTARGET_STOCKquantityAllocated•Int!Quantity allocated to fulfillments
quantityAvailable•Int!Quantity available
quantityIncoming•Int!Quantity incoming on open purchase orders.
quantityOnHand•Int!Quantity on hand in warehouses
quantityUnallocated•Int!Total quantity unallocated (backorders) across all order lines
edges•[StockMutationEdge!]!A list of StockMutation edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[StockEdge!]!A list of Stock edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[SupplierEdge!]!A list of Supplier edges.
pageInfo•PageInfo!Pagination information about the list of edges.
edges•[TagEdge!]!A list of Tag edges.
pageInfo•PageInfo!Pagination information about the list of edges.
updatedAt•DateTimeTz!When the product was last updated.
value•Float!Weight value
quantityOrdered•Int!Quantity ordered
quantityReceived•Int!Quantity received in completed goods receipts
sellAhead•Int!Quantity to allow pre-orders for this order line
field•[String!]message•String!