💡Product
GET
Route: /api/v1/similar/{id}
/api/v1/similar/{id}
Get saved product details of a product with id ={id}
.
Response ( status code: 200 )
{
"id": string,
"title": string,
"description": string,
"image": string,
"priceRange": {
"maxVariantPrice": {
"amount": string,
"currencyCode": string
}
}
}
example
{
"id": "8986383647013",
"title": "Blue Twill Check Casual Shirt",
"description": "Model Size M Pattern Checkered Color Blue : White Fabric Cotton Sleeve Long Sleeves",
"image": "https://cdn.shopify.com/s/files/1/0795/9858/4101/products/SUM23SHRT_PNCHK32_M_PLN_BUWH_1_b08e98e1-31ef-4f74-ad8e-7ee4b752c178.jpg?v=1705311522",
"priceRange": {
"maxVariantPrice": {
"currencyCode": "INR",
"amount": 849
}
}
}
POST
Ideally, This should be done through the dashboard by syncing with your e-commerce provider. Doing this manually may cause inconsistency.
Route: /api/v1/similar/{id}
/api/v1/similar/{id}
Create a product with id ={id}
.
Response ( status code: 200 )
{
"message": "saved successfully"
}
PATCH
Ideally, This should be done through the dashboard by syncing with your e-commerce provider. Doing this manually may cause inconsistency.
Route: /api/v1/similar/{id}
/api/v1/similar/{id}
Update product details with id ={id}
.
Response ( status code: 200 )
{
"message": "saved successfully"
}
Last updated