Przejdź do głównej zawartości

Pobierz akcję własną po ID

GET
/api/v4/UserEvents/{userEventId}
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v4/UserEvents/1 \
--header 'Authorization: Bearer <token>'
userEventId
wymagane
integer format: int64

User event ID

Success

Typ treściapplication/json
object
id
integer format: int64
nullable
name
string
nullable
description
string
nullable
button
object
enabled
boolean
caption
string
nullable
icon
string
nullable
color
string
nullable
location
Array<string>
nullable
Dozwolone wartości: Order Orders Returns Pick Pack Return
restrictions
Array<object>
nullable
object
location
string
Dozwolone wartości: Order Orders Returns Pick Pack Return
userAccountRestrictions
string
Dozwolone wartości: None ShowForSpecifiedUsers HideForSpecifiedUsers
statusesRestrictions
string
Dozwolone wartości: None ShowForSpecifiedStatuses HideForSpecifiedStatuses
stationRestrictions
string
Dozwolone wartości: None ShowOnSpecifiedStations HideOnSpecifiedStations
userAccountsAssociations
Array<integer>
nullable
statusesAssociations
Array<integer>
nullable
refreshPageAfterAnyScriptFinishes
boolean
shortcut
object
enabled
boolean
value
string
nullable
barcode
object
enabled
boolean
value
string
nullable
synchronous
boolean
nullable
position
integer format: int64
nullable
refreshPageAfterAnyScriptFinishes
boolean
buttonShouldBeDisplayed
boolean
nullable
Example
{
"button": {
"location": [
"Order"
],
"restrictions": [
{
"location": "Order",
"userAccountRestrictions": "None",
"statusesRestrictions": "None",
"stationRestrictions": "None"
}
]
}
}

Unauthorized

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}