List discounts
List a store's discounts.
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_idstringRequiredExample:
The ID of the store to list discounts for.
store_01J8Z5F8W9K8M4A7B3C2D1E0FGQuery parameters
qstringOptionalExample:
Free-text search over discount code and name.
blackfridayis_disabledstring · enumOptionalPossible values:
Filter by disabled state.
pageintegerOptionalExample:
Page number
1Responses
200
Success response
application/json
401
Unauthenticated response
application/json
500
Error 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?