Pobierz pozycję zamówienia po ID
GET
/api/v3/Orders/{orderId}/LineItems/{lineItemId}
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/LineItems/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/LineItems/1 \ --header 'Authorization: Bearer <token>'Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”orderId
wymagane
integer format: int64
lineItemId
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
id
integer format: int64
platformId
string
product
object
id
integer format: int64
platformId
string
name
string
code
string
ean
string
bundleId
string
warehouseId
string
storage
string
variantId
string
parentName
string
miniatures
object
originalImageUrl
string
selector
string
entityId
string
largeImageUrl
string
smallImageUrl
string
originalCompressedImageUrl
string
additionalEans
Array<object>
object
ean
string
quantity
number format: double
description
string
quantity
number format: double
quantityPicked
number format: double
quantityPacked
number format: double
tax
object
symbol
string
rate
number format: double
price
object
currency
string
unitPrice
Cena brutto
number format: double
originalUnitPrice
number format: double
createdAt
string format: date-time
elasticFields
Array<object>
object
objectId
integer format: int64
ownerType
string
definitionId
integer format: int64
fieldType
string
fieldName
string
fieldDisplayName
string
fieldValue
string
Examplegenerated
{ "id": 1, "platformId": "example", "product": { "id": 1, "platformId": "example", "name": "example", "code": "example", "ean": "example", "bundleId": "example", "warehouseId": "example", "storage": "example", "variantId": "example", "parentName": "example", "miniatures": { "originalImageUrl": "example", "selector": "example", "entityId": "example", "largeImageUrl": "example", "smallImageUrl": "example", "originalCompressedImageUrl": "example" }, "additionalEans": [ { "ean": "example", "quantity": 1, "description": "example" } ] }, "quantity": 1, "quantityPicked": 1, "quantityPacked": 1, "tax": { "symbol": "example", "rate": 1 }, "price": { "currency": "example", "unitPrice": 1, "originalUnitPrice": 1 }, "createdAt": "2026-04-15T12:00:00Z", "elasticFields": [ { "objectId": 1, "ownerType": "example", "definitionId": 1, "fieldType": "example", "fieldName": "example", "fieldDisplayName": "example", "fieldValue": "example" } ]}
