Przejdź do głównej zawartości

Pobierz produkty z wielu zamówień

POST
/api/v3/Orders/BatchGetProducts
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.

Typ treściapplication/json
Array<integer>
Examplegenerated
[
1
]

Success

Typ treściapplication/json
object
products
Array<object>
nullable
object
locations
Array<string>
nullable
lineItems
Array<object>
nullable
object
id
integer format: int64
quantityPacked
number format: double
quantityPicked
number format: double
quantity
number format: double
product
object
id
integer format: int64
nullable
platformId
string
nullable
name
string
nullable
code
string
nullable
ean
string
nullable
bundleId
string
nullable
storage
string
nullable
variantId
string
nullable
parentName
string
nullable
miniatures
object
originalImageUrl
string
nullable
selector
string
nullable
entityId
string
nullable
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"
}
}
}
]
}