Response
Responses will be in the JSON format.
Node Name | Description |
code | Zoho Commerce 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. |
Date
All timestamps are returned in the ISO 8601 format - YYYY-MM-DDThh:mm:ssTZD.
Example: 2016-06-11T17:38:06-0700
Response Structure The response structure for the salesorders API follows the below format.
Copied{
"code" : 0,
"message" : "success",
"salesorder" : {
"salesorder_id" : "..."
}
}
Request Example
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
Or
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'
Response Header Example
CopiedHTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8