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 amount and supports validation and usage limits.
Inputs
| Name | Type | Description |
|---|---|---|
| Shopify Token | SensitiveString | Shopify Admin API token. |
| Shopify Domain | String | Shopify store subdomain (e.g., my-shop). |
| Discount Code | String | The unique discount code to create (e.g., SAVE10). |
| Discount Amount | Number | The fixed discount amount in the store's currency (e.g., 10.00 for $10 off). |
| Expiry Months | Number | How many months the code remains valid. Use 0 for a non-expiring code. |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Indicates if the operation was successful. |
| Discount Code ID | String | The unique ID of the created discount code. |
| Error Details | Object | Details of any errors encountered during the operation. Empty if the operation succeeds. |
References
Shopify Admin GraphQL API: DiscountCodeBasic
Shopify Admin GraphQL API: discountCodeBasicCreate
Updated 5 months ago
