Get a List of Account Types
The Get List of Account Types method returns a List of Account Types, which are available for the given Reseller.
GET /api/client/v1/account_types.json?api_token={api_token}
Arguments
Name | Parameter Type | Data type | Required/Optional | Description |
---|---|---|---|---|
api_token | query | string | Required | API token of the manager who perform the operation (see API Token Authentication). |
Response model
Name | Data type | Description |
---|---|---|
id | integer | An account type ID. |
name | string | An account type name. |
payment_methods | array | A list of payment methods that is available for the given account type:
|
Request example
http://billing.activeplatform.com:80/api/client/v1/account_types.json?api_token=6qPtJHDFlGzre_cdPVctNQ
Response example
[
{
"id": 2,
"name": "Business",
"payment_methods": [
{
"id": 2,
"name": "Check / Cash",
"icon": "/images/payment_method/2/cash.png"
},
{
"id": 1,
"name": "Check",
"icon": "/images/payment_method/1/bank.png"
},
{
"id": 103,
"name": "ЕРИП/Credex (OLD)",
"icon": null
},
{
"id": 491,
"name": "Softline 1c payment",
"icon": null
},
{
"id": 237,
"name": "easypay",
"icon": null
},
{
"id": 128,
"name": "Cash",
"icon": "/images/payment_method/128/cash.png"
}
]
}
]