**Version: 202701**

# Discount

Configure automatic discounts and code-based promotions with flexible eligibility rules

Discounts allow merchants to configure automatic or code-based promotions with flexible conditions, benefit types, and customer eligibility rules.

Provides endpoints to create and update both automatic and non-automatic discounts, manage discount combinability, list and retrieve discounts, and perform batch operations such as cancel, restart, and delete.

- [Create automatic discount](/api/202701/discount-automatic-create) `POST /openapi/2027-01/discounts/automatic`: Creates an automatic discount.

- [Create non-automatic discount](/api/202701/discount-non-automatic-create) `POST /openapi/2027-01/discounts/non-automatic`: Creates a non-automatic discount.

- [Update automatic discount](/api/202701/discount-automatic-update) `PUT /openapi/2027-01/discounts/automatic/:id`: Updates an automatic discount by ID.

- [Update non-automatic discount](/api/202701/discount-non-automatic-update) `PUT /openapi/2027-01/discounts/non-automatic/:id`: Updates a non-automatic discount by ID.

- [Cancel discounts](/api/202701/discount-cancel) `POST /openapi/2027-01/discounts/cancel`: Cancels one or more discounts.

- [Restart discount](/api/202701/discount-restart) `POST /openapi/2027-01/discounts/restart`: Restarts a discount.

- [List discounts](/api/202701/discounts) `GET /openapi/2027-01/discounts`: Returns the discount list by query parameters.

- [Get discount](/api/202701/discount-detail) `GET /openapi/2027-01/discounts/:id`: Gets discount details by ID.

- [Delete discount](/api/202701/discount-delete) `DELETE /openapi/2027-01/discounts/:id`: Deletes a discount by ID. Only discounts with progress status finished can be deleted.

- [Get discount by code](/api/202701/discount-by-code) `GET /openapi/2027-01/discounts/by-code/:discount_code`: Gets a discount by discount code.

- [Configure which discount types can be combined](/api/202701/discount-combine-update) `PUT /openapi/2027-01/discounts/combine`: Configure which discount types can be combined.

- [Batch delete discounts](/api/202701/discount-batch-delete) `POST /openapi/2027-01/discounts/batch-delete`: Deletes multiple discounts by IDs. Only discounts with progress status finished can be deleted.
