I am not able to find the Rest API endpoint for the Product catalog.
Please help me with this.
I am not able to find the Rest API endpoint for the Product catalog.
Please help me with this.
The endpoint GET /ProductTemplates/tree may be useful.
and what could be the endpoint for the creation of the product?
POST /ProductTemplates/tree does the job
ok thank you.
and is there any end point for price book?
also do you have any specific link for the producttemplate endpoint check?
the best way to check which APIs are being triggered is to use Sugar UI itself.
You can open your Developer Console, navigate to the screen you want, and see which API endpoint Sugar is triggering in the Network tab.
Ok Thank You.
Does sugar have the pricebook related to the products?
Sugar OOTB has no pricebooks included, only prices as fields in the ProductTemplates records like
GET {{url}}rest/v10/ProductTemplates - read all products
POST {{url}}rest/v10/ProductTemplates with JSON payload - create product
PUT {{url}}rest/v10/ProductTemplates/{{product}} with JSON payload - update product
GET {{url}}rest/v10/ProductTemplates/tree - read category tree
POST {{url}}rest/v10/ProductTemplates/tree - read category tree
payload like this: