Subuser registration
Example
POST https://api.idissuer.pl/v2/users/create
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
{
"FirstName": "User First Name",
"LastName": "User Las Name",
"DefaultLanguageCode": "pl-PL",
"Email": "user@email.com"
}
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Equal-level user registration
Example
POST https://api.idissuer.pl/v2/users/create
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
{
"FirstName": "User First Name",
"LastName": "User Las Name",
"DefaultLanguageCode": "pl-PL",
"EqualLevel": true,
"Email": "user@email.com"
}
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
User edition
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/edit
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
{
"FirstName": "User First Name",
"LastName": "User Las Name",
"DefaultLanguageCode": "pl-PL",
}
- user_id - user e-mail address
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Equal-level user
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/set-equality
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
- user_id - user e-mail address
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Granting authorization
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/grant
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
{
"EconomicOperators": [
"PWPD000027T"
],
"EconomicOperatorsWithFacilities": [
"PWPD000027T"
],
"Facilities": [
"PWPD000027U"
],
"Services": [
20,30
]
}
- user_id - user e-mail address
-
Available authorizations to services:
- 10 - Handling of operators
- 20 - Handling of facilities
- 30 - Handling of machines
- 40 - Ordering unit packets identifiers
- 50 - Ordering aggregate packaging identifiers
- 60 - User management
- 70 - API access
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Revoking authorization
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/revoke
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
{
"EconomicOperators": [
"PWPD000027T"
],
"EconomicOperatorsWithFacilities": [
"PWPD000027T"
],
"Facilities": [
"PWPD000027U"
],
"Services": [
20,30
]
}
- user_id - user e-mail address
-
Available authorizations to services:
- 10 - Handling of operators
- 20 - Handling of facilities
- 30 - Handling of machines
- 40 - Ordering unit packets identifiers
- 50 - Ordering aggregate packaging identifiers
- 60 - User management
- 70 - API access
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Blocking the user
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/block
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
- user_id - user e-mail address
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY
Unblocking the user
Example
PUT https://api.idissuer.pl/v2/users/{user_id}/unblock
Content-Type: application/json
Authorization: Bearer {{AUTH_TOKEN}}
- user_id - user e-mail address
Response
HTTP/1.1 204
status: 204
Date: Mon, 27 May 2019 08:21:18 GMT
Server: Kestrel
X-Frame-Options: DENY