# Products, quotes and orders

> Check prices, get an exact quote and buy Residential Proxy, Mobile 4G/5G or Rotativa CPA by Pix or card through the API.
> Page: https://rh7proxys.com/en/docs/api-pedidos · Index: https://rh7proxys.com/llms.txt

Through the API you buy Residential Proxy, Mobile 4G/5G Proxy and Rotativa CPA at the same price as the website, with the same GB bonus. You pay by Pix or card, one order at a time. After payment, the proxy is created in your account and also shows up in the panel.

The full path is: check products, get a quote, create the order, pay and check the status.

## Products and prices

```bash
curl https://api.rh7proxys.com/v1/products \
  -H "Authorization: Bearer rh7k_your_key"
```

```json
{
  "success": true,
  "data": {
    "currency": "BRL",
    "payment_methods": [{ "method": "pix", "fee_percent": 0 }, { "method": "card", "fee_percent": 3.5 }],
    "products": [
      { "product": "residential", "name": "Proxy Residencial", "modes": ["rotating", "sticky"], "min_gb": 1, "max_gb": 500, "geo_targeting": ["country", "state", "city"], "price_tiers": [{ "from_gb": 1, "price_per_gb_brl": 8.9 }], "bonus_tiers": [{ "from_gb": 20, "bonus_gb": 1 }] },
      { "product": "mobile", "name": "Proxy Mobile 4G/5G", "modes": ["rotating", "sticky"], "min_gb": 1, "max_gb": 200, "geo_targeting": ["country", "state", "city"] },
      { "product": "rotativa_cpa", "name": "Rotativa CPA", "modes": ["rotating"], "packages_gb": [10, 20, 50, 100, 200, 500], "geo_targeting": ["country"] }
    ]
  }
}
```

The values in the example are for illustration only. Always read prices from this route: it follows the website's price table in real time.

| Product | Code | Quantity | Modes |
|---|---|---|---|
| Residential Proxy | `residential` | 1 to 500 GB | `rotating` or `sticky` |
| Mobile 4G/5G Proxy | `mobile` | 1 to 200 GB | `rotating` or `sticky` |
| Rotativa CPA | `rotativa_cpa` | Packages of 10, 20, 50, 100, 200 or 500 GB | `rotating` |

## Exact quote

Shows the total before you buy, with bonus, coupon and the card price. It does not create an order.

```bash
curl "https://api.rh7proxys.com/v1/quote?product=residential&gb=20" \
  -H "Authorization: Bearer rh7k_your_key"
```

```json
{
  "success": true,
  "data": {
    "product": "residential", "gb": 20, "bonus_gb": 1, "total_gb": 21,
    "price_per_gb_brl": 6.95, "subtotal_brl": 139, "coupon_discount_brl": 0,
    "total_brl": 139, "total_card_brl": 143.87, "currency": "BRL"
  }
}
```

Parameters: `product` and `gb` are required. `coupon_code` is optional.

## Buy

`POST /v1/orders` requires the **Purchases** permission and the `Idempotency-Key` header: a new code for each purchase, such as a UUID. If the connection drops and you repeat the call with the same code, the API returns the same order and does not charge again.

```bash
curl -X POST https://api.rh7proxys.com/v1/orders \
  -H "Authorization: Bearer rh7k_your_key" \
  -H "Idempotency-Key: 6f1c2a90-3b7e-4f7a-9a51-2d0c8e6b1f44" \
  -H "Content-Type: application/json" \
  -d '{"product": "residential", "gb": 10, "mode": "rotating", "payment_method": "pix"}'
```

| Field | Required | What it is |
|---|---|---|
| `product` | Yes | `residential`, `mobile` or `rotativa_cpa` |
| `gb` | Yes | Amount of GB (for Rotativa CPA, one of the packages) |
| `mode` | No | `rotating` (default) or `sticky` |
| `payment_method` | No | `pix` (default) or `card` (+3.5%) |
| `coupon_code` | No | Discount coupon |
| `cpf` | No | CPF or CNPJ of the person paying the Pix. Empty uses the one on your account. |
| `full_name` | No | Name of the person paying (up to 120 characters) |
| `blocked_hosts` | No | Up to 100 websites blocked from delivery onward |

Pix response (201):

```json
{
  "success": true,
  "data": {
    "order": { "id": "uuid", "type": "new_proxy", "status": "awaiting_payment", "product": "residential", "total_gb": 10, "total_brl": 79.9, "proxy_id": null },
    "pix": { "copy_paste": "00020126...", "qr_code_base64": "data:image/png;base64,...", "expires_at": "2026-11-26T15:00:00Z" }
  }
}
```

With a card, you get `card.checkout_url` instead of `pix`: open that link so the person can pay.

## Check the payment

```bash
curl https://api.rh7proxys.com/v1/orders/ORDER_ID \
  -H "Authorization: Bearer rh7k_your_key"
```

This route checks the payment in real time. Poll it every 5 to 10 seconds while the status is `awaiting_payment` or `processing`.

| Status | Meaning |
|---|---|
| `awaiting_payment` | Waiting for payment |
| `processing` | Paid, creating the proxy |
| `delivered` | Ready. `proxy_id` has the proxy id. |
| `expired` | The Pix expired without payment |
| `failed` | Delivery failed. Support will fix it. |
| `cancelled` | Cancelled |

With the `proxy_id`, request the credentials at `GET /v1/proxies/{proxy_id}/credentials` (see [Manage proxies](https://rh7proxys.com/en/docs/api-proxies)).

## List orders

`GET /v1/orders?limit=20&offset=0` lists the orders made through the API, from newest to oldest. `limit` goes from 1 to 100.

## Top up a proxy

A top-up adds GB to the same proxy, with no change to the username and password. It is covered in [Manage proxies](https://rh7proxys.com/en/docs/api-proxies#top-up).
