Chameleoon MAX · Transfers
cancelTransferAdvice mutation
cancelTransferAdvice 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.
Cancels an OPEN transfer advice that nothing has moved against, and releases its
reservations. Call it when the goods no longer need to be moved.
Permissions
Requires the same permissions as updateTransferAdvice.
Errors
The call is refused with CONFLICT and one of these values of extensions.reason:
| Reason | When |
|---|---|
TRANSFER_ADVICE_STATUS | The transfer advice is not OPEN. |
HANDHELD_DRAFT_OPEN | A transfer is being scanned against the transfer advice on a handheld. It must be completed or deleted first. |
TRANSFER_ADVICE_HAS_MOVES | Goods have moved against the transfer advice. Close it in MAX instead. |
TRANSFER_ADVICE_HAS_DRAFTS | A draft transfer links the transfer advice. Delete or unlink the draft first. |
An error whose path runs below this field does not mean the call failed: the transfer advice was cancelled, so do not retry. See
Mutation.
Arguments
id:UUID!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.