Request and Response Format

Request Format

For POST requests, Content-Type header should be set to application/x-www-form-urlencoded.
Authentication is done via parameters. The appId parameter identifies which merchant account you are accessing, and the secretKey parameter authenticates the endpoint.
In the examples that follow, the keys for your app are included in the command.

Response Format

The response format for all requests is a JSON object.
The request being a success or not is indicated by the HTTP status code. A 2xx status code indicates success, whereas a 4xx status code indicates failure. When a request fails, the response body is still JSON, but always contains the fields status and reason (only if status is an error) which you can inspect to use for debugging.
For example, trying to save an object with invalid keys will return the message:

{
  "status": "ERROR",
  "error": "An order with the same id exists."
}