Admin API / Queries

discountCode

Finds a discount code by ID. Null when the code is not in this store, or when its creator is not the caller or the owner of a store that the caller staffs.

Requires a client key with one of these scopes: admin:discounts:readRequires this member role or higher: SELLER
discountCode(
  id: ID!
): DiscountCode

Arguments

ArgumentTypeDescription
idID!The discount code ID.

Return type

DiscountCode