Core GraphQL APIReferenceMutations
Sale__update Invoice
{ collectionName: 'sell__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).
MUTATION
sale__updateInvoice(input: UpdateInvoiceInput!, where: CommonFindDocumentDto!): Boolean!{ collectionName: 'sell__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__updateInvoice*Boolean!Example Request
mutation Sale__updateInvoice($input: UpdateInvoiceInput!, $where: CommonFindDocumentDto!) { sale__updateInvoice(input: $input, where: $where)}{ "input": { "customFields": [ { "key": "string" } ], "customer": { "name": "string" } }, "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "sale__updateInvoice": true }}