Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

List promotions

Returns discount promotions. Promotions apply percentage or fixed-amount discounts via coupon codes or automatic rules.

GET/promotions
Authorization
AuthorizationBearer token (JWT) · headerrequired
Query parameters
shop_idinteger
ID of the shop whose promotions to list.
statusstring
Filter by promotion status.
default: "all"
Allowed:activeexpiredall
qstring
Search by promotion name or code.
pageinteger
min 1 · default: 1
per_pageinteger
min 1 · max 200 · default: 20
Responses
200Paginated promotions list
403Access denied
422`shop_id` required
Request
curl -X GET "https://api.onbolder.com/v2/promotions" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "_class": [
    "results",
    "promotions"
  ],
  "total_items": 1,
  "per_page": 20,
  "page": 1,
  "_links": {
    "self": {
      "href": "https://api.onbolder.com/v2/promotions?shop_id=1"
    }
  },
  "_embedded": {
    "items": [
      {
        "id": 20,
        "name": "Summer Sale 20%",
        "code": "SUMMER20",
        "activation_mode": "code",
        "discount_type": "percentage",
        "discount": 20,
        "status": "active",
        "starts_at": "2024-06-01T00:00:00Z",
        "expires_at": "2024-08-31T23:59:59Z",
        "_links": {
          "self": {
            "href": "https://api.onbolder.com/v2/promotions/20"
          }
        }
      }
    ]
  }
}