Pobierz wszystkie statusy zwrotów
GET
/api/v3/returns/statuses/all
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/returns/statuses/all';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/returns/statuses/all \ --header 'Authorization: Bearer <token>'Zwraca pełną listę statusów zwrotów bez stronicowania.
Autoryzacja
Dział zatytułowany „Autoryzacja”Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
id
integer format: int64
name
string
color
string
groupId
integer format: int32
shortName
string
description
string
position
integer format: int64
isDefault
boolean
Examplegenerated
[ { "id": 1, "name": "example", "color": "example", "groupId": 1, "shortName": "example", "description": "example", "position": 1, "isDefault": true }]
