DiscountRedeemCodeBulkAdd
Asynchronously adds discount codes in bulk to a code discount. Maximum: 250 codes per call.
Procedure-Specific Information
The following input can accept either a temporary table name or a JSON aggregate that matches the structure of the referenced table as a value.
- Codes references the DiscountRedeemCodeBulkAddCodeInputs temporary table.
DiscountRedeemCodeBulkAddCodeInputs Temporary Table Columns
| Column Name | Type | Description |
| Code | String | The code to use the discount. |
Input
| Name | Type | Required | Description |
| DiscountId | String | True | The ID of the DiscountCodeNode object receiving the codes. |
| Codes | String | True | The list of codes to associate with the code discount. |
| WaitJob | String | False | The Stored Procedure will wait until the Job is done.
The default value is true. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether or not the operation executed successfully. |
| Details | String | Any extra details on the operation's execution. |
| JobId | String | The ID of the bulk operation that creates the discount codes. |
| Status | String | The status of the Job. |
| CodesCount | Int | The total number of codes to be created. |
| ImportedCount | Int | The number of codes successfully created. |
| FailedCount | Int | The number of codes that failed to be created. |