Przelicz stany zestawów w katalogu
PUT
/api/products/v3/bundles/refresh/stocks
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/products/v3/bundles/refresh/stocks';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"catalogId":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/bundles/refresh/stocks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "catalogId": 1 }'Ponownie wylicza stany magazynowe produktów-zestawów w katalogu na podstawie stanów ich składników.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
catalogId
integer format: int64
Examplegenerated
{ "catalogId": 1}object
catalogId
integer format: int64
Examplegenerated
{ "catalogId": 1}object
catalogId
integer format: int64
Examplegenerated
{ "catalogId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<integer>
Array<integer>
Examplegenerated
[ 1]Array<integer>
Examplegenerated
[ 1]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"}
