Learn about the authentication methods for the Merchant API.
call
method.
session_id
parameter to the call
method (the first element of the params
array) should be null
.
login(username, api_key)
Another method is to use the login
JSON-RPC method to obtain a session ID and use this session ID for subsequent requests to the call
method.
The session ID can then be used as the first array element of the params
parameter for subsequent requests to call
.
login
again. Do not call login
before each request, instead consider
using the HTTP Basic Auth method described above.login()
Parameterscode | message |
---|---|
2 | Access denied. |
6 | Required parameter is missing. |