createReceiptAdvice mutation
createReceiptAdvice 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 and opens one receipt advice in a single step. Call it when a supplier announces a delivery to one of your warehouses.
The advice gets its number (PP-…) and expects its goods at once. A failed call creates no
draft and takes no number. Every line names its product variant.
Permissions
Requires the advice.write permission, with the warehouse, its legal entity and the supplier
in your API key's warehouse, legal-entity and partner scope.
Repeated calls
requestId makes a retry after a lost response safe. A repeat with the same input returns the
advice with created: false. A repeat with different input returns CONFLICT with the reason
REQUEST_ID_REUSED.
Errors
VALIDATIONwith the reasonCURRENCY_MISMATCHwhen the currency is not the warehouse's valuation currency.- An error about a line names the line's index in
extensions.addIndex.
An error whose path runs below this field does not mean the call failed: the receipt 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:CreateReceiptAdviceInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.