List a merchant's active discounts (public)
curl -X GET "https://test-api.kashier.io/v2/discounts/string/active"{ "data": [ { "id": "string", "merchantId": "string", "discountName": "string", "discountType": "string", "discountValue": 0, "currency": "string", "validFrom": "string", "validUntil": "string", "status": "string" } ], "total": 0}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 checkout page calls it directly to decide what discount banner to show.
Path Parameters
The merchant id the discounts belong to. Example: YOUR_MID
Query Parameters
Comma-separated card BINs — only return discounts that apply to these.
Only return discounts that apply on this channel.
Value in
- "pos"
- "online"
Response Body
application/json
application/json
application/json
application/json
List your discount campaigns GET
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 re…
Check whether a card qualifies for a discount POST
Checks the card the customer has just entered against the merchant's live bank discount campaigns and, when one applies, returns how much comes off and what the fee would be. This is the call a che…