API Docs
/
No Results Found
Response

Response

Responses will be in the JSON format.

Node Name Description
code Zoho Expense error code. This will be zero for a success response and non-zero in case of an error.
message Message for the invoked API.
resource name Comprises the invoked API’s Data.


Other Formats

Certain APIs also support csv and pdf formats. The required response format needs to be specified in the respective request’s Accept header or accept query parameter.



















Date

All timestamps are returned in the ISO 8601 format - YYYY-MM-DDThh:mm:ssTZD.

Example: 2016-06-11T17:38:06-0700

Request Example

Click to copy
$ curl -X GET 'https://expense.zoho.com/api/v1/expenses/7000000079426' \ -H 'X-com-zoho-expense-organizationid: 11352208' \ -H 'Authorization: Zoho-oauthtoken 6e80ed905055deb9fd2d12d71f518a80' \ -H 'Accept=pdf'

OR

Request Example

Click to copy
$ curl -X GET 'https://expense.zoho.com/api/v1/expenses/7000000079426?accept=pdf' \ -H 'X-com-zoho-expense-organizationid: 11352208' \ -H 'Authorization: Zoho-oauthtoken 6e80ed905055deb9fd2d12d71f518a80'

Response Structure

The response structure for the Books API follows the below format.
{ "code" : 0, "message" : "success", "expense" : { "expense_id" : "..." } }