Skip to content
v1
REST
Connected to SRC

Docs for developers

Register sales, prepayments and refunds with the Armenian tax authority from any stack.

Base URLhttps://vcr.am/api/v1

Quick start

Register a sale with a single POST request.

bash
curl https://vcr.am/api/v1/sales \
  -H "X-API-KEY: $VCR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cashier": { "id": 1 },
    "items": [{
      "offer": { "externalId": "SKU-001" },
      "department": { "id": 1 },
      "quantity": 1,
      "price": 20000,
      "unit": "pc"
    }],
    "amount": { "nonCash": 20000 },
    "buyer": {
      "type": "individual",
      "receipt": { "email": "buyer@example.com", "language": "en" }
    }
  }'

Built for production integrations

REST over JSON
Stateless JSON endpoints you can call from any language, framework or runtime.
Typed Node.js SDK
End-to-end typed client on npm, ready to drop into your server code.
API-key authentication
Scoped, rotatable API keys managed from your dashboard.
Complete cash-register API
Sales, prepayments, refunds and receipts through a single consistent surface.

What your system must provide

Before integrating, make sure each sale carries the data SRC requires.

Classifier code
Commodity code for goods or activity code for services.
Measurement unit
kg, pcs, m², hour, service, work, etc.
Department ID
Where the sale is registered in your cash register.
Cashier ID
The person registering the sale.

Authentication

Every request must include your API key in the X-API-KEY header.

X-API-KEY: your_api_key

Generate and rotate API keys in your cash register settings.

Errors

Errors use standard HTTP status codes and a JSON body with the details.

StatusNameWhen it happens
400
Bad requestMalformed payload or schema validation failed.
401
UnauthorizedMissing or invalid API key.
403
ForbiddenAccess to this resource is not allowed for this key.
404
Not foundThe requested resource doesn't exist.
500
Internal errorUnexpected failure on our side. Retry with exponential backoff.

Continue building