KashierDevelopersKashier Developers

List your discount campaigns

curl -X GET "https://test-api.kashier.io/v2/discounts"
{  "data": [    {      "id": "string",      "discountName": "string",      "active": true    }  ]}

Returns the names of the discount campaigns configured on the merchant account and whether each one is currently active. Campaigns are set up by Kashier rather than through the API, so this is a read-only view — use it to label a discount in your own UI once calculateDiscount or checkCardDiscount tells you one applies.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

GET
/v2/discounts