Sale__edit Invoice
Edits a pending or processing order that hasn't been sent to a courier. { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Invoice` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
sale__editInvoice(input: EditInvoiceInput!, where: CommonFindDocumentDto!): Boolean!Edits a pending or processing order that hasn't been sent to a courier. { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the sale__Invoice update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*where*Returns
sale__editInvoice*Boolean!mutation Sale__editInvoice($input: EditInvoiceInput!, $where: CommonFindDocumentDto!) { sale__editInvoice(input: $input, where: $where)}{ "input": { "applyDiscountIds": [ "1" ], "customFields": [ { "key": "string" } ] }, "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "sale__editInvoice": true }}Sale__create Invoice MUTATION
{ collectionName: 'sale__Invoice', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the `sale__Invoice` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__remove Abandoned Cart MUTATION
{ collectionName: 'sale__Invoice', permissions: ['*', 'delete'], } Requires a signed-in staff user. Needs the `sale__Invoice` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).