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 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
Calculate a discount and the fee together POST
Given an amount and a discount, returns the fee, the discount taken off, and the final amount the customer pays. Unauthenticated so a checkout page can call it while the customer is still choosing…
List a merchant's active discounts (public) GET
Returns the discount campaigns that are live right now for a merchant, optionally narrowed to the card BIN the customer is paying with and the channel they are paying on. Unauthenticated, because a…