Postman collections and OpenAPI
Download the Postman collections for the client API and the reseller API, and the OpenAPI file to generate code.
With the collections, you can test every route in Postman (or in Insomnia and Bruno) without writing code.
Download
| Collection | File |
|---|---|
Client API (rh7k_ key) | rh7-api-cliente.postman_collection.json |
Reseller API (rh7_ key) | rh7-api-revenda.postman_collection.json |
How to use
- In Postman, click Import and choose the downloaded file.
- Open the collection and go to the Variables tab.
- Replace
rh7k_REPLACE_ME(client) orrh7_REPLACE_ME(reseller) with your key. - Fill in
subuserIdwith the id of the proxy or customer you will test. - Choose a route and click Send.
The purchase routes already send a new Idempotency-Key on each request, generated by Postman itself.
Careful: with a key that has the Purchases permission (client) or billing:write (reseller), the purchase routes create real orders. The Pix is only charged if someone pays, but the order shows up in your history.
Explorer inside the panel
When you are logged in, the panel has an explorer for the client API: choose the proxy, fill in the fields and see the response right away, with ready-made code in curl, JavaScript and Python. It is under API, in the panel menu. There you can also download the collection with your key already filled in.
OpenAPI
The OpenAPI file for the reseller API and the end customer API is at:
https://api.rh7proxys.com/openapi.jsonUse it with code generators (openapi-generator, Orval, Kiota) or import it into Postman. The visual version is at api.rh7proxys.com/docs.