Przejdź do głównej zawartości

Dodaj wiele pozycji zwrotu z katalogu (PIM)

POST
/api/v3/returns/{returnId}/lineItems/FromPim/Many
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/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" ] } } ] } ] }'
returnId
wymagane
integer format: int64
Typ treściapplication/json
object
items
Array<object>
nullable
object
platformId
string
nullable
product
wymagane
object
id
integer format: int64
warehouseId
string
nullable
name
string
nullable
code
string
nullable
ean
string
nullable
storage
string
nullable
location
string
nullable
variantId
string
nullable
price
object
currency
string
nullable
unitPrice

Cena brutto

number format: double
nullable
quantity
wymagane
number format: double
originalCreatedAt
string format: date-time
nullable
additionalFields
Array<object>
nullable
object
fieldName
string
nullable
fieldType
string
nullable
fieldValue
string
nullable
additionalFieldDefinition
object
fieldName
string
nullable
fieldDisplayName
string
nullable
fieldType
string
nullable
predefinedValues
Array<string>
nullable
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"
]
}
}
]
}
]
}

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}