Update a purchase receipt
| id - [ID](/reference/data-types#id) |
|---|
| Id of the purchase receipt |
| input - [PurchaseReceiptInput](/reference/purchase-receipt-mutations#purchasereceiptinput-data-type) |
|---|
| Data of the purchase receipt |
mutation UpdatePurchaseReceipt($id: ID!, $input: PurchaseReceiptInput!) {
UpdatePurchaseReceipt(id: $id, input: $input) {
id
shipping_cost
}
}
{
"id": 100009,
"input": {
"shipping_cost": 11.5
}
}
{
"data": {
"UpdatePurchaseReceipt": {
"id": 100009,
"shipping_cost": 11.5
}
}
}
Delete the purchase receipt
| id - [ID](/reference/data-types#id) |
|---|
| Id of the purchase receipt |
mutation DeletePurchaseReceipt($id: ID!) {
DeletePurchaseReceipt(id: $id)
}
{
"data": {
"DeletePurchaseReceipt": true
}
}
| id - [Int](/reference/data-types#int) |
|---|
| Unique identifier of the purchase receipt |
| label - [String](/reference/data-types#string) |
|---|
| Title of the purchase receipt |
| total_units - [Float](/reference/data-types#float) |
|---|
| Total units of the purchase receipt |
| status - [Enum](/reference/data-types#enum) |
|---|
| Status of the purchase receipt (enum values : pending, cancelled, delivered, unpublished). |
| dated_at - [Date](/reference/data-types#date) |
|---|
| Date of the purchase receipt |
| created_at - [DateTime](/reference/data-types#datetime) |
|---|
| Creation date of the purchase receipt |
| shipping_at - [Date](/reference/data-types#date) |
|---|
| Date the shipping is planned |
| shipping_cost - [Float](/reference/data-types#float) |
|---|
| Shipping costs of the purchase receipt |
| supplier - [SupplierInput](/reference/supplier-queries) - Subquery |
|---|
| Supplier of the purchase receipt |
| line_items - [LineItemInput](/reference/line-item-queries) - Subquery |
|---|
| List of the line items of the purchase receipt |