Available queries
Associated query | Returns multiple results |
---|---|
ProductReturn | |
ProductReturns | ✔️ |
Available fields
Label | Type | Notes | Null |
---|---|---|---|
account_manager | Account manager | The account manager associated to this document | ✔️ |
add_in_inventory | boolean | Indicates if the returned products should restored in the inventory | |
changed | Date | The date of the product return's last modification | |
created | Date | The date of the product return's creation | |
credit_notes_created | Credit Notes | The credit note created from this document | ✔️ |
customer | Customer | The customer this document is addressed to | ✔️ |
id | integer | The id of the document | |
internal_notes | string | Notes about this document that only you will see | ✔️ |
invoice_created_from | Invoice | The invoice this document was created from | ✔️ |
label | string | The order number of this specific product return, see below. Automatically generated | |
line_items | Line items | The line items of the document | |
location | Location | The location used in the document | ✔️ |
notes | string | Notes about this document that you AND the customer will see | ✔️ |
product_return_status | string | The status of this document ("pending", "delivered", "cancelled") | |
refunds_created | Refunds | The refunds created from this document | ✔️ |
sales_order_created_from | Sales Order | The sales order this document was created from | ✔️ |
season | Season | The season used int this document | ✔️ |
total_units | decimal(17,7) | The total units of this order | |
user | User | The 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
}
}
}
}
}