UpdatePurchaseOrderInput

Updates values against the PurchaseOrder or OrderedLineItem objects. Useful for removing data you sent in error or deleting purchase orders that have been cancelled in your ERP. CAUTION! This mutation is used to update original expected values. Only use this mutation if you want to change the original values Zencargo uses to calculated the expected or estimated attributes about a Purchase Order. You cannot update the fulfilment information using this mutation. See The Purchase Orders guide for more information.

Input Fields

buyerId (String)

Location ID of the buyer of this purchase order. This should be the ID of an existing location within your network. See the networks API for details

destinationId (String)

Location ID of the destination of this purchase order. This should be the ID of an existing location within your network. See the networks API for details

incoterms (IncotermsValue)

Incoterms this purchase order was raised under

lineItemIdsToDelete ([String!])

'Add IDs of ordered line items to be deleted - this argument is required. Provide an empty array if you do not want to update this data

manufacturerId (String)

Account ID of the supplier for this purchase order. This must be the ID of a supplier within your network. Refer to the AccountConnection API for further details.

modeOfTransport (ModeOfTransport)

Optional argument for defining mode of transport, which can be air, ocean, truck, or rail

orderDate (Date)

Date the PO was confirmed with the manufacturer

orderReferenceNumber (String)

Reference number assigned to this purchase order by your ERP

orderedLineItems ([UpdateOrderedLineItemInput!])

Input ordered line item data - this argument is required. Provide an empty array if you do not want to update this data

originAgentId (String)

ID of the agent for this purchase order. This should be the ID of an existing agent within your network. Contact your Zencargo representative if you are unsure what to enter here

originId (String)

Location ID of the place of origin of this purchase order. This should be the ID of an existing location within your network. See the networks API for details

portOfDestinationUnlocode (String)

UNlocode of the port of destination expected for this order. See https://locode.info for codes

portOfLoadUnlocode (String)

UNlocode of the port of load expected for this order. See https://locode.info for codes

sellerId (String)

Location ID of the seller of this purchase order. Note: this is not the same as the manufacturer. This should be the ID of an existing location within your network. See the networks API for details