HTTP Methods
Zoho Expense API uses appropriate HTTP verbs for every action.
Method | Description |
---|---|
GET | Used for retrieving resources. |
POST | Used for creating resources and performing resource actions. |
PUT | Used for updating resources. |
DELETE | Used for deleting 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 customers
$ curl -X GET 'https://www.zohoapis.com/expense/v1/contacts' \
-H 'X-com-zoho-expense-organizationid: 11352208' \
-H 'Authorization: Zoho-oauthtoken 6e80xxxxxxxxxxxxxxxxxxxxxxxx8a80'
To get the details of a customer referred to by a specified customer_id
$ curl -X GET 'https://www.zohoapis.com/expense/v1/contacts/903000000000099' \
-H 'X-com-zoho-expense-organizationid: 11352208' \
-H 'Authorization: Zoho-oauthtoken 6e80xxxxxxxxxxxxxxxxxxxxxxxx8a80'