HTTP Methods
Zoho Commerce API uses appropriate HTTP commands for every action.
Method | Description |
GET | Used for retrieving data from the server |
POST | Used for creating new resources by sending changes from client to server |
PUT | Revises or adds to existing data. |
DELETE | Used for deleting data resources. |
Using GET method, you can get the list of resources or details of a particular instance of a resource. To get a list of all salesorders:
Copiedcurl -i -L -X GET
-H "Authorization:Zoho-oauthtoken ***"
-H "X-com-zoho-store-organizationid:58927961"
-H "X-ZOHO-Include-Formatted:true"
'https://commerce.zoho.com/store/api/v1/salesorders'
To get the details of a specific salesorder using salesorder number:
Copiedcurl -i -L -X GET
-H "Authorization:Zoho-oauthtoken ***"
-H "X-com-zoho-store-organizationid:58927961"
'https://commerce.zoho.com/store/api/v1/salesorders/51128000000104005'