Pobierz produkty z wielu zamówień
POST
/api/v3/Orders/BatchGetProducts
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/BatchGetProducts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[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-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/BatchGetProducts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ 1 ]'Odczyt pozycji dla listy ID zamówień przekazanej w treści żądania.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
Array<integer>
Examplegenerated
[ 1]Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
products
Array<object>
object
locations
Array<string>
lineItems
Array<object>
object
id
integer format: int64
quantityPacked
number format: double
quantityPicked
number format: double
quantity
number format: double
product
object
id
integer format: int64
platformId
string
name
string
code
string
ean
string
bundleId
string
storage
string
variantId
string
parentName
string
miniatures
object
originalImageUrl
string
selector
string
entityId
string
Examplegenerated
{ "products": [ { "locations": [ "example" ], "lineItems": [ { "id": 1, "quantityPacked": 1, "quantityPicked": 1, "quantity": 1 } ], "product": { "id": 1, "platformId": "example", "name": "example", "code": "example", "ean": "example", "bundleId": "example", "storage": "example", "variantId": "example", "parentName": "example", "miniatures": { "originalImageUrl": "example", "selector": "example", "entityId": "example" } } } ]}
