Learn the basics of using the Merchant API.
login
or call
.code
and message
. See “Error Codes” for a list
of general error codes.code | message | meaning |
---|---|---|
-32700 | Parse error | Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32600 | Invalid Request | The JSON sent is not a valid Request object. |
-32601 | Method not found | The method does not exist / is not available. |
-32602 | Invalid params | Invalid method parameter(s). |
-32603 | Internal error | Internal JSON-RPC error. |
call(session_id, method, arguments)
The ‘call’ method requires proper authentication and is used to call all other API endpoints. These endpoints are detailed in the additional pages in the left sidebar.
login()
or null
if using HTTP Basic Auth. See Authentication.{resource}.{action}
. E.g. order.info
code | message |
---|---|
2 | Access denied. |
3 | Invalid api path. |
4 | Resource path is not callable. |
5 | Session expired. Try to relogin. |
? | Other error codes may be used depending on which method was called. |