Get downline Reseller information by ID

The Get Reseller by ID method returns the information about the selected or the downline Reseller, whose ID was specified in the request.

The selected Reseller is identified by the Manager's token that is specified in the request header.

GET: {base_url}/resellers/{id}/

Arguments

Name

Parameter type

Data type

Required/Optional

Description

id

path

integer

Required

ID of the Reseller, the information about whom is required

Response model

Name

Data type

Description

dataarray of objectsResponse data.
data.idstringReseller's unique ID.
data.typestringResponse model type.
data.attributesobjectModel of the full information about the Reseller.
data.attributes.parent-idstringUpline (parent) Reseller's unique ID.
data.attributes.created-atstringDate and time of the Reseller creation.
data.attributes.updated-atstringDate and time of the last update of the Reseller information.
data.attributes.generalobjectModel of the general information about the Reseller.
data.attributes.general.namestringReseller's name.
data.attributes.general.domainstringReseller's domain.
data.attributes.general.currencystringReseller's currency in the ISO 4217 alfa-3 format.
data.attributes.general.managerstringManager that is attached to the Reseller.
data.attributes.companyobjectModel of the information about the Reseller's company.
data.attributes.company.namestringCompany name.
data.attributes.company.address-line-1stringFirst line of the company address.
data.attributes.company.address-line-2stringSecond line of the company address.
data.attributes.company.citystringCity, in which the company is situated.
data.attributes.company.statestringState, in which the company is situated.
data.attributes.company.zipstringZip-code of the company.
data.attributes.company.countrystringCompany country code according to ISO 3166-1 alpha-2 standard.
data.attributes.company.phonestring

Phone number of the company:

  • + < country code > < city code or network code > < phone number >
  • 00 < country code > < city code or network code > < phone number >
data.attributes.company.faxstringCompany fax number.
data.attributes.company.emailstringCompany email.
data.attributes.contactsobjectModel of the information about the Reseller's company contact person.
data.attributes.contacts.first-namestringFirst name of the company contact person.
data.attributes.contacts.last-namestringLast name of the company contact person.
data.attributes.contacts.middle-namestringMiddle name of the company contact person.
data.attributes.contacts.positionstringPosition of the company contact person.
data.attributes.contacts.phonestring

Phone number of the company contact person:

  • + < country code > < city code or network code > < phone number >
  • 00 < country code > < city code or network code > < phone number >
data.attributes.contacts.emailstringCompany contact person's email.
data.attributes.custom-attributesobjectModel of the Reseller custom attributes.
data.attributes.custom-attributes['custom-attribute-key']stringValue of the Reseller custom attributes.

Request example

curl -X GET -H "Content-Type: application/vnd.api+json" -H "Accept: application/vnd.api+json" -H "X-Api-Token: G2dYuBK44dgYu90id1122e" http://billing.activeplatform.com/api/v3/customer_store/resellers/1

Response example

{
    "data": {
        "id": "1",
            "type": "resellers",
            "attributes": {
                "created-at": "2017-06-09T15:44:51.694+03:00",
                "updated-at": "2017-12-22T16:38:53.600+03:00",
                "parent-id": 1,
                "general": {
                    "name": "Company 1",
                    "domain": "cn1.billing.activeplatform.com",
                    "manager": "Manager 1",
                    "currency": "USD"
                },
                "company": {
                    "name": "Company name 1",
                    "address-line-1": "Nezalezhnosty av., 1",
                    "address-line-2": "Sovietsky distr.",
                    "city": "Minsk",
                    "state": "Minskaya",
                    "zip": "220000",
                    "country": "BY",
                    "fax": "+375170345678",
                    "phone": "+375290468624",
                    "email": "company@example.com"
                },
                "contacts": {
                    "first-name": "Ivan",
                    "last-name": "Petrov",
                    "middle-name": "Ivanovich",
                    "position": "Sales representative",
                    "phone": "+375290468624",
                    "email": "petrov.company@example.com"
                },
                "custom-attributes": {
                    "1c password ": "password",
                    "1c api name ": "1c api",
                    "kpp": "234342617111",
                    "inn": "23411113234",
                    "reseller pin": "1234"
            }
        }
    }
}