getPrice()

Use getPrice() method to receive detailed information about the offer price based on customer location.

Parameters:

Name Type Description
offerId string Offer ID, e.g. A123123123_US
ipAddress string IP Address of your visitor, e.g. 172.16.254.1
couponCode string Coupon code, e.g. xxxxxxxx
- required parameter

Request:

    [
    {
    "method": "getPrice",
    "params": {
    "offerId": "S325990213_BE",
    "ipAddress": "109.123.123.42"
    },
    },
    "jsonrpc": "2.0",
    "id": 1
    }
    ]

Response:

    [
    {
    "result": {
    "offerPrice": 11.9974,
    "offerCurrency": "EUR",
    "offerCurrencySymbol": "\u20ac",
    "offerCountry": "BE",
    "customerPriceInclTax": 12.1974,
    "customerPriceExclTax": 9.9174,
    "customerCurrency": "EUR",
    "customerCurrencySymbol": "\u20ac",
    "customerCountry": "FR"
    },
    "id": "1",
    "error": null,
    "jsonrpc": "2.0"
    }
    ]

Remember! you can always check it by yourself using API Console - getPrice()

Back to Customer API