Parameters & Code examples
Parameters
Parameters in GET methods are passed the same as in any HTTP request, by adding them to the URL. POST, PUT gateways accept parameters as a body request passed in json format. Try out our interactive documentation and you'll quickly catch on to how to do it right.
There are several ways to pass array type parameters in a URL (GET gateways). In the Admin API, we pass them as a single comma-separated value. E.g.: if you want to pass an id=1 parameter and an id=2 parameter in a GET, just add ?id=1,2 to the request.
Code examples
The documentation is interactive - that is, in addition to checking the parameters and the format of the response, you can generate live requests and responses from your API without the need for code. What's more, the system will suggest you snippets of ready-made code from the parameters you created in one of the popular languages or just a cURL request if you prefer.
Updated 9 months ago