createTransferAdvice mutation
createTransferAdvice 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.
Creates a transfer advice and opens it, in one transaction. Call it when goods must be moved from one warehouse (or bin) to another.
Permissions
Requires the transferAdvice.write permission, with both warehouses in your API key's
warehouse scope and the company in its legal-entity scope.
Repeated calls
requestId makes a retry after a lost response safe.
- The same
requestIdwith the same input returns the existing transfer advice withcreated: false. - The same
requestIdwith different input returnsCONFLICTwithextensions.reasonREQUEST_ID_REUSED.
Errors
- A failed call creates nothing: no draft and no number.
- An error about one line carries the line's index in
extensions.addIndex. - A line without a
targetLocationIdin a bin-to-bin transfer advice returnsVALIDATIONwithextensions.reasonTRANSFER_ADVICE_TARGET_BIN_REQUIRED.
Good to know
- The transfer advice moves no stock. Once it is open, each line reserves at the source warehouse what is free of the quantity it instructs.
- When the source and target warehouses are the same, the transfer advice moves goods from bin
to bin inside one warehouse, and every line needs a
targetLocationId.
An error whose path runs below this field does not mean the call failed: the transfer advice was created, so do not retry. See
Mutation.
Costs 1 point plus 1 per line and 1 per parameter, plus its selection.
Arguments
input:CreatePublicTransferAdviceInput!· required
Returns
CreatePublicTransferAdviceResult!
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.