Zaktualizuj ceny produktów (masowo)
PUT
/api/products/v3/bulk/prices
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v3/bulk/prices';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"productId":1,"prices":[{"priceGroupId":1,"value":1}]}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v3/bulk/prices \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ { "productId": 1, "prices": [ { "priceGroupId": 1, "value": 1 } ] } ]'Masowo aktualizuje ceny produktów w grupach cenowych i zwraca wynik dla każdej pozycji. Odpowiednik updateInventoryProductsPrices w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Array<object>
object
productId
integer format: int64
prices
Array<object>
object
priceGroupId
integer format: int64
value
number format: double
Examplegenerated
[ { "productId": 1, "prices": [ { "priceGroupId": 1, "value": 1 } ] }]Array<object>
object
productId
integer format: int64
prices
Array<object>
object
priceGroupId
integer format: int64
value
number format: double
Examplegenerated
[ { "productId": 1, "prices": [ { "priceGroupId": 1, "value": 1 } ] }]Array<object>
object
productId
integer format: int64
prices
Array<object>
object
priceGroupId
integer format: int64
value
number format: double
Examplegenerated
[ { "productId": 1, "prices": [ { "priceGroupId": 1, "value": 1 } ] }]Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
exid
string format: uuid
updatedCount
integer format: int32
failedCount
integer format: int32
errorDetails
Array<object>
object
productId
integer format: int64
errorMessage
string
object
exid
string format: uuid
updatedCount
integer format: int32
failedCount
integer format: int32
errorDetails
Array<object>
object
productId
integer format: int64
errorMessage
string
Examplegenerated
{ "exid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "updatedCount": 1, "failedCount": 1, "errorDetails": [ { "productId": 1, "errorMessage": "example" } ]}object
exid
string format: uuid
updatedCount
integer format: int32
failedCount
integer format: int32
errorDetails
Array<object>
object
productId
integer format: int64
errorMessage
string
Examplegenerated
{ "exid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "updatedCount": 1, "failedCount": 1, "errorDetails": [ { "productId": 1, "errorMessage": "example" } ]}Server Error
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
