Przejdź do głównej zawartości

Dodaj wiele pozycji do zwrotu

POST
/api/v3/returns/{returnId}/lineItems/many
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/1/lineItems/many \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "lineItems": [ { "returnsReasonId": 1, "returnsPositionStatusId": 1, "platformId": "example", "product": { "id": 1, "warehouseId": "example", "platformId": "example", "name": "example", "code": "example", "ean": "example", "bundleId": "example", "storage": "example", "imageUrl": "example", "parentName": "example", "location": "example", "variantId": "example" }, "quantity": 1, "quantityPicked": 1, "quantityPacked": 1, "tax": { "symbol": "example", "rate": 1 }, "price": { "currency": "example", "unitPrice": 1 }, "originalCreatedAt": "2026-04-15T12:00:00Z", "miniatures": { "originalImageUrl": "example", "selector": "example", "entityId": "example" }, "clientNote": "example", "additionalFields": [ { "fieldName": "example", "fieldType": "example", "fieldValue": "example", "additionalFieldDefinition": { "fieldName": "example", "fieldDisplayName": "example", "fieldType": "example", "predefinedValues": [ "example" ] } } ] } ] }'

Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

returnId
wymagane
integer format: int64
Typ treściapplication/json
object
lineItems
Array<object>
nullable
object
returnsReasonId
integer format: int64
returnsPositionStatusId
integer format: int32
platformId
string
nullable
product
object
id
integer format: int64
nullable
warehouseId
string
nullable
platformId
string
nullable
name
string
nullable
code
string
nullable
ean
string
nullable
bundleId
string
nullable
storage
string
nullable
imageUrl
string
nullable
parentName
string
nullable
location
string
nullable
variantId
string
nullable
quantity
number format: double
quantityPicked
number format: double
quantityPacked
number format: double
tax
object
symbol
string
nullable
rate
number format: double
price
object
currency
string
nullable
unitPrice
number format: double
originalCreatedAt
string format: date-time
miniatures
object
originalImageUrl
string
nullable
selector
string
nullable
entityId
string
nullable
clientNote
string
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
{
"lineItems": [
{
"returnsReasonId": 1,
"returnsPositionStatusId": 1,
"platformId": "example",
"product": {
"id": 1,
"warehouseId": "example",
"platformId": "example",
"name": "example",
"code": "example",
"ean": "example",
"bundleId": "example",
"storage": "example",
"imageUrl": "example",
"parentName": "example",
"location": "example",
"variantId": "example"
},
"quantity": 1,
"quantityPicked": 1,
"quantityPacked": 1,
"tax": {
"symbol": "example",
"rate": 1
},
"price": {
"currency": "example",
"unitPrice": 1
},
"originalCreatedAt": "2026-04-15T12:00:00Z",
"miniatures": {
"originalImageUrl": "example",
"selector": "example",
"entityId": "example"
},
"clientNote": "example",
"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"
}