Przejdź do głównej zawartości

Pobierz użytkownika po ID

GET
/api/v3/Users/{userId}
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/1 \
--header 'Authorization: Bearer <token>'

Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR

userId
wymagane
integer format: int64

Id of the user which should be returned

Success

Typ treściapplication/json
object
id
integer format: int64
login
string
nullable
fullName
string
nullable
email
string
nullable
roles
Array<string>
nullable
timeZone
object
id
string
nullable
hasIanaId
boolean
displayName
string
nullable
standardName
string
nullable
daylightName
string
nullable
baseUtcOffset
object
ticks
integer format: int64
days
integer format: int32
hours
integer format: int32
milliseconds
integer format: int32
microseconds
integer format: int32
nanoseconds
integer format: int32
minutes
integer format: int32
seconds
integer format: int32
totalDays
number format: double
totalHours
number format: double
totalMilliseconds
number format: double
totalMicroseconds
number format: double
totalNanoseconds
number format: double
totalMinutes
number format: double
totalSeconds
number format: double
supportsDaylightSavingTime
boolean
loginMethod
integer format: int32
keyValues
Array<object>
nullable
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
version
integer format: int32
value
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
userId
integer format: int64
nullable
key
string
nullable
defaultPrinter
object
printerConnectionId
integer format: int64
printerId
integer format: int64
allowedPrinters
Array<object>
nullable
object
printerConnectionId
integer format: int64
printerId
integer format: int64
defaultPrinters
Array<object>
nullable
object
printerConnectionId
integer format: int64
printerId
integer format: int64
packStationId
integer format: int64
nullable
Examplegenerated
{
"id": 1,
"login": "example",
"fullName": "example",
"email": "example",
"roles": [
"example"
],
"timeZone": {},
"loginMethod": 1,
"keyValues": [
{
"id": 1,
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z",
"version": 1,
"value": {
"additionalProperty": {}
},
"userId": 1,
"key": "example"
}
],
"defaultPrinter": {
"printerConnectionId": 1,
"printerId": 1
},
"allowedPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"defaultPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"packStationId": 1
}

Not Found

Typ treściapplication/json
object
id
integer format: int64
login
string
nullable
fullName
string
nullable
email
string
nullable
roles
Array<string>
nullable
timeZone
object
id
string
nullable
hasIanaId
boolean
displayName
string
nullable
standardName
string
nullable
daylightName
string
nullable
baseUtcOffset
object
ticks
integer format: int64
days
integer format: int32
hours
integer format: int32
milliseconds
integer format: int32
microseconds
integer format: int32
nanoseconds
integer format: int32
minutes
integer format: int32
seconds
integer format: int32
totalDays
number format: double
totalHours
number format: double
totalMilliseconds
number format: double
totalMicroseconds
number format: double
totalNanoseconds
number format: double
totalMinutes
number format: double
totalSeconds
number format: double
supportsDaylightSavingTime
boolean
loginMethod
integer format: int32
keyValues
Array<object>
nullable
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
version
integer format: int32
value
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
userId
integer format: int64
nullable
key
string
nullable
defaultPrinter
object
printerConnectionId
integer format: int64
printerId
integer format: int64
allowedPrinters
Array<object>
nullable
object
printerConnectionId
integer format: int64
printerId
integer format: int64
defaultPrinters
Array<object>
nullable
object
printerConnectionId
integer format: int64
printerId
integer format: int64
packStationId
integer format: int64
nullable
Examplegenerated
{
"id": 1,
"login": "example",
"fullName": "example",
"email": "example",
"roles": [
"example"
],
"timeZone": {},
"loginMethod": 1,
"keyValues": [
{
"id": 1,
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z",
"version": 1,
"value": {
"additionalProperty": {}
},
"userId": 1,
"key": "example"
}
],
"defaultPrinter": {
"printerConnectionId": 1,
"printerId": 1
},
"allowedPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"defaultPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"packStationId": 1
}

Server Error