Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

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

MUTATIONsale__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!
Example Request
mutation Sale__editInvoice($input: EditInvoiceInput!, $where: CommonFindDocumentDto!) {  sale__editInvoice(input: $input, where: $where)}
Variables
{  "input": {    "applyDiscountIds": [      "1"    ],    "customFields": [      {        "key": "string"      }    ]  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "sale__editInvoice": true  }}