Create, update or delete products
POST
/{catalog_id}/batchChanges several products in one call. Each entry in requests has a method (CREATE, UPDATE or DELETE) and your product ID, retailer_id.
The changes are applied in the background, usually within a few minutes. Then list products to check.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
catalog_id*string
ID of your product catalog, from Retrieve your catalog ID.
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://wa.hostmentor.com/v3/801262455316921/batch" \ -H "apikey: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "requests": [ { "method": "CREATE", "retailer_id": "tshirt-blue-m", "data": { "name": "Blue T-shirt (M)", "description": "100% cotton, regular fit.", "price": 49900, "currency": "INR", "availability": "in stock", "condition": "new", "brand": "HostMentor", "category": "t-shirts", "image_url": "https://example.com/images/tshirt-blue.jpg", "url": "https://example.com/products/tshirt-blue", "retailer_product_group_id": "tshirt-blue" } } ] }'{ "handles": [ "AczTnPmKBp2dM3Hc4Sji8HhOwP3xmZN_qWGR9jH2yPWfkkQsCn" ]}