Website

Get current status for user

Last update: 11.12.2023

POST: https://www.autovit.ro/api/open/account/status

Permission: read

Header

Field Type Description
User-Agent string Account email.

Parameter

Field Type Description
user_id Number User id
email String User email

Example request:
		POST /account/status HTTP/1.1

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN

{
    "user_id": 3243
}

POST /account/status HTTP/1.1

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN

{
    "email": "example@example.com"
}			
		
Copied to clipboard
Success response:
		HTTP/1.1 200 OK
{
    "userStatus": "confirmed",
    "balance": 0,
    "endBillingPeriod" : "2017-10-31",
    "currentPackage": "Standard"
    "salesManager": {
       "name" : "example name",
       "email" : "example@example.net"
    }
}			
		
Copied to clipboard
Error response example:
		HTTP/1.1 401 Forbidden
{
    "error":
    {
        "type": "ForbiddenException",
        "message": "User invalid"
    }
}			
		
Copied to clipboard