Product
Add an item
Changed onv1 is deprecated — use the v2 endpoint instead. Creates an item in your catalog keyed by your own id. Sending an ID that already exists fails with PRODUCT_ALREADY_EXISTS — use Update an item to change the catalog record. Items are also created automatically when a document references an unknown item id.
post/v1/product
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v1/product
- AuthHTTP bearer
Request body
Example request
{
"id": "ITEM123",
"name": "Item Name",
"quantity": 1,
"unit_price": 100,
"tax_rate": 18,
"price_with_tax": 118,
"discount_percent": 10,
"description": "Item Description",
"hsn_code": "1234",
"item_type": "Product",
"unit": "kg",
"category": "Electronics",
"status": "Active"
}Response
Success
Example response
{
"success": true,
"message": "Product added successfully"
}Changes
- info
endpoint added
- info