Create Coupon
This mutation is used to create a new coupon. { permissions: ['*', 'create'], collectionName: 'Coupon', } Requires a signed-in staff user. Needs the `Coupon` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
createCoupon(input: CreateCouponInput!, tenant: String): CommonMutationResponse!This mutation is used to create a new coupon. { permissions: ['*', 'create'], collectionName: 'Coupon', } Requires a signed-in staff user. Needs the Coupon create permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*tenant?StringReturns
- createCoupon
_id*ID!mutation CreateCoupon($input: CreateCouponInput!) { createCoupon(input: $input) { _id }}{ "input": { "code": "string", "usesLimit": 10, "value": 10.5, "valueType": "PERCENTAGE" }}{ "data": { "createCoupon": { "_id": "1" } }}Create Blog Category MUTATION
This mutation is used to create a new blog category. { permissions: ['*', 'create'], collectionName: 'Blogs', } Requires a signed-in staff user. Needs the `Blogs` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Create Page MUTATION
Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Pages` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).