KashierDevelopersKashier Developers

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

merchantId*string

The merchant id the discounts belong to. Example: YOUR_MID

Query Parameters

binRanges?string

Comma-separated card BINs — only return discounts that apply to these.

channel?string

Only return discounts that apply on this channel.

Value in

  • "pos"
  • "online"

Response Body

application/json

application/json

application/json

application/json

GET
/v2/discounts/{merchantId}/active