Sale__create Discount
{ collectionName: 'sale__Discount', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the `sale__Discount` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
sale__createDiscount(input: CreateDiscountInput!, tenant: String): CommonMutationResponse!{ collectionName: 'sale__Discount', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the sale__Discount create permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*tenant?StringReturns
- sale__createDiscount
_id*ID!mutation Sale__createDiscount($input: CreateDiscountInput!) { sale__createDiscount(input: $input) { _id }}{ "input": { "method": "AUTOMATIC", "title": "string", "type": "BUY_X_GET_Y" }}{ "data": { "sale__createDiscount": { "_id": "1" } }}Remove Page MUTATION
Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Pages` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__create Invoice MUTATION
{ collectionName: 'sale__Invoice', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the `sale__Invoice` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).