Dodaj wiele przesyłek do zamówienia (synchronicznie)
POST
/api/v3/Orders/sync/{orderId}/Shipments/bulk
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/sync/1/Shipments/bulk';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"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}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/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", "externalCarrierTrackingNumber": "example", "status": "example", "courierService": "example", "trackingUrl": "example", "courierTransport": [ "example" ], "deliveryMethodPlatformId": "example", "shippingDate": "2026-04-15", "isReturn": true, "parcelLabelGetStrategy": "Default", "courierPickup": true } ]'Synchroniczny wariant zapisu wielu przesyłek nadanych poza Sellrocket. Nie nadaje paczki u kuriera — do nadania użyj automatyzacji z akcją „Utwórz przesyłkę”.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”orderId
wymagane
integer format: int64
Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
Array<object>
object
connectionId
string
shipmentId
string
dateAddedUtc
string format: date-time
courierCode
string
trackingNumber
string
externalCarrierTrackingNumber
string
status
string
courierService
string
trackingUrl
string
courierTransport
Array<string>
deliveryMethodPlatformId
string
shippingDate
string format: date
isReturn
boolean
parcelLabelGetStrategy
string
courierPickup
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
id
integer format: int64
shipmentId
string
dateAddedUtc
string format: date-time
courierCode
string
trackingNumber
string
externalCarrierTrackingNumber
string
status
string
connectionId
string
courierConnectionType
string
courierService
string
trackingUrl
string
courierTransport
Array<string>
deliveryMethodPlatformId
string
shippingDate
string format: date
isReturn
boolean
returnId
integer format: int64
connection
object
id
integer format: int64
name
string
connectionType
string
externalSourceType
string
externalSourceTypeName
string
externalSourceId
string
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 }]
