Available queries

Associated queryReturns multiple results
ProductReturn
ProductReturns✔️

Available fields

LabelTypeNotesNull
account_managerAccount managerThe account manager associated to this document✔️
add_in_inventorybooleanIndicates if the returned products should restored in the inventory
changedDateThe date of the product return's last modification
createdDateThe date of the product return's creation
credit_notes_createdCredit NotesThe credit note created from this document✔️
customerCustomerThe customer this document is addressed to✔️
idintegerThe id of the document
internal_notesstringNotes about this document that only you will see✔️
invoice_created_fromInvoiceThe invoice this document was created from✔️
labelstringThe order number of this specific product return, see below. 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✔️
product_return_statusstringThe status of this document ("pending", "delivered", "cancelled")
refunds_createdRefundsThe refunds created from this document✔️
sales_order_created_fromSales OrderThe sales order this document was created from✔️
seasonSeasonThe season used int this document✔️
total_unitsdecimal(17,7)The total units of this order
userUserThe user who created this order

Example of a query

query{
  ProductReturns{
    edges{
      node{
        account_manager{
          id
        }
        add_in_inventory
        changed
        created
        credit_notes_created{
          edges{
            node{
              id
            }
          }
        }
        customer{
          id
        }
        id
        internal_notes
        invoice_created_from{
          id
        }
        label
        line_items{
          edges{
            node{
              id
            }
          }
        }
        location{
          id
        }
        notes
        product_return_status
        refunds_created{
          edges{
            node{
              id
            }
          }
        }
        sales_order_created_from{
          id
        }
        season{
          label
        }
        total_units
        user{
          display_name
        }
      }
    }
  }
}