Pobierz akcje własne (stronicowanie)
GET
/api/v3/UserEvents
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/UserEvents?offset=0&limit=100';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/UserEvents?offset=0&limit=100' \ --header 'Authorization: Bearer <token>'Akcje własne to zdefiniowane przez użytkownika operacje uruchamiane na zamówieniach (np. przyciskiem lub skanem kodu).
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”offset
integer format: int32
limit
integer format: int32
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
list
Array<object>
object
id
integer format: int64
name
string
description
string
button
object
enabled
boolean
caption
string
icon
string
color
string
location
Array<string>
refreshPageAfterAnyScriptFinishes
boolean
shortcut
object
enabled
boolean
value
string
barcode
object
enabled
boolean
value
string
synchronous
boolean
position
integer format: int64
refreshPageAfterAnyScriptFinishes
boolean
pageNumber
integer format: int32
total
integer format: int32
Example
{ "list": [ { "button": { "location": [ "Order" ] } } ]}
