For the complete documentation index, see llms.txt. This page is also available as Markdown.

List discounts

List a store's discounts.

List discounts

get

List a store's discounts. Filter by free text over code and name, or by disabled state. Amounts for fixed discounts are integers in the smallest currency unit; percentage discounts carry a whole-number value between 1 and 100.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
store_idstringRequired

The ID of the store to list discounts for.

Example: store_01J8Z5F8W9K8M4A7B3C2D1E0FG
Query parameters
qstringOptional

Free-text search over discount code and name.

Example: blackfriday
is_disabledstring · enumOptional

Filter by disabled state.

Possible values:
pageintegerOptional

Page number

Example: 1
Responses
200

Success response

application/json
get/api/ecommerce/v1/stores/{store_id}/discounts
GET /api/ecommerce/v1/stores/{store_id}/discounts HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "id": "disc_01J8Z5F8W9K8M4A7B3C2D1E0FG",
      "code": "BLACKFRIDAY",
      "name": "Black Friday",
      "type": "percentage",
      "value": 20,
      "allocation": "total",
      "is_disabled": false,
      "starts_at": "2026-01-21T07:35:04.000000Z",
      "ends_at": null,
      "usage_limit": null,
      "usage_count": 0
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 15,
    "total": 100
  }
}

Last updated

Was this helpful?