Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Get Product List
Method Objective
The method allows getting a list of products in stock.
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/products | GET |
Parameters
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings | ||
did | string | optionally | Unique Device ID. See "Initialization (REST API)" for information about getting and using Device ID. | ||
seance | string | optionally | Unique ID of the current user session. See "Initialization (REST API)" for information about getting and using User Session ID. | ||
limit | number | optionally | The maximum number of products in the API response (by default - 10). | ||
page | number | optionally | Page number (first page - 1, by default - 1). | ||
categories | string | optionally | Comma-separated category IDs. If used, the API response will return only those products that are in the specified categories. | ||
locations | string | optionally | Comma-separated location IDs. If used, the API will return only products available in the specified locations. Locations must be specified in the imported product catalog (XML, HTTP API). | ||
brands | string | optionally | Comma-separated vendor names. If used, the API response will return only the products of the listed vendors. The vendors must be listed in the product feed. | ||
filters | string | optionally | JSON string with the properties and their values that the products should match in the API response. The data matches the values of the "param" parameter of the product feed/catalog (XML, HTTP API). Format:
See the example below. | ||
collapse | boolean | optionally | Allows disabling grouping of products by "group_id". This param's "false" value enables the API to return products regardless of a group. The "true" value is only one product of a group. The default value is "true". |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful |
403 Forbidden | Incorrect store ID value |
API Response Data
Name | Type | Description |
---|---|---|
products | array | An array of objects with product information. Each object has the following properties:
|
products_total | number | The total number of products. The following request parameters don't affect this value: page, limit. |
brands | Object array | An array of objects with information about available brands. Each object has the following properties:
|
filters | Object | |
price_range | Object | The object containing the values of the minimum and maximum price of the products in the API response. Available properties:
|
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
#Basic curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056 #Using a profile device ID and seance ID curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&did=7rjVGhMykT&seance=R5eQXkrKCf #Filter by brands curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&brands=BRAND_1,BRAND_2 #Filter by categories curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&categories=CATEGORY_1,CATEGORY_2 # Filter by locations curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&locations=LOCATION_1,LOCATION_2 # Filter by params curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&filters={"PARAM_NAME_1": ["PARAM_VALUE_1", "PARAM_VALUE_2"], "PARAM_NAME_2": ["PARAM_VALUE_1", "PARAM_VALUE_2"]} # Filter by boolean params (boolean as string) curl https://api.personaclick.com/products?shop_id=0d42fd8b713d0752776ca589cc0056&filters={"PARAM_NAME_1": ["true"], "PARAM_NAME_2": ["false"]} |
Get Product Details
Method Objective
The method allows getting product details.
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/products/get | GET |
Parameters
Name | Type | Requirement | Description |
---|---|---|---|
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings |
item_id | string | required | Product ID |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful |
403 Forbidden | Incorrect store ID value |
API Response Data
Name | Type | Description |
---|---|---|
products | array | An array of objects with product information. Each object has the following properties:
|
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl https://api.personaclick.com/products/get?shop_id=0d42fd8b713d0752776ca589cc0056&item_id=100500 |
Get Product Counters
Method Objective
The method allows getting 24-hour and 15-minute counters of interaction with a product.
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/products/counters | GET |
Parameters
Name | Type | Requirement | Description |
---|---|---|---|
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings |
item | string | required | Product ID |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful. |
400 Bad Request | See the "message" property of the API response for details. |
403 Forbidden | See the "message" property of the API response for details. |
API Response Data
Name | Type | Description |
---|---|---|
now | object | The product interaction counters for the last 15 minutes. The following properties are available:
|
daily | object | The product interaction counters for the last 24 hours. The following properties are available:
|
status | string | Available only in case of an error. Contains the "error" value in this case. |
message | string | Available only in case of an error. Contains a description of the error. |
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl https://api.personaclick.com/products/counters?shop_id=0d42fd8b713d0752776ca589cc0056&item=100500 |
Get Category Product List
Method Objective
The method allows getting a list of products in stock for a specified category.
Note |
---|
This method has a 60-second cache if no or empty “filters” parameter is used in the request. |
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/category/CATEGORY_ID | GET |
Parameters
Name | Type | Requirement | Description | ||
---|---|---|---|---|---|
CATEGORY_ID | string | required | Category ID | ||
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings | ||
did | string | optionally | Unique Device ID. See "Initialization (REST API)" for information about getting and using Device ID. | ||
seance | string | optionally | Unique ID of the current user session. See "Initialization (REST API)" for information about getting and using User Session ID. | ||
limit | number | optionally | The maximum number of products in the API response (by default - 10). | ||
page | number | optionally | Page number (first page - 1, by default - 1). | ||
locations | string | optionally | Comma-separated location IDs. If used, the API will return only products available in the specified locations. Locations must be specified in the imported product catalog (XML, HTTP API). | ||
brands | string | optionally | Comma-separated vendor names. If used, the API response will return only the products of the listed vendors. The vendors must be listed in the product feed. | ||
filters | string | optionally | JSON string with the properties and their values that the products should match in the API response. The data matches the values of the "param" parameter of the product feed/catalog (XML, HTTP API). Format:
See the example below. | ||
collapse | boolean | optionally | Allows disabling grouping of products by "group_id". This param's "false" value enables the API to return products regardless of a group. The "true" value is only one product of a group. The default value is "true". |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful |
403 Forbidden | Incorrect store ID value |
API Response Data
Name | Type | Description |
---|---|---|
products | array | An array of objects with product information. Each object has the following properties:
|
products_total | number | The total number of products. The following request parameters don't affect this value: page, limit. |
brands | Object array | An array of objects with information about available brands. Each object has the following properties:
|
filters | Object | |
price_range | Object | The object containing the values of the minimum and maximum price of the products in the API response. Available properties:
|
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
#Basic curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056 #Using a profile device ID and seance ID curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056&did=7rjVGhMykT&seance=R5eQXkrKCf #Filter by brands curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056&brands=BRAND_1,BRAND_2 # Filter by locations curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056&locations=LOCATION_1,LOCATION_2 # Filter by params curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056&filters={"PARAM_NAME_1": ["PARAM_VALUE_1", "PARAM_VALUE_2"], "PARAM_NAME_2": ["PARAM_VALUE_1", "PARAM_VALUE_2"]} # Filter by boolean params (boolean as string) curl https://api.personaclick.com/category/100500?shop_id=0d42fd8b713d0752776ca589cc0056&filters={"PARAM_NAME_1": ["true"], "PARAM_NAME_2": ["false"]} |
Get User's Current Cart
Method Objective
The method allows getting the current profile's cart.
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/products/cart | GET |
Parameters
Name | Type | Requirement | Description |
---|---|---|---|
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings |
did | string | optionally | Unique Device ID. See "Initialization (REST API)" for information about getting and using Device ID. |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful |
403 Forbidden | Incorrect store ID value |
404 Not found | Profile not found. |
API Response Data
Name | Type | Description |
---|---|---|
status | array | Contains "success" if the request is successful. |
data | object | Contains the "items" object array, where each object contains the following properties:
|
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl https://api.personaclick.com/products/cart?did=zXMNgW9p7W&shop_id=0d42fd8b713d0752776ca589cc0056 |
Column | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Navigation
Related Pages
|