Shopify Create Discount Code Fixed Amount GraphQL

Creates a Shopify discount code using the Admin GraphQL API. The action generates a unique discount code with a fixed value/amount and supports validation and usage limits.

Inputs

NameTypeDescription
Shopify TokenSensitiveStringShopify Admin API token.
Shopify DomainStringShopify store subdomain (e.g., my-shop).
Discount CodeStringThe unique discount code to create (e.g., SAVE10).
Discount AmountNumberThe fixed discount amount in the store's currency (e.g., 10.00 for $10 off).

Outputs

NameTypeDescription
SuccessBooleanIndicates if the operation was successful.
Discount Code IDStringThe unique ID of the created discount code.
Error DetailsObjectDetails of any errors encountered during the operation. Empty if the operation succeeds.

References
Shopify Admin GraphQL API: DiscountCodeBasic
Shopify Admin GraphQL API: discountCodeBasicCreate