Error Codes

1. Background

SUNMI Store system is a store management system provided by SUNMI for merchants based on the IoT devices in stores.

As an open platform, SUNMI Store can do data interchange for third-party SaaS providers, including the interchange of product information, transaction information and membership system.

ESL and other IoT devices are directly attached to the store’s products, prices and strategies, thus a basic product database framework is preserved in SUNMI Store. For data sources, users can choose either to edit on the page of SUNMI Store or to deal with the data on the third-party SaaS provider.

This document describes the error codes user might encounter and the description of that error.

2. Return value

Error types will be returned in HTTP response. If the sign is invalid, then the http status code 401 will be returned.

If the sign is valid, then it will return HTTP status code 200 whatsoever, the error will be returned in the HTTP response body. The structure of our response body is normally:

{
    code:0
    msg: "success"
    data: {}
} 

3. Error list

Error codedescription
5090invalid sign
5091invalid timestamp
5092invalid random value
5000database error
5013invalid saas provider or shop
5015invalid product
5022invalid parameter
5041invalid saas provider
5047invalid order