Skip to main content

Customer API (current) (v0)

Download OpenAPI specification:Download

List categories

Retrieves all top-level categories. A product category is product attribute that organizes products in a hierarchy. For example, a pair of trousers could belong to the following categories: Men’s Clothing > Pants > Chinos

Authorizations:
newStoreAccessToken
query Parameters
depth
integer

Specifies the depth of child categories to retrieve. When omitted, all categories are returned.

locale
required
string

A locale code. Can be used to fetch product information in different languages.

catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

Responses

Response samples

Content type
application/json
{}

List order history

Returns the history of orders for the given customer (or consumer) stored in NewStore Cloud.

Typically, customers are created automatically when they place an order online or when they provide their email address, during an in-store purchase.

Authorizations:
newStoreAccessToken
path Parameters
id
required
string

Customer ID (uuid)

query Parameters
offset
integer >= 0
Default: 0

The page offset.

count
integer >= 1
Default: 10

The number of requested documents.

Responses

Response samples

Content type
application/json
{
  • "pagination_info": {},
  • "items": [
    ]
}

List products

Returns a list of products via the Search API.

Authorizations:
newStoreAccessToken
query Parameters
path
string
Example: path=All > Men > Tops

The path of the category to return products from. The value needs to be URL encoded. You can fetch subcategories as shown in the below examples:

All > Men > T-shirts > Rafa Tennis T-shirts

All > Women > Hats > Burton Hats

q
string

A search term to restrict products.

show_variations
boolean

Flag to return the variations field.

show_variation_attributes
boolean

Flag to return the variation_attributes field.

is_preorder
boolean

Flag to filter by is_preorder.

locale
required
string

A locale code. Can be used to fetch product information in different languages.

catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

offset
integer >= 0
Default: 0

The page offset.

count
integer >= 1
Default: 10

The number of requested documents.

sort
string

Sorts the returned values. Takes two values separated by the pipe character (|), the field to sort and the sort order.

location_id
string

Use Stock on Hand values from this location using sorting or filtering by Stock on Hand.

min_soh
integer

Minimum (inclusive) Stock on Hand.

facetfilter[variation_size_value]
string

Comma-separated values of different sizes to match.

facetfilter[variation_color_value]
string

Comma-separated values of different colors to match.

facetfilter[<fieldname>]
string

Comma-separated values of different attribute values to apply. The name of the supported fields are in the Import API's filterable_fields property.

Responses

Response samples

Content type
application/json
{
  • "pagination_info": {},
  • "items": [
    ],
  • "facets": [
    ]
}

Get product details

Returns product detail information including product variant specific information (prices, quantities, ...).

Authorizations:
newStoreAccessToken
path Parameters
type
required
string

The type of the external ID. It must contain =. The product ID is denoted by the id parameter. To use the internal ID, remove the type parameter (including the =).

id
required
string

The product identifier. By default, it must be the internal product ID. To use an external ID, set the type parameter.

Important: When retrieving a product whose id contains special characters (reserved, unreserved, and escaped characters based on the RFC guidelines, the value of the product ID must be encoded. For more information, see Section 2.1 in the RFC guidelines.

query Parameters
include_variations
boolean

Whether to include/populate the product's variations field or not. Variations are included by default.

show_hidden
boolean
Default: false

Return details even if the product is hidden in catalog listings.

locale
required
string

A locale code. Can be used to fetch product information in different languages.

catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

Responses

Response samples

Content type
application/json
{
  • "product_id": "string",
  • "variant_group_id": "string",
  • "is_available": true,
  • "categories": [
    ],
  • "main_category_path": [
    ],
  • "main_category_full_path": "string",
  • "main_category_position": 0,
  • "external_identifiers": {
    },
  • "extended_attributes": [
    ],
  • "sku": "string",
  • "title": "string",
  • "brand": "string",
  • "caption": "string",
  • "description": "string",
  • "keywords": [
    ],
  • "images": [
    ],
  • "gtin": "string",
  • "template_id": "string",
  • "price": 0,
  • "currency_code": "string",
  • "tax_class_id": "string",
  • "preorder_start": "2020-03-16T05:00:14Z",
  • "online_from": "2021-01-01T17:00:00Z",
  • "online_to": "2021-12-01T10:01:00Z",
  • "variation_color_value": "string",
  • "color_swatch": {
    },
  • "variation_size_value": "string",
  • "variation_size_gender": "male",
  • "variation_size_type": "string",
  • "variation_size_system": "string",
  • "variation_additional_1_value": "string",
  • "variation_additional_2_value": "string",
  • "markdown_price": 0,
  • "product_hts_number": "string",
  • "schedule_b": "string",
  • "variation_attributes": {
    },
  • "variations": [
    ],
  • "shipping_weight_value": 0,
  • "shipping_weight_unit": "g",
  • "is_preorder": true,
  • "serialized_inventory": true,
  • "variable_pricing": true,
  • "inventory_tracked": true
}

Get prices

Retrieves price information for a list of products.

Authorizations:
newStoreAccessToken
query Parameters
product_id
required
Array of strings
pricebook
required
string
catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

List locales

Retrieves the locales/translations available in a given shop.

Authorizations:
newStoreAccessToken
query Parameters
catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

Responses

Response samples

Content type
application/json
{
  • "locales": [
    ]
}

List currencies

Retrieves the currencies available in a given shop.

Authorizations:
newStoreAccessToken
query Parameters
catalog
string

DEPRECATED. Use shop instead. The identifier of the product catalog.

shop
required
string

The identifier of the shop the product belongs to.

Responses

Response samples

Content type
application/json
{
  • "currency_codes": [
    ]
}

List shops

Retrieves all shops configured for your business, along with the associated locales and pricebooks.

Authorizations:
newStoreAccessToken

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get shop

Retrieves the specified shop along with the associated locales and pricebooks.

Authorizations:
newStoreAccessToken
path Parameters
shop
required
string

The identifier of the shop to be returned.

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "locales": [
    ],
  • "pricebooks": [
    ]
}