Product API
Endpoints
This API handles operations related to importing, retrieving, and deleting products in bulk or individually.
Base URL
https://api.videowise.com
Bulk Product Import
POST /external/product/v1/bulk
Imports or modifies list of products into the system.
Headers
Key | Type | Required | Description |
---|---|---|---|
X-Videowise-Access-Token | String | Yes | Access token to authorize the request. |
Request Body
- siteId (string, required): The site ID to associate with the products.
- siteType (string, required): The type of site to associate with the products.
- products (array of Product Object, required): List of products to be imported.
Product Object:
Field | Type | Required | Description |
---|---|---|---|
id | String | Yes | The unique identifier of the product. |
sku | String | Yes | The SKU of the product. |
title | String | Yes | The name of the product. |
description | String | No | The description of the product. |
price | Number | No | The price of the product. |
price_min | Number | No | The minimum price of the product. |
price_max | Number | No | The maximum price of the product. |
available | Boolean | Yes | Whether the product is available. |
images | [String] | No | List of image URLs for the product. |
featured_image | String | Yes | The image URL of the product. |
url | String | Yes | The URL of the product. |
Example Request
Response
Status | Description |
---|---|
200 | Products imported successfully. |
400 | Bad request or site not found. |
401 | Unauthorized access. |
Single Product Import
POST /external/product/v1
Imports or modifies single product into the system.
Headers
Key | Type | Required | Description |
---|---|---|---|
X-Videowise-Access-Token | String | Yes | Access token to authorize the request. |
Request Body
- siteId (string, required): The site ID to associate with the product.
- siteType (string, required): The type of site to associate with the product.
- product (Product Object, required): The product to be imported.
Product Object: Same as defined in the Bulk Product Import section.
Example Request
Response
Status | Description |
---|---|
200 | Product imported successfully. |
400 | Bad request or site not found. |
401 | Unauthorized access. |
Retrieve Product
GET /external/product/v1/:productId
Retrieves a product by its reference ID or SKU.
Headers
Key | Type | Required | Description |
---|---|---|---|
X-Videowise-Access-Token | String | Yes | Access token to authorize the request. |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
siteId | String | Yes | The site ID to search for. |
siteType | String | Yes | The site type to search for. |
Example Request
Response
Field | Type | Description |
---|---|---|
id | String | The unique identifier of the product. |
sku | String | The SKU of the product. |
title | String | The name of the product. |
featured_image | String | The image URL of the product. |
url | String | The URL of the product. |
Status | Description |
---|---|
200 | Product retrieved successfully. |
400 | Bad request or product not found. |
401 | Unauthorized access. |
Delete Product
DELETE /external/product/v1/:productId
Deletes a product by its reference ID or SKU.
Headers
Key | Type | Required | Description |
---|---|---|---|
X-Videowise-Access-Token | String | Yes | Access token to authorize the request. |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
siteId | String | Yes | The site ID to search for. |
siteType | String | Yes | The site type to search for. |
Example Request
Response
Field | Type | Description |
---|---|---|
message | String | Confirmation of product deletion. |
Status | Description |
---|---|
200 | Product deleted successfully. |
400 | Bad request or product could not be deleted. |
401 | Unauthorized access. |
Error Codes
Status | Description |
---|---|
400 | Bad request. This occurs when required parameters or body fields are missing. |
401 | Unauthorized. Access token is missing or invalid. |
404 | Resource not found. Site or product does not exist. |