Sale__remove Invoice
Permanently deletes an order. `confirmInvoiceUID` must match the order's invoiceUID. { 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).
sale__removeInvoice(confirmInvoiceUID: String!, where: CommonFindDocumentDto!): Boolean!Permanently deletes an order. confirmInvoiceUID must match the order's invoiceUID. { 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).
Arguments
confirmInvoiceUID*String!where*Returns
sale__removeInvoice*Boolean!mutation Sale__removeInvoice($confirmInvoiceUID: String!, $where: CommonFindDocumentDto!) { sale__removeInvoice(confirmInvoiceUID: $confirmInvoiceUID, where: $where)}{ "confirmInvoiceUID": "string", "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "sale__removeInvoice": true }}Sale__remove Discount MUTATION
{ collectionName: 'sale__Discount', permissions: ['*', 'delete'], } Requires a signed-in staff user. Needs the `sale__Discount` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__retry Invoice Payment 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).