Admin API / Queries
discountCodeByCode
Finds a discount code that the caller or the owner of a store that the caller staffs created, by its text. The match ignores letter case and leading and trailing spaces. Null when no such code exists.
Requires a client key with one of these scopes:
admin:discounts:readRequires this member role or higher: SELLERdiscountCodeByCode(
code: String!
): DiscountCodeArguments
| Argument | Type | Description |
|---|---|---|
code | String! | The code text. |