document is a GraphQL query of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Returns one document with its current version. Use it to read back a document you attached.
Requires the order.read or invoice.read permission. With neither, FORBIDDEN_ROLE.
Reading a sales order's document requires order.read; reading an invoice's document
requires invoice.read.
Returns null when the document does not exist or is removed, when your API key lacks the
read permission of its order or invoice, or when your API key cannot see that order or
invoice.