getDiscountCode

Get discount code details. Fetch by code is case-insensitive.

Arguments

ArgumentDescription

code (ID!)

Return fields

autoSelectPlan (Plan)

If set the discout code will auto select this plan

code (String!)

The unique code that can be applied to a checkout

createdAt (ISO8601DateTime!)

When the discound code was created.

expired (Boolean!)

Whether the discount code has already expired.

id (ID!)

ID to identify the discount code with

maxTimesUsed (Int)

The max usage of this discount code

metadata (JSON)

Metadata makes it possible to store additional information on objects.

promotion (Promotion)

Promotion that is attached to the discount code

promotionId (ID!)

ID of the promotion that is attached to the discount code

redeemable (Boolean!)

Whether the discount code can be redeemed. Returns true only if related Discount is activated and Discount code has not expired.

updatedAt (ISO8601DateTime!)

When the discound code was updated last time.

Last updated

#33: Shopify SSO Connection

Change request updated