See the Queries page for a presentation of this resource.
Update a purchase receipt
id Id of the purchase receipt
input Data of the purchase receipt
GraphQL
mutation UpdatePurchaseReceipt($id: ID!, $input: PurchaseReceiptInput!) {
UpdatePurchaseReceipt(id: $id, input: $input) {
id
shipping_cost
}
}
Variables (JSON)
{
"id": 100009,
"input": {
"shipping_cost": 11.5
}
}
JSON
{
"data": {
"UpdatePurchaseReceipt": {
"id": 100009,
"shipping_cost": 11.5
}
}
}
Delete the purchase receipt
id Id of the purchase receipt
GraphQL
mutation DeletePurchaseReceipt($id: ID!) {
DeletePurchaseReceipt(id: $id)
}
JSON
{
"data": {
"DeletePurchaseReceipt": true
}
}
id Unique identifier of the purchase receipt
label Title of the purchase receipt
total_units Total units of the purchase receipt
status Status of the purchase receipt (enum values : pending, cancelled, delivered, unpublished).
supplier Supplier of the purchase receipt
line_items List of the line items of the purchase receipt
dated_at Date of the purchase receipt
created_at Creation date of the purchase receipt
shipping_at Date the shipping is planned
shipping_cost Shipping costs of the purchase receipt