Zwroty - Słowniki

Pobierz listę dostępnych statusów zwrotów

Changed on

Zwraca słownik wszystkich statusów zwrotów skonfigurowanych w systemie. Użyj pobranych id lub type przy tworzeniu lub edycji zwrotu w polach status_id / status.

get/returns_statuses

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/returns_statuses
  • Auth
    API key in header apiKey

Response

Sukces. Zwraca listę statusów zwrotów.

idinteger

ID statusu do użycia w polu status_id

namestring

Nazwa statusu widoczna w panelu

type'new' | 'positive' | 'negative'

Typ techniczny statusu

colorstring nullable
backgroundstring nullable
closeboolean

Czy status zamyka proces zwrotu

acceptboolean

Czy status oznacza akceptację zwrotu

Example response

[
  {
    "id": 1,
    "name": "Nowy",
    "type": "new",
    "color": "#ffaa00",
    "background": "#fff3cd"
  }
]

Changes