Chameleoon MAX · Invoices
removeInvoice mutation
removeInvoice is a GraphQL mutation of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Marks a document as deleted in the accounting system. Call it when the document is deleted there.
MAX sets the status REMOVED and keeps the invoice as evidence.
Permissions
Requires the invoice.sync permission. Without invoice.read, the result's internalNote is
null.
Repeated calls
- A repeat writes nothing and returns
changed: false. - A call whose
sourceChangedAtis older than the one MAX holds writes nothing and returnsreasonSTALE.
Errors
NOT_FOUNDwhen no invoice has thesourceandexternalId.
Good to know
- This call may change a linked sales order's invoice reference, which follows the order's
governing invoice (
SalesOrder.governingInvoice).
An error whose path runs below this field does not mean the call failed: the invoice was marked as removed, so do not retry. See
Mutation.
Arguments
input:RemoveInvoiceInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.