Available queries

Associated queryReturns multiple results
PurchaseOrder
PurchaseOrders✔️

Available fields

LabelTypeNotesNull
changedDateThe date of the product return's last modification
createdDateThe date of the product return's creation
currencyCurrencyThe currency used in this document✔️
customerCustomerThe customer this document is addressed to✔️
delivery_typestringThe type of delivery used in this document
deliveries_createdDeliveriesThe deliveries created
discountdecimal(10,2)The discount applied in this document✔️
external_referencestringThe external reference of this document✔️
for_the_attention_ofstringThe person this document is addressed to✔️
global_discountdecimal(12,2)The global discount applied to the document✔️
idintegerThe id of the document
internal_notesstringNotes about this document that only you will see✔️
labelstringThe order number of this specific purchase order. Automatically generated
line_itemsLine itemsThe line items of the document
locationLocationThe location used in the document✔️
notesstringNotes about this document that you AND the customer will see✔️
price_levelPrice levelThe price level used in this document
purchase_order_statusstringThe status of the purchase order ("active", "cancelled", "partially_delivered", "completed_manually", "completed_automatically" )
seasonSeasonThe season used int this document✔️
shipping_costdecimal(10,2)The shipping cost✔️
shipping_dateDateNoHourThe date of shipping✔️
shipping_taxesTaxesThe shipping taxes used in this document✔️
ship_toAddressThe shipping address✔️
subtotaldecimal(12,2)The subtotal of this document
supplierSupplierThe supplier used in this document✔️
taxesTaxesThe taxes used in this document✔️
tax_typeObjectThe type of taxes in this document✔️
totaldecimal(12,2)The total of this document
total_taxesTotal taxesThe total taxes of this document✔️
total_unitsdecimal(17,7)The total units of this order
userUserThe user who created this order

Example of a query

query{
  PurchaseOrders{
    edges{
      node{
        changed
        created
        currency{
          id
        }
        customer{
          id
        }
        delivery_type
        discount
        external_reference
        for_the_attention_of
        global_discount
        id
        internal_notes
        label
        line_items{
          edges{
            node{
              id
            }
          }
        }
        location{
          id
        }
        notes
        price_level{
          id
        }
        purchase_order_status
        season{
          label
        }
        shipping_cost
        shipping_date
        shipping_taxes{
          edges{
            node{
              id
            }
          }
        }
        ship_to{
          country
        }
        subtotal
        supplier{
          id
        }
        taxes{
          edges{
            node{
              id
            }
          }
        }
        tax_type
        total
        total_taxes{
          edges{
            node{
              id
            }
          }
        }
        total_units
        user{
          display_name
        }
      }
    }
  }
}