General purpose log, used for storing JSON data on server. Custom Json data can be stored using this call.
The endpoint you need to use for this is:
/log
Key | Details | Example |
---|---|---|
Authorization* | {token_type} {access_token} | Bearer c3499c2729730a7f807efb8676a92dcb6f8a3f8f |
Method* | POST | POST |
x-accept-version | {recommended_latest_version_number} | 2 |
tag* | {custom tags} | StockTake, Product |
id | {previously stored log Id} optional if supplied, will update the log | 1400776796990:1:12:STORE:12 |
completed | {true|false} optional | true |
Object* | {the key to store the data against, if passed will be helpful in retrieving the results} | Store |
identifier* | {value of the key supplied above in Object} | 1 |
* Required header
Key | Details | Data Type | Example |
---|---|---|---|
statusCode | Very important to check this for any error. 201 for success. | int | 201 |
Key | Details | Data Type |
---|---|---|
log | Log object will contain the response data. | Object |
Please check the live API calls for more details on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
908 | 401 | Expired Token | Token expired or invalid. Please renew your token |
911 | 401 | Authorization Header Invalid | The authorization header is invalid. The correct format is Authorization: {token_type} {accessToken} |
910 | 404 | Not Found | The resource you are looking for does not exist |
899 | 500 | Unknown Error | Something went wrong. Please contact the site administrator |
Please check the live API calls for more details on the API messages.
ID | Status Code | Title | Details |
---|---|---|---|
202 | 200 | Token is valid | Token is validated and found valid. |
206 | 201 | Resource Created | Your resource is created partially or fully. Please check further message or process log |