Coupons
Only coupons that the user has access to will be returned. Requires a signed-in staff user. Needs the `Coupon` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
coupons(where: CommonPaginationDto): CouponsWithPagination!Only coupons that the user has access to will be returned. Requires a signed-in staff user. Needs the Coupon read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where?Returns
- coupons
meta?nodes?query Coupons { coupons { meta { currentPage hasNextPage totalCount totalPages } nodes { _id applicableForMinimumExpense code commits { action committedAt note } createdAt grantType grantedUsers { _id accountStatus createdAt email lastLoginAt mustChangePassword name phoneNumber } isAutoGenerated isDemo maxAllowedValue } }}{ "data": { "coupons": { "meta": { "currentPage": 10.5, "hasNextPage": true, "totalCount": 10.5, "totalPages": 10.5 }, "nodes": [ { "_id": "1", "applicableForMinimumExpense": 10.5, "code": "string", "commits": [ { "action": "string", "committedAt": "<DateTime>", "note": "string" } ], "createdAt": "<DateTime>", "grantType": "GLOBAL", "grantedUsers": [ { "_id": "1", "accountStatus": "ACTIVE", "createdAt": "<DateTime>", "email": "string", "lastLoginAt": "<DateTime>", "mustChangePassword": true, "name": "string", "phoneNumber": "string" } ], "isAutoGenerated": true, "isDemo": true, "maxAllowedValue": 10.5 } ] } }}Blogs QUERY
Authenticated · x-tenant · Auth rules: @storeos/rbac-catalog Requires a signed-in staff user. Needs the `Blogs` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Files__attachments QUERY
Authenticated · x-tenant · Usage log of where files are attached. Requires a signed-in staff user. Needs the `files__File` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).