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 role and access level of the manager, which determine the availability of a method.
  • 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 Currency Rates).
includequeryintegerOptional

Returns additional information about related objects. The parameter can be a comma-separated list if information about several objects is required. The following objects and possible values are supported:

ObjectParameter value
Vendorvendor
Product lineproduct_line

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.


priorityintegerProduct priority (see Creating a Product)


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



brief_descriptionstringBrief product 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

relationshipsobjectRelated objects


vendorobjectInformation about the related vendor



dataobjectInformation about a vendor




idstringVendor ID




typestringData type


product_lineobjectInformation about a related product line



dataobjectInformation about a product line




idstringProduct line ID




typestringData type
includedarray of objects

Additional information about the objects listed in the request:

NameData typeDescription
idstringID of the object
typestringData type
attributesobjectAttributes of the object (see details below)

For a vendor (see Vendors):

NameData typeDescription
created_atstringDate and time of a vendor creation
updated_atstringDate and time when a vendor was updated
namestringThe unique name of a vendor
logostringA link to the vendor logo

For a product line (see Product lines):

NameData typeDescription
created_atstringDate and time of a product line creation
updated_atstringDate and time when a product line was updated
namestringThe unique name of a product line
metaobjectAdditional response data

currencystringReseller currency code ISO 4217 alpha-3

Request example

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

Response example

{
    "data": {
        "id": "1",
        "type": "products",
        "attributes": {
            "created_at": "2022-12-21T13:04:37.202Z",
            "updated_at": "2023-02-14T13:02:26.512Z",
            "name": "Product 1",
            "category": {
                "data": {
                    "id": "1",
                    "type": "product_categories",
                    "attributes": {
                        "created_at": "2022-12-21T13:04:03.099Z",
                        "updated_at": "2022-12-21T13:04:03.099Z",
                        "key": "123",
                        "name": "Category1",
                        "description": "",
                        "priority": 0,
                        "public": false,
                        "logo": null
                    }
                }
            },
            "description": "",
            "public": false,
            "license_agreement": null,
            "privacy_policy": null,
            "priority": 0,
            "plans": [
                {
                    "created_at": "2023-02-01T13:53:37.593Z",
                    "updated_at": "2023-02-01T13:55:05.811Z",
                    "id": 1205,
                    "status": "active",
                    "name": "office 365",
                    "description": "",
                    "sku": "",
                    "public": true,
                    "plan_class": "Default(external system)",
                    "plan_class_id": 1,
                    "billing_type": "csp_monthly",
                    "singleton": false,
                    "fixed_price": false,
                    "auto_renewal": false,
                    "currency": {
                        "precision": 2,
                        "unit": "€",
                        "separator": ".",
                        "delimiter": " ",
                        "format": "%n %u",
                        "iso_code": "EUR"
                    },
                    "resources": [
                        {
                            "created_at": "2023-02-01T13:56:34.176Z",
                            "updated_at": "2023-02-01T13:56:34.176Z",
                            "id": 1251,
                            "name": "Licences count",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 1500,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "0.0",
                                "overuse": "0.0",
                                "recurring": "10.0",
                                "renewal": "0.0"
                            }
                        }
                    ],
                    "periods": [
                        {
                            "created_at": "2023-02-01T13:55:05.806Z",
                            "updated_at": "2023-02-01T13:55:05.806Z",
                            "id": 1210,
                            "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": "2023-01-16T11:54:54.420Z",
                    "updated_at": "2023-01-16T11:55:39.310Z",
                    "id": 1010,
                    "status": "active",
                    "name": "Perpetual",
                    "description": "",
                    "sku": "",
                    "public": true,
                    "plan_class": "Default(external system)",
                    "plan_class_id": 1,
                    "billing_type": "non_recurring",
                    "singleton": false,
                    "fixed_price": false,
                    "auto_renewal": false,
                    "currency": {
                        "precision": 2,
                        "unit": "€",
                        "separator": ".",
                        "delimiter": " ",
                        "format": "%n %u",
                        "iso_code": "EUR"
                    },
                    "resources": [
                        {
                            "created_at": "2023-01-16T11:55:39.280Z",
                            "updated_at": "2023-01-16T11:55:39.280Z",
                            "id": 1057,
                            "name": "SQL Server 2022 Enterprise - 2 Core License Pack - 1 year",
                            "key": null,
                            "unit_of_measure": "unit",
                            "status": "active",
                            "included": 0,
                            "minimum": 0,
                            "limit": 1500,
                            "public": true,
                            "unlimited": false,
                            "fees": {
                                "setup": "10.0",
                                "overuse": "0.0",
                                "recurring": "0.0",
                                "renewal": "5.0"
                            }
                        }
                    ],
                    "periods": [
                        {
                            "created_at": "2023-01-16T11:55:39.301Z",
                            "updated_at": "2023-01-16T11:55:39.301Z",
                            "id": 1015,
                            "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": "2022-12-21T13:04:56.966Z",
                "updated_at": "2022-12-21T13:04:56.966Z",
                "name": "Solution",
                "description": "SQL Server 2022 Enterprise",
                "brief_description": "SQL Server 2022 Enterprise",
                "screenshots": [],
                "video_url": [],
                "documentation_url": [],
                "benefits": [],
                "image": null
            }
        },
        "relationships": {
            "vendor": {
                "data": {
                    "id": "15",
                    "type": "vendors"
                }
            },
            "product_line": {
                "data": {
                    "id": "6",
                    "type": "product_lines"
                }
            }
        }
    },
    "meta": {
        "currency": "USD"
    }
}