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: SELLER
discountCodeByCode(
  code: String!
): DiscountCode

Arguments

ArgumentTypeDescription
codeString!The code text.

Return type

DiscountCode