Response Results

The YMP server returns the results in JSON format.

Success response example

The HTTP status code for a success response is 200.

Success response example: Create a Customer.
{
    "status": "Success",
    "user": {
        "id": 216
    }
}

Error response example

An error response consists of the following parameters:

Parameter Type Description
status String Request result:
  • Success
  • Failed
errno Int Error code. See the error codes reference.
errmsg String Error message.
Error response example: invalid token.
{
    "status": "Failed",
    "errno": "5408409",
    "errmsg": "USER_NAME_ALREADY_EXISTS"
}