API Reference

Nocnoc uses the following error response structure

❗️

Example of Unauthorized request:

{
"code": 401,
"message": "Unauthorized"
}

🚧

Example of Invalid request payload:

{
"code": 400,
"message": "Invalid Request Payload."
"errors": [
"Sku should be between 1 character minimum and 45 characters maximum.",
"Brand should be between 1 character minimum and 45 characters maximum."
]
}

CodeMeaningMessage example
200OK
201Created
400Bad Request"Sku already exists."
401Unauthorized"Unauthorized"
404Not Found“Sku not found”
500Internal Error“Internal Server Error”