Dodaj wiele pozycji z katalogu produktów (PIM)
POST
/api/v1/Orders/{orderId}/LineItems/FromPim/Many
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v1/Orders/1/LineItems/FromPim/Many';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"items":[{"platformId":"example","product":{"id":1,"warehouseId":"example","name":"example","code":"example","ean":"example","storage":"example","location":"example","variantId":"example"},"price":{"currency":"example","unitPrice":1},"quantity":1,"originalCreatedAt":"2026-04-15T12:00:00Z","additionalFields":[{"fieldName":"example","fieldType":"example","fieldValue":"example","additionalFieldDefinition":{"fieldName":"example","fieldDisplayName":"example","fieldType":"example","predefinedValues":["example"]}}]}]}'};
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/v1/Orders/1/LineItems/FromPim/Many \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "platformId": "example", "product": { "id": 1, "warehouseId": "example", "name": "example", "code": "example", "ean": "example", "storage": "example", "location": "example", "variantId": "example" }, "price": { "currency": "example", "unitPrice": 1 }, "quantity": 1, "originalCreatedAt": "2026-04-15T12:00:00Z", "additionalFields": [ { "fieldName": "example", "fieldType": "example", "fieldValue": "example", "additionalFieldDefinition": { "fieldName": "example", "fieldDisplayName": "example", "fieldType": "example", "predefinedValues": [ "example" ] } } ] } ] }'Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”orderId
wymagane
integer format: int64
Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
items
Array<object>
object
platformId
string
product
wymagane
object
id
integer format: int64
warehouseId
string
name
string
code
string
ean
string
storage
string
location
string
variantId
string
price
object
currency
string
unitPrice
Cena brutto
number format: double
quantity
wymagane
number format: double
originalCreatedAt
string format: date-time
additionalFields
Array<object>
object
fieldName
string
fieldType
string
fieldValue
string
additionalFieldDefinition
object
fieldName
string
fieldDisplayName
string
fieldType
string
predefinedValues
Array<string>
Examplegenerated
{ "items": [ { "platformId": "example", "product": { "id": 1, "warehouseId": "example", "name": "example", "code": "example", "ean": "example", "storage": "example", "location": "example", "variantId": "example" }, "price": { "currency": "example", "unitPrice": 1 }, "quantity": 1, "originalCreatedAt": "2026-04-15T12:00:00Z", "additionalFields": [ { "fieldName": "example", "fieldType": "example", "fieldValue": "example", "additionalFieldDefinition": { "fieldName": "example", "fieldDisplayName": "example", "fieldType": "example", "predefinedValues": [ "example" ] } } ] } ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
result
status
string
command
string
scope
string
scopeValue
string
silentMode
boolean
ajsChainId
string
ajsChainVisits
string
Example
{ "status": "New"}
