Pobierz zdarzenia zwrotu
GET
/api/v4/returns/{returnId}/events
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v4/returns/1/events';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/v4/returns/1/events \ --header 'Authorization: Bearer <token>'Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”returnId
wymagane
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
id
integer format: int64
event
createdAt
string format: date-time
updatedAt
string format: date-time
Examplegenerated
[ { "id": 1, "event": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" }]
