Pobierz przesyłkę zamówienia po ID
GET
/api/v3/Orders/{orderId}/Shipments/{id}
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Shipments/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Shipments/1 \ --header 'Authorization: Bearer <token>'Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”orderId
wymagane
integer format: int64
id
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
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}
