Overview
PriceShape has an open API to integrate data from your shop into PriceShape. By sending data like page views and the number of sales, PriceShape can track your conversion rates and enable you to set up price strategies based on how well your products are doing.
The API can be integrated via a Sales data API or with PriceShape's Sales data Script.
The following events can be sent to PriceShape pr. product:
Page viewed: The amount of pageviews
Product added to cart: The number of times a product has been added to the card
Product sold: The amount of product sold
Unique product sales: The number of times a product has been sold
In PriceShape, go to Account Settings > Integrations and click "Create Integration" to find the token.
the API supports bulk uploading of data points. Any batch size work and hourly batches are preferred
Each attribute is optional
Example in PHP
<?php
$client = new Client();
$headers = [
'Authorization' => 'Bearer INSERT_TOKEN_HERE',
'Content-Type' => 'application/json'
];
$body = '[
{
"upi": "6411501142214",
"timestamp": "2023-04-10T02:12:00Z",
"pageViews": 2,
"itemAddedToCart": 1,
"uniqueSales": 1
"itemsSold" : 4
}
]';
$request = new Request('POST','https://public.app.priceshape.io/api/2022-08/sales-data', $headers, $body);
$res = $client->sendAsync($request)->wait();