?>

API access to PricingControl

Before the API connection is available to your account you have to enter an IP which will be used for the API connection in your profile. Optional you can renew your API key.

From API 1.1 there is also a posibility to use an non-secured API key. This is a separate KEY which can only be used with the "overview" parameter. In the documentation is mentioned when the non-secured API key can be used.
Be sure so save the settings after changing.

API access control settings

Check our generic Webshop Connector (English)

 

Getting data from PricingControl

With the API access to PricingControl you can get the latest prices from the defined products. With those prices you can automatically adjust the prices on your own website.

Semicolon separated overview like the overview page in the webapplication
https://app.pricingcontrol.com/api/v1_1/overview?key=<API key>*
*: this can be the IP-secured or the non-secured key.

Overview of all defined products
https://app.pricingcontrol.com/api/v1_1/products?key=<API key>

Products per shop with the latest found price and stock
https://app.pricingcontrol.com/api/v1_1/products?key=<API key>&shop=<id>

Info of 1 product which occurs in 1 or more shops
https://app.pricingcontrol.com/api/v1_1/products?key=<API key>&product=<id>

Info of all products which occurs in 1 or more shops
https://app.pricingcontrol.com/api/v1_1/products?key=<API key>&product=allinfo

Overview of all shops
https://app.pricingcontrol.com/api/v1_1/shops?key=<API key>


Posting data to PricingControl

It is also possible to use post requests to put data in our system. You can create shops, products and add urls.

Creating a shop

Send a post request to https://app.pricingcontrol.com/api/v1_1/post with the following parameters

key

required

The API key as described above

type

required

set this value to "shop"

name

required
The name of the shop, string of maximal 50 characters. If longer it will be truncated.

Return a JSON array with status. If status is OK you get also the ID if the newly created shop.

 

Creating a product

Send a post request to https://app.pricingcontrol.com/api/v1_1/post with the following parameters

key

required

The API key as described above

type

required

set this value to "product"

code

required
The code of the product, string of maximal 100 characters. If longer it will be truncated.

name

required
The name of the product, string of maximal 255 characters. If longer it will be truncated.

minprice

optional

The minimal price you can set for your own reference. Use the following format: 12.23

maxprice

optional

The maximum price you can set for your own reference. Use the following format: 12.23

Return a JSON array with status. If status is OK you get also the ID if the newly created product.

 

Creating an url

Send a post request to https://app.pricingcontrol.com/api/v1_1/post with the following parameters

key

required

The API key as described above

type

required

set this value to "url"

url

required
The url of the page, string of maximal 255 characters.

shop

required

The id of a shop you would like to connect to this url. If you set the value to "create" a new shop will automatically create with the name of the hostname of the url. If this name already exists the url will be connected to that existing shop.

product

required

The id of the product you would like to connect to this url.

Return a JSON array with status. When a new shop is created you get also the ID of that shop.

Check our generic Webshop Connector (English)

 

Information about the older 1.0 API.