Quickstart
This guide will get you all set up and ready to use the API. We'll cover how to get started using API and how to make your first request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
Before making API requests, you will need to obtain your API key. You can find it at Virtualpay » Integration, or by requesting the company.
Making your first API request
After picking your preferred client, you are ready to make your first call to the API. Below, you can see how to send a GET request to the transactions endpoint to get a list of all your transactions. In the cURL example, results are limited to 100 transactions.
curl --location 'https://sandbox.virtualpay.com.br/api/v1/transactions?name_document=00000000000' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {key}'
What's next?
Great, you're now set up with an API client and have made your first request to the API. Here are a few links that might be handy as you venture further into the API: