Get price

Authorizations:
Request Body schema: application/json

Takes a list of products and returns their prices to display to the user. By default, the user-location adjusted price denominated in their local currency is returned. If the LivePrice optimization engine is turned on, the returned prices are the results of experiments the engine runs to determine optimal prices.

user_id
string

Unique user identifier (required if ip is not specified)

ip
string

User IP address (required if country, user_id, or get_ip_from_request is not specified)

country
string

User two-letter country code (ISO 3166 alpha-2; required if ip is not specified)

ab
boolean

If set to true will enfore the ab flag. (If the ab flag is on the base price in the base currency, usually USD, will be returned.)

dev
boolean

Turn developement mode on/off. When set to false nothing will be stored by Corrily.

get_ip_from_request
boolean

For front-end calls, allows you to get the IP of the user from their request.

required
Array of objects (Product)

A list of product objects

Responses

Request samples

Content type
application/json
{
  • "user_id": "u_123",
  • "ip": "185.35.50.4",
  • "ab": false,
  • "country": "GB",
  • "dev": true,
  • "products": [
    ]
}

Response samples

Content type
application/json
{
  • "property1": {
    },
  • "property2": {
    }
}
Copyright © Corrily 2020. All right reserved.