appmixer.shopify.discounts.CreateDiscountCode
1.0.0
Public
| Field | Type | Description |
|---|---|---|
| Discount Type | select | Whether the code takes a percentage off the order subtotal or a fixed amount in the store currency. |
| Discount Value | number | The size of the discount as a positive number, e.g. 15 for 15% off or 15 off in the store currency. Percentage discounts cannot exceed 100. |
| Discount Code | text | The code customers enter at checkout. Leave empty to have a random 8-character code generated. |
| Title | text | The name of the discount shown in the Shopify admin. Defaults to the discount code. |
| Minimum Order Subtotal | number | Only apply the code when the order subtotal reaches this amount. Leave empty for no minimum. |
| Starts At | date-time | When the code becomes usable. Defaults to the moment the component runs. |
| Ends At | date-time | When the code expires. Leave empty for a code that never expires. |
| Usage Limit | number | How many times the code can be redeemed in total. Leave empty for unlimited. |
| Once Per Customer | toggle | Whether each customer can redeem the code only once. |
| Field | Type | Description |
|---|---|---|
| ID | integer | - |
| Code | string | - |
| Price Rule ID | integer | - |
| Usage Count | integer | - |
| Created At | string | - |
| Updated At | string | - |
| Price Rule | object | - |