Get product

The Get product method returns the information about a product of the current reseller or any of its downstream resellers.

An API token of a manager is required for authorization. To get an API token via the Operator Control Panel, see Viewing and updating manager's information

The manager's API token specified in an API request determines the current reseller and downstream resellers accessible within a method.

GET {base_url}/api/v3/customer_store/resellers/{reseller_id}/products/{product_id}

Arguments

Name

Parameter Type

Data type

Required/Optional

Description

X-Api-TokenheaderstringRequiredAPI token of a manager that performs the operation (see Viewing and updating manager's information)
Content-TypeheaderstringRequiredMedia type of the request. Specify the following: application/vnd.api+json
AcceptheaderstringRequired

Supported media types of the answer. Specify the following: application/vnd.api+json

base_urlpathstringRequiredActivePlatform URL
reseller_idpathintegerRequiredID of the current reseller or any of its downstream resellers (see Viewing and updating reseller general information)

product_id

pathintegerRequiredID of the product
plan_currency

query

bool

Optional

Defines whether the plan currency will be used for prices in the product (see also Managing Customer Store currency):

  • true — prices in every plan are displayed in the currency of this plan.
  • false — all prices are displayed in the reseller currency (by default). If the plan currency differs from the reseller currency, the prices are recalculated with the current exchange rate (see Managing currency rates).

Response model

NameData typeDescription
dataobjectResponse data


id

integer

Product ID

typestringData type

attributesobjectProduct information


created_at

date

Date and time of the product creation


updated_at

date

Date and time when the product was updated


namestringProduct name


typestringProduct type


categoryobjectInformation about the product category



dataobjectProduct category data (see Creating a product category)




id

integer

Product category ID




typestringData type




attributesobjectProduct category information





created_at

date

Date and time of the product category creation





updated_at

date

Date and time when the product category was updated





keystringProduct category key





namestringProduct category name





descriptionstringDescription of the product category





priorityintegerProduct category priority





logostringLink to the product category logo file


descriptionstringDescription of the product


license-agreementstringLink to the license agreement of the product


privacy-policystringLink to the privacy policy of the product


publicbool

Indication whether the product is available in Storefront:

  • true — the product is published and displayed in Storefront.
  • false — the product is not published and not displayed in Storefront.


vendorobjectInformation about the vendor



namestringVendor name



logostringLink to the vendor logo file


plansarray of objectsInformation about the plans linked to the product



created_at

date

Date and time of the plan creation



updated_at

date

Date and time when the plan was updated



idintegerPlan ID



statusstringStatus of the plan (for the list of plans statuses, see Viewing the list of plans)



namestringName of the plan



descriptionstringPlan details description



skustringSKU of the plan



publicbool

Indication whether the plan is available for sale:

  • true — the plan is available for sale.
  • false — the plan is not available for sale.



plan_classstringName of the service term (see Managing service terms)



plan_class_idintegerID of the service term (see Managing service terms)



billing_typestringBilling type of the plan



singletonbool

The Singleton option of the plan:

  • true — a customer can have only one subscription to the plan.
  • false — a customer can have several subscriptions to the plan.



fixed_pricebool

The Fixed price option of the plan:

  • true — a customer pays for the subscription and ordering additional resources the same price as it was set at the moment of the subscription order. The new price will be applied only after the subscription is renewed.
  • false — the plan prices are not fixed for customers.



auto_renewalbool

Indicates the status of the Auto-renew option of the plan:

  • true — the Auto-renew option is activated.
  • false — the Auto-renew option is not activated.



currencyobjectInformation about the currency used for displaying the plan fees. Defined by the plan_currency parameter




precisionintegerNumber of decimal places for currency subunits (for example, for cents, the precision is 2).




unitstringDisplayed name for the currency units




separatorstringDecimal separator




delimiterstringSeparator for groups of thousands




formatstringFormat — display order of units and amount:
  • %n — amount.
  • %u — units.




iso_codestringCurrency code ISO 4217 alpha-3



resourcesarray of objectsResources of the plan




created_at

date

Date and time of the resource creation




updated_at

date

Date and time when the resource was updated




idintegerID of the resource in the plan




namestringName the resource




keystringKey the resource




unit_of_measurestring

Unit of measure of the resource:

  • unit — the resource is measurable. The resource amount is specified.
  • boolean — the resource is non-measurable. The resource amount is not required and:
    • true — the resource is included in the plan.
    • false — the resource is not included in the plan.




statusstring

Status of the resource:

  • active
  • inactive
  • deleted




includedintegerAmount of the resource included in the plan by default (included resources are part of the subscription price)




minimumintegerMinimum amount of the resource (together with the included amount) available for ordering (see Plan Resources)




limitinteger

Maximum amount of the resource available for ordering. For an unlimited resource (unlimited = true), limit = 0





publicbool

Availability of the resource:

  • true — the resource is available for ordering.
  • false — the resource is not available for ordering.




unlimitedbool

Attribute of the unlimited resource:

  • true — the resource is unlimited.
  • false — the resource is not unlimited.




feesobjectInformation about fees of the resource





setupfloatSetup fee of the resource





overusefloatOveruse fee of the resource





recurringfloatMonthly recurring fee of the resource





renewalfloatRenewal fee of the resource



periodsarray of objectsPlan periods




created_at

date

Date and time of the plan period creation




updated_at

date

Date and time when the plan period was updated




idintegerID of the plan period




endlessbool

Indicator of the endless plan period:

  • true — the plan period is endless (perpetual).
  • false — the plan period is not endless. For the plan period duration, see duration.




trialbool

Plan period type:

  • true — trial plan period.
  • false — commercial plan period.




publicbool

Availability of the plan period:

  • true — the plan period is available for ordering.
  • false — the plan period is not available for ordering.




statusstring

Status of the plan period:

  • active
  • deleted




descriptionstringPlan period details description




durationsobjectPlan period duration





valueintegerDuration of the plan period. For an endless plan period, value = null





typestringUnit of measure of the plan period duration. For an endless plan period, type = null




feesobjectInformation about fees of the plan period





setupfloatSetup fee of the plan for the plan period





recurringfloatMonthly recurring fee of the plan for the plan period





transferfloatTransfer fee of a domain for the plan period. The transfer fee is applied if domains are available as a resource in the service





renewalfloatRenewal fee of the plan for the plan period


supportobjectInformation about technical support of the product



phonestringPhone number of technical support



emailstringEmail of technical support



urlstringLink to the service desk of the product



detailsstringDetailed information about technical support


marketobjectMarketing information about the product for Storefront (see the Marketing tab in Creating a product)



created_at

date

Date and time of the marketing information creation



updated_at

date

Date and time when the marketing information was updated



namestringProduct name



descriptionstringProduct description



screenshotsarray of objectsInformation about screenshots of the product




titlestringScreenshot title




urlstringLink to the screenshot



video_urlarray of objectsInformation about videos of the product




titlestringVideo title




urlstringLink to the video



documentation_urlarray of objectsInformation about documentation of the product




titlestringDocument title




urlstringLink to the document



benefitsarray of objectsInformation about benefits of the product




titlestringBenefit title




descriptionstringBenefit description



imagestringLink to the product logo file
metaobjectAdditional response data

currencystringReseller currency code ISO 4217 alpha-3

Request example

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

Response example

{
    "data": {
        "id": "878",
        "type": "products",
        "attributes": {
            "created_at": "2020-06-17T13:59:15.810+03:00",
            "updated_at": "2020-09-23T15:07:01.846+03:00",
            "name": "G Suite for migration",
            "type": "saas",
            "category": {
                "data": {
                    "id": "190",
                    "type": "product_categories",
                    "attributes": {
                        "created_at": "2017-09-14T16:27:16.566+03:00",
                        "updated_at": "2020-03-11T10:46:45.422+03:00",
                        "key": "default",
                        "name": "default",
                        "description": "",
                        "priority": 0,
                        "logo": null
                    }
                }
            },
            "description": "",
            "license_agreement": null,
            "privacy_policy": null,
            "public": false,
            "vendor": {
                "name": "G Suite magration",
                "logo": "https://test.activeplatform.com/images/product/vendor_logo/878/plesk%20logo.jpg"
            },
            "plans": [
                {
                    "created_at": "2020-06-17T13:59:16.418+03:00",
                    "updated_at": "2020-06-17T13:59:16.880+03:00",
                    "id": 1864,
                    "status": "active",
                    "name": "G Suite Basic гибкий план",
                    "description": "G Suite Basic – это пакет приложений для совместной работы, который включает корпоративную почту, общие календари, сервисы для редактирования и хранения документов в Интернете, инструменты для видеоконференций и многое другое.",
                    "sku": null,
                    "public": false,
                    "plan_class": "gsuitemigration",
                    "plan_class_id": 13078,
                    "billing_type": "csp_monthly",
                    "singleton": false,
                    "fixed_price": false,
                    "auto_renewal": false,
                    "currency": {
                        "precision": 2,
                        "unit": "руб.",
                        "separator": ".",
                        "delimiter": " ",
                        "format": "%n %u",
                        "iso_code": "RUB"
                    },
                    "resources": [
                        {
                            "created_at": "2020-06-17T13:59:16.820+03:00",
                            "updated_at": "2020-06-17T13:59:16.820+03:00",
                            "id": 4763,
                            "name": "Пользователь",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 1,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "6.2",
                                "renewal": "0.0"
                            }
                        },
                        {
                            "created_at": "2020-06-17T13:59:16.472+03:00",
                            "updated_at": "2020-06-17T13:59:16.472+03:00",
                            "id": 4754,
                            "name": "Предоставление доступа к сервисам Google Drive storage Upgrade 8TB на 1 учетную запись, на 1 месяц",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "9.6",
                                "renewal": "0.0"
                            }
                        },
                        {
                            "created_at": "2020-06-17T13:59:16.800+03:00",
                            "updated_at": "2020-06-17T13:59:16.800+03:00",
                            "id": 4762,
                            "name": "Предоставление доступа к сервисам Google Vault на 1 учетную запись, на 1 месяц",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "6.2",
                                "renewal": "0.0"
                            }
                        }
                    ],
                    "periods": [
                        {
                            "created_at": "2020-06-17T13:59:16.857+03:00",
                            "updated_at": "2020-06-17T13:59:16.857+03:00",
                            "id": 3280,
                            "endless": false,
                            "trial": false,
                            "public": true,
                            "status": "active",
                            "description": null,
                            "durations": {
                                "value": 1,
                                "type": "month"
                            },
                            "fees": {
                                "setup": "0.0",
                                "recurring": "0.0",
                                "transfer": "0.0",
                                "renewal": "0.0"
                            }
                        },
                        {
                            "created_at": "2020-06-17T13:59:16.838+03:00",
                            "updated_at": "2020-06-17T13:59:16.838+03:00",
                            "id": 3279,
                            "endless": true,
                            "trial": false,
                            "public": true,
                            "status": "active",
                            "description": null,
                            "durations": {
                                "value": null,
                                "type": null
                            },
                            "fees": {
                                "setup": "0.0",
                                "recurring": "0.0",
                                "transfer": "0.0",
                                "renewal": "0.0"
                            }
                        }
                    ]
                },
                {
                    "created_at": "2020-06-17T13:59:16.031+03:00",
                    "updated_at": "2020-06-17T13:59:16.409+03:00",
                    "id": 1863,
                    "status": "active",
                    "name": "G Suite Basic годовой план с помесячной оплатой",
                    "description": "G Suite Basic – это пакет приложений для совместной работы, который включает корпоративную почту, общие календари, сервисы для редактирования и хранения документов в Интернете, инструменты для видеоконференций и многое другое.",
                    "sku": null,
                    "public": false,
                    "plan_class": "gsuitemigration",
                    "plan_class_id": 13078,
                    "billing_type": "csp_monthly",
                    "singleton": false,
                    "fixed_price": false,
                    "auto_renewal": false,
                    "currency": {
                        "precision": 2,
                        "unit": "руб.",
                        "separator": ".",
                        "delimiter": " ",
                        "format": "%n %u",
                        "iso_code": "RUB"
                    },
                    "resources": [
                        {
                            "created_at": "2020-06-17T13:59:16.108+03:00",
                            "updated_at": "2020-06-17T13:59:16.108+03:00",
                            "id": 4742,
                            "name": "Пользователь",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 1,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "2.65",
                                "renewal": "0.0"
                            }
                        },
                        {
                            "created_at": "2020-06-17T13:59:16.154+03:00",
                            "updated_at": "2020-06-17T13:59:16.154+03:00",
                            "id": 4744,
                            "name": "Предоставление доступа к сервисам Google Drive storage Upgrade 8TB на 1 учетную запись, на 1 месяц",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "9.6",
                                "renewal": "0.0"
                            }
                        },
                        {
                            "created_at": "2020-06-17T13:59:16.326+03:00",
                            "updated_at": "2020-06-17T13:59:16.326+03:00",
                            "id": 4752,
                            "name": "Предоставление доступа к сервисам Google Vault на 1 учетную запись, на 1 месяц",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 750,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "6.2",
                                "renewal": "0.0"
                            }
                        }
                    ],
                    "periods": [
                        {
                            "created_at": "2020-06-17T13:59:16.360+03:00",
                            "updated_at": "2020-06-17T13:59:16.360+03:00",
                            "id": 3278,
                            "endless": false,
                            "trial": false,
                            "public": true,
                            "status": "active",
                            "description": null,
                            "durations": {
                                "value": 1,
                                "type": "year"
                            },
                            "fees": {
                                "setup": "0.0",
                                "recurring": "0.0",
                                "transfer": "0.0",
                                "renewal": "0.0"
                            }
                        }
                    ]
                }
            ],
            "support": {
                "phone": "",
                "email": "",
                "url": "",
                "details": ""
            },
            "market": {
                "created_at": "2020-06-17T13:59:16.939+03:00",
                "updated_at": "2021-04-08T10:43:58.165+03:00",
                "name": "G Suite migration",
                "description": "Пакет облачных служб и приложений для совместной работы по подписке. В пакет входят популярные веб-приложения Google в том числе Gmail, Google Диск, Google Hangouts, Google Календарь и Google Документы.  Помимо этого, они предоставляют дополнительные возможности для корпоративных клиентов, такие как адреса Электронной почты в домене компании, 30 ГБ и более для хранения писем и документов, а также круглосуточная поддержка по телефону и электронной почте. Поскольку Google Suite является облачным решением, то все пользовательские данные хранятся в защищенных дата-центрах Google, а не на локальных серверах клиента, как при использовании стандартного специализированного ПО.",
                "screenshots": [],
                "video_url": [],
                "documentation_url": [
                    {
                        "title": "",
                        "url": "https://docs.activeplatform.com/"
                    }
                ],
                "benefits": [],
                "image": null
            }
        }
    },
    "meta": {
        "currency": "RUB"
    }
}