3b. Plug your website (API)
Using the Pricery API directly allows you to customize
Get direct access to your pricings as well as your visitor's detailed localization information by having your users call the API directly from you application.
From the client-side (GET)
Getting the details of your pricing from the client-side is as easy as a GET call to the pricery API. The response will take for reference the IP address from which the call is made.
Endpoint:
/api/v1/pricings
Method: GET
Authorization: Use your Pricery public API key
From the server-side (POST)
To load pricing information from the server-side, make a POST call, and pass the visitors' ipAddress
as a parameter. Pricery will use the given IP Address to localize the pricing. If no argument is passed, it will default to the IP address from which the request is made.
Endpoint:
/api/v1/pricings
Method: POST
Authorization: Use your Pricery private API key (ask support for more info)
API Response
The Pricing response returns the price informations matching the given IP address location.. Plus a little extra (visitor's info, local currency info, etc.)
Sample response
Last updated