API version v1

Integration examples

Integration examples

Ready scenarios — catalog storefront, availability check, invoice export

Three common scenarios with code. Pass the key in the Authorization header everywhere — see authentication.

Catalog storefront

Show live items with prices and availability on your website. Data comes from the catalog and updates as things change.

curl "https://api.rentevio.ru/api/public/v1/equipment?limit=50&category_id=94b83f83-…" \
  -H "Authorization: Bearer rv_live_…"

Response:

{
  "success": true,
  "data": [
    {
      "id": "5268d91f-…",
      "name": "Shure SM58",
      "article": "AU-SM58",
      "unit": "pcs",
      "price_day": 800,
      "quantity_total": 12,
      "quantity_available": 9
    }
  ],
  "meta": { "total": 128, "page": 1, "limit": 50, "has_more": true }
}

To fetch the whole fleet, page through until has_more is false. Categories come from /equipment/categories.

Availability check for dates

Before accepting an external request, check whether the equipment is free for the dates you need. The method changes nothing — it is a safe check.

curl -X POST https://api.rentevio.ru/api/public/v1/equipment/check-availability \
  -H "Authorization: Bearer rv_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "equipment_ids": ["5268d91f-…"],
    "quantities": [2],
    "start_date": "2026-11-10",
    "end_date": "2026-11-12"
  }'
{
  "success": true,
  "data": [
    {
      "equipment_id": "5268d91f-…",
      "quantity_total": 12,
      "reserved_overlapping": 9,
      "available": 3,
      "requested": 2,
      "shortage": 0
    }
  ]
}

A shortage above zero means there is not enough equipment for the date window. To actually hold units for a project, use POST /projects/:id/reserve.

Invoice export

Pull invoices for a period and hand them to accounting. Without project_id the method returns every invoice of the company.

curl "https://api.rentevio.ru/api/public/v1/invoices?limit=100&offset=0" \
  -H "Authorization: Bearer rv_live_…"
{
  "success": true,
  "data": [
    {
      "id": "7c1a2b3c-…",
      "number": "INV-2026-0042",
      "issue_date": "2026-11-01",
      "total_amount": 48000,
      "amount_paid": 48000,
      "status": "paid",
      "currency": "RUB"
    }
  ],
  "meta": { "total": 214, "limit": 100, "has_more": true, "offset": 0 }
}

A document PDF is produced by POST /documents/:id/pdf, which returns a link to the file.

Keeping an integration robust

  • Retry failed POST/PATCH/DELETE with the same Idempotency-Key — no duplicates.
  • Tell codes apart: 401 is a key problem, 403 is missing scopes, 429 is rate limiting, 502 is a temporary failure to retry later.
  • Do not rely on field order and do not fail on new keys: compatible changes are added to the current version.
  • Cache rarely changing directories on your side so you do not spend the rate limit for nothing.
Was this helpful?