Przejdź do głównej zawartości

Zaktualizuj wiele przesyłek zwrotnych

PUT
/api/v1/Returns/{returnId}/Shipments/bulk
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v1/Returns/1/Shipments/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ { "ownerData": { "email": "example", "userName": "example", "fullName": "example", "id": 1, "roles": [ "example" ] }, "shipmentId": "example", "connectionId": "example", "courierCode": "example", "trackingNumber": "example", "status": "example", "courierService": "example", "trackingUrl": "example", "shippingDate": "2026-04-15", "isReturn": true, "id": 1 } ]'

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

returnId
wymagane
integer format: int64
Typ treściapplication/json
Array<object>
object
ownerData
object
email
string
nullable
userName
string
nullable
fullName
string
nullable
id
integer format: int64
roles
Array<string>
nullable
shipmentId
string
nullable
connectionId
string
nullable
courierCode
string
nullable
trackingNumber
string
nullable
status
string
nullable
courierService
string
nullable
trackingUrl
string
nullable
shippingDate
string format: date
nullable
isReturn
boolean
nullable
id
integer format: int64
Examplegenerated
[
{
"ownerData": {
"email": "example",
"userName": "example",
"fullName": "example",
"id": 1,
"roles": [
"example"
]
},
"shipmentId": "example",
"connectionId": "example",
"courierCode": "example",
"trackingNumber": "example",
"status": "example",
"courierService": "example",
"trackingUrl": "example",
"shippingDate": "2026-04-15",
"isReturn": true,
"id": 1
}
]

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"
}