Get Credit Status and History
GET /v3/users/{id}/accounts
Returns list of user's accounts for credit and quota.{id}
must by replaced by the id of the user.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials, login_info
Scopes: [ credit ]
Response body:
{
"credit": {
"enabled": true
},
"quota": {
"enabled": true
},
"accounts": [
{
"name": "string",
"reference": "string",
"type": "credit",
"limits": {
"price": 0
},
"rechargeProviders": [
{
"name": "string",
"reference": "string"
}
]
},
{
"name": "string",
"reference": "string",
"type": "credit",
"limits": {
"total": 0,
"color": 0,
"mono": 0,
"scan": 0,
"price": 0,
"denyAccess": 0
},
"groupId": 0
}
]
}
GET /v3/users/{id}/accounts/{reference}/balance
Returns list of user's accounts for credit and quota.{id}
must by replaced by the id of the user and {reference}
with the "name" of the account.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials, login_info
Scopes: [ credit ]
Response body:
{
"amount": 0
}
GET /v3/users/{id}/activity
Returns summary of user's activity.{id}
must by replaced by the id of the user
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials, login_info
Scopes: [ credit ]
Response body:
{
"printer": {
"accountSessions": [
{
"id": "string",
"type": "credit",
"account": "string",
"clientId": "string",
"printer": {
"id": 0,
"name": "string",
"location": "string"
}
}
],
"interactiveSessions": [
{
"terminalId": "string",
"printer": {
"id": 0,
"name": "string",
"location": "string"
}
}
],
"activeJobs": [
{
"terminalId": "string",
"printer": {
"id": 0,
"name": "string",
"location": "string"
},
"jobs": [
{
"id": "string",
"userId": 0,
"status": "string",
"startDate": "string",
"endDate": "string",
"name": "string"
}
]
}
]
}
}