Przejdź do głównej zawartości

Dodaj wiele przesyłek zwrotnych (synchronicznie)

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

Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera.

returnId
wymagane
integer format: int64
Typ treściapplication/json
Array<object>
object
connectionId
string
nullable
shipmentId
string
nullable
dateAddedUtc
string format: date-time
nullable
courierCode
string
nullable
trackingNumber
string
nullable
status
string
nullable
courierService
string
nullable
trackingUrl
string
nullable
shippingDate
string format: date
nullable
isReturn
boolean
Examplegenerated
[
{
"connectionId": "example",
"shipmentId": "example",
"dateAddedUtc": "2026-04-15T12:00:00Z",
"courierCode": "example",
"trackingNumber": "example",
"status": "example",
"courierService": "example",
"trackingUrl": "example",
"shippingDate": "2026-04-15",
"isReturn": true
}
]

Success

Typ treściapplication/json
Array<object>
object
id
integer format: int64
nullable
shipmentId
string
nullable
dateAddedUtc
string format: date-time
nullable
courierCode
string
nullable
trackingNumber
string
nullable
externalCarrierTrackingNumber
string
nullable
status
string
nullable
connectionId
string
nullable
courierConnectionType
string
nullable
courierService
string
nullable
trackingUrl
string
nullable
courierTransport
Array<string>
nullable
deliveryMethodPlatformId
string
nullable
shippingDate
string format: date
nullable
isReturn
boolean
nullable
connection
object
id
integer format: int64
name
string
nullable
connectionType
string
nullable
externalSourceType
string
nullable
externalSourceTypeName
string
nullable
externalSourceId
string
nullable
isConfigured
boolean
isSystemTool
boolean
positionInDefinition
object
position
integer format: int64
createdAt
string format: date-time
courierPickup
boolean
Examplegenerated
[
{
"id": 1,
"shipmentId": "example",
"dateAddedUtc": "2026-04-15T12:00:00Z",
"courierCode": "example",
"trackingNumber": "example",
"externalCarrierTrackingNumber": "example",
"status": "example",
"connectionId": "example",
"courierConnectionType": "example",
"courierService": "example",
"trackingUrl": "example",
"courierTransport": [
"example"
],
"deliveryMethodPlatformId": "example",
"shippingDate": "2026-04-15",
"isReturn": true,
"connection": {
"id": 1,
"name": "example",
"connectionType": "example",
"externalSourceType": "example",
"externalSourceTypeName": "example",
"externalSourceId": "example",
"isConfigured": true,
"isSystemTool": true,
"positionInDefinition": {
"position": 1
},
"createdAt": "2026-04-15T12:00:00Z"
},
"courierPickup": true
}
]