Pobierz zbiorczy protokół nadania
POST
/api/v3/Shipments/CombinedProtocols
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Shipments/CombinedProtocols';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionDefinitionId":"example","orderIds":[1]}'};
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/Shipments/CombinedProtocols \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionDefinitionId": "example", "orderIds": [ 1 ] }'Generuje protokoły przekazania przesyłek kurierowi. Odpowiednik getProtocol w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionDefinitionId
string
orderIds
Array<integer>
Examplegenerated
{ "connectionDefinitionId": "example", "orderIds": [ 1 ]}object
connectionDefinitionId
string
orderIds
Array<integer>
Examplegenerated
{ "connectionDefinitionId": "example", "orderIds": [ 1 ]}object
connectionDefinitionId
string
orderIds
Array<integer>
Examplegenerated
{ "connectionDefinitionId": "example", "orderIds": [ 1 ]}object
connectionDefinitionId
string
orderIds
Array<integer>
object
connectionDefinitionId
string
orderIds
Array<integer>
object
connectionDefinitionId
string
orderIds
Array<integer>
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
list
Array<string>
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ "binary" ], "pageNumber": 1, "total": 1}
