Create a price list and entries
curl --request POST \
--url https://integrations.polinate.ai/api/v1/pricing \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Business-Id: <x-business-id>' \
--data '
{
"itemListData": {
"label": "Winter 2025",
"status": "ACTIVE",
"globalPriceFactor": 1.05,
"globalCostFactor": 0.95,
"startDate": "2025-06-01T00:00:00Z",
"endDate": "2025-08-31T23:59:59Z"
},
"entries": [
{
"itemVariantId": "var_123",
"overrideFlatPrice": 10,
"currency": "AUD"
}
],
"partnerships": [
"prt_123"
]
}
'import requests
url = "https://integrations.polinate.ai/api/v1/pricing"
payload = {
"itemListData": {
"label": "Winter 2025",
"status": "ACTIVE",
"globalPriceFactor": 1.05,
"globalCostFactor": 0.95,
"startDate": "2025-06-01T00:00:00Z",
"endDate": "2025-08-31T23:59:59Z"
},
"entries": [
{
"itemVariantId": "var_123",
"overrideFlatPrice": 10,
"currency": "AUD"
}
],
"partnerships": ["prt_123"]
}
headers = {
"X-Business-Id": "<x-business-id>",
"X-API-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Business-Id': '<x-business-id>',
'X-API-Key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
itemListData: {
label: 'Winter 2025',
status: 'ACTIVE',
globalPriceFactor: 1.05,
globalCostFactor: 0.95,
startDate: '2025-06-01T00:00:00Z',
endDate: '2025-08-31T23:59:59Z'
},
entries: [{itemVariantId: 'var_123', overrideFlatPrice: 10, currency: 'AUD'}],
partnerships: ['prt_123']
})
};
fetch('https://integrations.polinate.ai/api/v1/pricing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.polinate.ai/api/v1/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'itemListData' => [
'label' => 'Winter 2025',
'status' => 'ACTIVE',
'globalPriceFactor' => 1.05,
'globalCostFactor' => 0.95,
'startDate' => '2025-06-01T00:00:00Z',
'endDate' => '2025-08-31T23:59:59Z'
],
'entries' => [
[
'itemVariantId' => 'var_123',
'overrideFlatPrice' => 10,
'currency' => 'AUD'
]
],
'partnerships' => [
'prt_123'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <x-api-key>",
"X-Business-Id: <x-business-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://integrations.polinate.ai/api/v1/pricing"
payload := strings.NewReader("{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Business-Id", "<x-business-id>")
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://integrations.polinate.ai/api/v1/pricing")
.header("X-Business-Id", "<x-business-id>")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integrations.polinate.ai/api/v1/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Business-Id"] = '<x-business-id>'
request["X-API-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}Pricing
Create a price list and entries
Creates a price list with entries and optionally assigns it to partnerships (buyers). Idempotent via Idempotency-Key.
POST
/
api
/
v1
/
pricing
Create a price list and entries
curl --request POST \
--url https://integrations.polinate.ai/api/v1/pricing \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Business-Id: <x-business-id>' \
--data '
{
"itemListData": {
"label": "Winter 2025",
"status": "ACTIVE",
"globalPriceFactor": 1.05,
"globalCostFactor": 0.95,
"startDate": "2025-06-01T00:00:00Z",
"endDate": "2025-08-31T23:59:59Z"
},
"entries": [
{
"itemVariantId": "var_123",
"overrideFlatPrice": 10,
"currency": "AUD"
}
],
"partnerships": [
"prt_123"
]
}
'import requests
url = "https://integrations.polinate.ai/api/v1/pricing"
payload = {
"itemListData": {
"label": "Winter 2025",
"status": "ACTIVE",
"globalPriceFactor": 1.05,
"globalCostFactor": 0.95,
"startDate": "2025-06-01T00:00:00Z",
"endDate": "2025-08-31T23:59:59Z"
},
"entries": [
{
"itemVariantId": "var_123",
"overrideFlatPrice": 10,
"currency": "AUD"
}
],
"partnerships": ["prt_123"]
}
headers = {
"X-Business-Id": "<x-business-id>",
"X-API-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Business-Id': '<x-business-id>',
'X-API-Key': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
itemListData: {
label: 'Winter 2025',
status: 'ACTIVE',
globalPriceFactor: 1.05,
globalCostFactor: 0.95,
startDate: '2025-06-01T00:00:00Z',
endDate: '2025-08-31T23:59:59Z'
},
entries: [{itemVariantId: 'var_123', overrideFlatPrice: 10, currency: 'AUD'}],
partnerships: ['prt_123']
})
};
fetch('https://integrations.polinate.ai/api/v1/pricing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integrations.polinate.ai/api/v1/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'itemListData' => [
'label' => 'Winter 2025',
'status' => 'ACTIVE',
'globalPriceFactor' => 1.05,
'globalCostFactor' => 0.95,
'startDate' => '2025-06-01T00:00:00Z',
'endDate' => '2025-08-31T23:59:59Z'
],
'entries' => [
[
'itemVariantId' => 'var_123',
'overrideFlatPrice' => 10,
'currency' => 'AUD'
]
],
'partnerships' => [
'prt_123'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <x-api-key>",
"X-Business-Id: <x-business-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://integrations.polinate.ai/api/v1/pricing"
payload := strings.NewReader("{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Business-Id", "<x-business-id>")
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://integrations.polinate.ai/api/v1/pricing")
.header("X-Business-Id", "<x-business-id>")
.header("X-API-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integrations.polinate.ai/api/v1/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Business-Id"] = '<x-business-id>'
request["X-API-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"itemListData\": {\n \"label\": \"Winter 2025\",\n \"status\": \"ACTIVE\",\n \"globalPriceFactor\": 1.05,\n \"globalCostFactor\": 0.95,\n \"startDate\": \"2025-06-01T00:00:00Z\",\n \"endDate\": \"2025-08-31T23:59:59Z\"\n },\n \"entries\": [\n {\n \"itemVariantId\": \"var_123\",\n \"overrideFlatPrice\": 10,\n \"currency\": \"AUD\"\n }\n ],\n \"partnerships\": [\n \"prt_123\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}{
"errorCode": "<string>",
"message": "<string>",
"fieldErrors": {}
}Headers
Business identifier for external auth. Find in Polinate app → Business Settings → Integrations.
Example:
"{{businessId}}"
Per-business API key for external auth. Find in Polinate app → Business Settings → Integrations.
Example:
"{{apiKey}}"
Idempotency key for POST operations
Example:
"{{idempotencyKey}}"
Body
application/json
Response
Created
Was this page helpful?

