Utwórz grupę cenową
POST
/api/price-groups/v2/product-price-groups
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/price-groups/v2/product-price-groups';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","description":"example","currency":"None","type":"None","catalogIds":[1],"bundlePriceCalculationMethod":"Fixed","bundlePriceMultiplier":1,"bundlePriceDiscount":1,"baseGroupData":{"basePriceGroupId":1,"priceMultiplier":1,"addToPrice":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/price-groups/v2/product-price-groups \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "description": "example", "currency": "None", "type": "None", "catalogIds": [ 1 ], "bundlePriceCalculationMethod": "Fixed", "bundlePriceMultiplier": 1, "bundlePriceDiscount": 1, "baseGroupData": { "basePriceGroupId": 1, "priceMultiplier": 1, "addToPrice": 1 } }'Dodaje nową grupę cenową, np. dla innej waluty lub kanału sprzedaży. Odpowiednik addInventoryPriceGroup w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
id
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
object
id
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
object
id
integer format: int64
name
wymagane
string
description
string
currency
Currency cannot be None
string
type
Price Group cannot be None
string
catalogIds
Array<integer>
bundlePriceCalculationMethod
string
bundlePriceMultiplier
number format: double
bundlePriceDiscount
number format: double
baseGroupData
object
basePriceGroupId
integer format: int64
priceMultiplier
number format: double
addToPrice
number format: double
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

