Przejdź do głównej zawartości

Dodaj przesyłkę zwrotną

POST
/api/v1/Returns/{returnId}/Shipments
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v1/Returns/1/Shipments \
--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 }'

Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych. Zapisuje przesyłkę nadaną poza Sellrocket; nie nadaje paczki u kuriera.

returnId
wymagane
integer format: int64
X-SR-ForceSilentChanges
string

This header allows for adding shipment without raising events

Typ treściapplication/json
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
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"
}