# InvoiceSyncResult type


The result of [`syncInvoice`](/chameleoon-max/mutation/sync-invoice) or [`removeInvoice`](/chameleoon-max/mutation/remove-invoice).

## Fields

### invoice

[`Invoice!`](/chameleoon-max/type/invoice)

The invoice as MAX holds it after the call.

### changed

`Boolean!`

`false` when nothing was written: the same document again, or a `STALE` one.

### reason

[`InvoiceSyncReason`](/chameleoon-max/type/invoice-sync-reason)

Why nothing was written. Null when the call wrote, or sent the same document again.

### warnings

[`[ApiWarning!]!`](/chameleoon-max/type/api-warning)

What MAX matched or could not match that you should know, for example a partner found by its
company registration number (IČO) or a line that no code matched.

Priced as 3 warnings, however many it holds.

Costs 3 points plus 3 × one warning's selection.

## Used by

- [`removeInvoice`](/chameleoon-max/mutation/remove-invoice) (mutation)
- [`syncInvoice`](/chameleoon-max/mutation/sync-invoice) (mutation)
