Sale__update Discount
{ collectionName: 'sale__Discount', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Discount` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
sale__updateDiscount(input: UpdateDiscountInput!, where: CommonFindDocumentDto!): Boolean!{ collectionName: 'sale__Discount', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the sale__Discount update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*where*Returns
sale__updateDiscount*Boolean!mutation Sale__updateDiscount($input: UpdateDiscountInput!, $where: CommonFindDocumentDto!) { sale__updateDiscount(input: $input, where: $where)}{ "input": { "appliesTo": { "scope": "ALL" }, "buyXGetY": { "buys": { "scope": "ALL" }, "gets": { "quantity": 10, "scope": "ALL", "value": { "type": "FIXED_AMOUNT" } } } }, "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "sale__updateDiscount": true }}Sale__send Invoice To Courier MUTATION
Authenticated x-tenant { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Invoice` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__update Invoice MUTATION
{ collectionName: 'sell__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Invoice` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).