Fees and discounts

Check whether a card qualifies for a discount

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 checkout makes the moment the card number is complete, so the customer sees the bank discount before pressing pay. Served from the fep.kashier.io hosts. A card with no discount still returns 200 — the absence of a response object is the signal, not an error.

post/v3/discounts/card

Request

  • Base URL: https://test-fep.kashier.io
  • URL: https://test-fep.kashier.io/v3/discounts/card
  • Auth: none required

Request body

merchantIdstring required

The merchant the payment is for. Example: YOUR_MID

cardstring required

The card number the customer entered. Only its BIN is used to match a campaign.

typestring

What card holds — a card number.

channelstring

Where the payment is being taken.

amountnumber

The amount the discount would be applied to.

Response

Whether the card qualifies, and the discount if it does.

statusstring

Changes

No recorded changes to this operation across all 1 revision of this API.