Get Account Info by ID

The  Get Account Info by ID method returns Account's details by given Account ID.


 GET /api/vendor/v1/accounts/{id}.json?api_token={api_token}


Arguments

Name

Parameter Type

Data type

Required/Optional

Description

id

path

integer

Required

An account ID.

api_tokenquerystringRequiredAPI token of the manager who perform the operation (see API Token Authentication).

Response model

Name

Data type

Description

idintegerAn account ID.
namestringAn account name.
account_class_idintegerAn account class ID (see Account classes in the ActivePlatform. Operator Control Panel).
account_classstring

A name of the account class (see Account classes in the ActivePlatform. Operator Control Panel).

primary_namestringA company name, if the customer is a legal entity.
first_namestringThe first name for the user the owner access rights.
middle_namestringThe middle name for the user the owner access rights.
last_namestringThe last name for the user the owner access rights.
countrystringAn account address: a two-letter ISO code ISO 3166-1 alpha-2 of the country.
regionstringAn account address: a region.
citystringAn account address: a city.
streetstringAn account address: a street.
buildingstringAn account address: building.
officestringAn account address: office.
zipstringAn account address: a zip-code.
phonestring

A phone number of the account:

  • + < country code > < city code or network code > < phone number >
  • 00 < country code > < city code or network code > < phone number >
emailstring

A contact email of the account.

statusstring

A current account status:

balancefloatA current value of the account balance (see Viewing the List of Charges in the ActivePlatform. Operator Control Panel).
credit_limitfloat

A maximum amount of the credit that a customer can use for ordering services without topping up (the credit limit can be set manually or by default (see Account classes in the ActivePlatform. Operator Control Panel)).

account_type_idinteger

An ID of the account type.

account_typestringA name of the account type.
manager_idinteger

A manager ID who is linked with the account.

owner_idinteger

An ID of the existed user who is granted the owner access rights in the Customer Control Panel.

tech_user_idintegerAn ID of the user, which is responsible for the technical matters.
bill_user_idintegerAn ID of the user, which is responsible for the financial matters.
custom_attributesarray

A list of additional attributes (see Managing attributes in the ActivePlatform. Operator Control Panel):

  • name - a name of the attribute;

  • value - a value of the attribute.

created_atdateA date and time of the account's creation.
updated_atdateA date and time, when the account information was updated.

Request example

GET http://billing.activeplatform.com:80/api/vendor/v1/accounts/2000532.json?api_token=654321

Response example

 {
  "id": 2000532,
  "name": "ActivePlatform",
  "account_class_id": 1,
  "account_class": "Default",
  "primary_name": "ActivePlatform",
  "first_name": "John",
  "middle_name": "",
  "last_name": "Doe",
  "country": "BY",
  "region": "Minsk",
  "city": "Minsk",
  "street": "Lenina",
  "building": "1",
  "office": "",
  "zip": "220007",
  "phone": "+375290001122",
  "email": "admin@activeplatform.com",
  "status": "active",
  "balance": "4963.14",
  "credit_limit": "2147483647.0",
  "account_type_id": 2,
  "account_type": "Business",
  "manager_id": null,
  "owner_id": 2001840,
  "tech_user_id": 2001840,
  "bill_user_id": 2001840,
  "custom_attributes": {
    "passport_number": "111111",
    "passport_issued_by": "111111",
    "personal_number": "220007",
    "passport_date_of_issue": "01.07.2016",
    "birth_date": "01.07.2016",
    "unp": "12341234",
    "kpp": "14234132",
    "registration_date": "06.01.2001",
    "registration_number": "13412341",
    "bank_account": "13241234",
    "bank_name": "Bank",
    "contact_charter": "41234123",
    "inn": "253124321",
    "okpo": "23142341",
    "resolution_number": "12.07.2016",
    "bankcode": "0001",
    "registration_authority": "12341234",
    "contact_position": "21342341"
  },
  "created_at": "2016-07-20T13:25:29.400+03:00",
  "updated_at": "2016-10-01T01:12:21.017+03:00"
}