Promotions (Bulk)
Get All Promotions
GET https://api.bigcommerce.com/stores/{store_hash}/v3/promotionsRequest
Returns a list of promotions.
The response includes the display name and other details about each promotion, and lists the promotions ordered by ID by default.
Note: The default rate limit for this endpoint is 40 concurrent requests.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id in query - integerFilter items by
id
. - name in query - stringFilter items by
name
. - code in query - stringFilter items by
code
. - currency_code in query - stringFilter items by
currency_code
. - redemption_type in query - stringFilter items by
redemption type
Allowed: automatic | coupon
- status in query - stringFilter items by
status
. - page in query - integerQuery parameter that specifies the page number in a paginated list of resources.
- limit in query - integer
Query parameter that limits the number of items displayed per page in a paginated list of resources. When none is specified a default value of 50 is used.
- sort in query - stringQuery parameter that specifies the field name to sort by. The default value is id.
Allowed: id | name | priority | start_date
- direction in query - stringQuery parameter that specifies the sorting direction. The default value is asc.
Allowed: asc | desc
- channels in query - arrayFilter promotions that target those
channel IDs
. Example: ?channels=1,2. Note: promotions that target all the channels are included in the filtering result.Type: array[integer]
example
Response
Body
object | application/json
dataarray[]
example-1
Delete Multiple Promotions
DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/promotionsRequest
Deletes multiple promotions. Currently, batches are limited to 50 promotions.
Notes
- "id:in" query param is required to delete promotions. If this parameter is not provided, or provided with the wrong data format, a 422 error code is returned.
- You cannot delete promotions that still have coupon codes attached.
- The default rate limit for this endpoint is 40 concurrent requests.
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- id:in in query - arrayrequired
A comma-separated list of promotions to filter or target with this operation.
Example: ?id:in=11,12,13,14
Type: array[integer]
example
Response
A 204 response.
Did you find what you were looking for?