General purpose log, used for storing JSON data on server. Custom Json data can be stored and retrieved through this call.
The endpoint you need to use for this is:
/log
Key | Details | Example |
---|---|---|
Authorization* | {token_type} {access_token} | Bearer c3499c2729730a7f807efb8676a92dcb6f8a3f8f |
Method* | GET | GET |
x-accept-version | {recommended_latest_version_number} | 2 |
tag* | {custom tags} | StockTake, Product |
object* | {custom object} | STORE |
identifier* | {custom id for an object} | |
id | {previously stored log Id} | 1400776796990:1:12:STORE:12 |
valueInList | {boolean, default false} | false |
* Required header
Key | Details | Data Type | Example |
---|---|---|---|
statusCode | Very important to check this for shopwave server uptime. 200 for success. | int | 200 |
Key | Details | Data Type |
---|---|---|
log.id | unique id of log Object | String |
log.tag | tag object used to sort the log by tag. | String |
log.object | Object for log, used as key value identifier for log categorization and retrieval by Object | String |
log.identifier | log identifier is the value of the key supplied in log.object. | String |
log.addedDate | date the log was generated | DATETIME (YYYY-MM-DD HH:mm:ss) |
log.completeDate | log complete date | DATETIME (YYYY-MM-DD HH:mm:ss) |
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 |
---|---|---|---|
203 | 200 | Request Processed Successfully | The request has been successfully completed. |