Przejdź do głównej zawartości

Dodaj przesyłkę do zamówienia (synchronicznie)

POST
/api/v3/Orders/sync/{orderId}/Shipments
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/sync/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", "externalCarrierTrackingNumber": "example", "status": "example", "courierService": "example", "trackingUrl": "example", "courierTransport": [ "example" ], "deliveryMethodPlatformId": "example", "shippingDate": "2026-04-15", "isReturn": true, "parcelLabelGetStrategy": "Default", "courierPickup": true }'

Synchroniczny wariant — zwraca od razu zapisaną przesyłkę. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”.

orderId
wymagane
integer format: int64
Typ treściapplication/json
object
connectionId
string
nullable
shipmentId
string
nullable
dateAddedUtc
string format: date-time
nullable
courierCode
string
nullable
trackingNumber
string
nullable
externalCarrierTrackingNumber
string
nullable
status
string
nullable
courierService
string
nullable
trackingUrl
string
nullable
courierTransport
Array<string>
nullable
deliveryMethodPlatformId
string
nullable
shippingDate
string format: date
nullable
isReturn
boolean
parcelLabelGetStrategy
string
Dozwolone wartości: Default ShipmentIdAndTrackingNumber ShipmentIdUnique
courierPickup
boolean
nullable

Success

Typ treściapplication/json
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
returnId
integer format: int64
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,
"returnId": 1,
"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
}