Get Reseller by ID (Customer Store)

The Get Reseller by ID (Customer Store) method requires installed Customer Store (see Managing Storefront).

For getting information about the current Reseller or any of its downstream Resellers, the Get downstream Reseller information by ID method can also be used (see Get downstream Reseller information by ID).

The Get Reseller by ID (Customer Store) method returns information about the current Reseller or about any of its downstream Resellers.

Access to the current Reseller and downstream Resellers is determined by the Manager's token in the API request.

GET: {base_url}/api/v3/resellers/{reseller_id}

Arguments

Name

Parameter type

Data type

Required/Optional

Description

X-Api-TokenheaderstringRequiredAPI token of the Manager that performs the operation (see Viewing and updating manager's information)
Content-TypeheaderstringRequiredIndicates the media type (text/html or text/JSON) of the response that is sent to the client by the server
AcceptheaderstringRequired

Information about data types that the client (browser) supports

reseller_idpathintegerRequiredID of the current Reseller or any of its downstream Resellers (see Viewing and updating reseller general information)

Response model

NameData typeDescription
idstringReseller ID
typestringData type
attributesobjectReseller information

parent_idstringUpstream (parent) Reseller ID

created_atdateDate and time of the Reseller creation

updated_atdateDate and time of the last update of the Reseller information

generalobjectModel of the general information about the Reseller


namestringReseller name


domainstringReseller domain


currencystringReseller currency in the ISO 4217 alpha-3 format


managerstringManager that is attached to the Reseller

companyobjectModel of the information about the Reseller company


namestringCompany name


address_line_1stringFirst line of the company address


address_line_2stringSecond line of the company address


citystringCity, in which the company is situated


statestringState, in which the company is situated


zipstringZip-code of the company


countrystringCompany country code according to ISO 3166-1 alpha-2 standard


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 >


faxstringCompany fax number


emailstringCompany email

contactsobjectInformation about Reseller contact person


first-namestringFirst name of the company contact person


last-namestringLast name of the company contact person


middle-namestringMiddle name of the company contact person


positionstringPosition of the company contact person


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 >


emailstringCompany contact person's email

attributes.custom-attributesobjectReseller Attributes


attributes.custom-attributes['custom-attribute-key']stringReseller Attribute value

Request example

GET /api/v3/customer_store/resellers/1
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetest3gJXZH5uHCw
Accept: application/vnd.api+json

Response example

{
    "data": {
        "id": "1",
        "type": "resellers",
        "attributes": {
            "created_at": "2016-08-25T09:26:12.491+03:00",
            "updated_at": "2020-01-16T13:10:53.572+03:00",
            "parent_id": 27,
            "general": {
                "created_at": "2016-08-25T09:26:12.491+03:00",
                "updated_at": "2020-01-16T13:10:53.572+03:00",
                "name": "SL SP Root",
                "domain": "test.activeplatform.com",
                "manager": "Alena Rataeva",
                "currency": "BYN"
            },
            "company": {
                "created_at": "2016-08-25T09:26:12.491+03:00",
                "updated_at": "2020-01-16T13:10:53.572+03:00",
                "city": "Минск",
                "zip": "220053",
                "country": "BY",
                "fax": "",
                "name": "SL SP Root",
                "address_line_1": "Гаяяяя",
                "address_line_2": "Гаяяяяя",
                "state": "Минская",
                "phone": "+375252222060",
                "email": "example@gmail.com"
            },
            "contacts": {
                "created_at": "2016-08-25T09:26:12.491+03:00",
                "updated_at": "2020-01-16T13:10:53.572+03:00",
                "first_name": "Ivan",
                "last_name": "Ivanov",
                "middle_name": "",
                "position": "",
                "phone": "+375252222060",
                "email": "aaaa@example.ru"
            },
            "custom_attributes": {
                "inn": "",
                "email": "",
                "l": ""
            }
        }
    }
}