Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

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).

MUTATIONsale__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!
Example Request
mutation Sale__removeInvoice($confirmInvoiceUID: String!, $where: CommonFindDocumentDto!) {  sale__removeInvoice(confirmInvoiceUID: $confirmInvoiceUID, where: $where)}
Variables
{  "confirmInvoiceUID": "string",  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "sale__removeInvoice": true  }}