Skip to main content

Create new Purchase Order

mutation {
createPurchaseOrder(
purchase_code: "string"
po_date: "string" //Eg: "2023-10-25"
expected_date: "string" //Eg: "2023-10-25"
currency: "string" //Eg: "USD"
ship_to_name: "string"
ship_to_address: "string"
discount_label: "string"
discount_amount: "float"
tax_label: "string"
tax_amount: "float"
shipping_label: "string"
shipping_amount: "float"
items: [
{
variant_id: "string"
product_supplier_sku: "string"
qty_ordered: "float"
cost: "float"
}
]
) {
purchase_order_id
purchase_code
po_date
expected_date
currency
supplier_id
supplier_name
ship_to_name
ship_to_address
discount_label
discount_amount
tax_label
tax_amount
shipping_label
shipping_amount
status
created_at
updated_at
items {
purchase_order_product_id
product_id
variant_id
inventory_item_id
product_name
product_sku
product_supplier_sku
variant_name
product_image
variant_image
qty_ordered
qty_received
cost
sales_price
}
}
}