Customer Specific Discounts

Customer Specific Discounts

It is possible to configure the system with discounts that only apply for a specific customer.

If customer specific discount are enabled, the Ka-ching system will ask for a list of discounts for a given customer id. Other parameters available to the endpoint are: the current market and the currency_code of the current base currency.

The response from this web service should be a json-encoded array of discount objects - similar to those described in the Discount Campaign Import Endpoint chapter. But since the request is for a specific market and a specific currency code, it is only needed to send new prices and the like for the specific market:

[
    {
            "id": "0003",
            "type": "new_price_discount-single_product",
            "product_id": "abc",
            "new_price_per_item": 42,
            "name": "New price discount",
            "display_name": "New price discount",
            "priority": 80
    }
]