Open API

Open REST APIs and pre‑built connectors for SAP, Oracle, QuickBooks, Xero, and other ERP/accounting systems, allowing seamless embedding of Vendex modules into existing enterprise workflows.

API Overview

Base URLs:

Sandbox: https://sandbox-api.getvendex.com/v1
Production: https://api.getvendex.com/v1

Authentication:

All API requests require authentication using API keys:

Authorization: Bearer {YOUR_API_KEY}

Obtaining API Keys:

  1. Navigate to Settings > Security > API Keys

  2. Click "+ Generate New Key"

  3. Provide key name

  4. Set permissions level

  5. Copy key (shown once only)

  6. Store securely

Request Format:

  • Content-Type: application/json

  • Accept: application/json

  • All dates in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ

Response Format:

Error Format:

Rate Limiting:

Plan
Requests/Hour
Requests/Day

Standard

1,000

10,000

Premium

10,000

100,000

Enterprise

Unlimited

Unlimited

Rate Limit Headers:

API Resources

Core Resources:

  • Invoices: Create, retrieve, update, send invoices

  • Orders: Manage order lifecycle

  • Customers: Customer management

  • Products: Product/service catalog

  • Payments: Payment tracking and reconciliation

  • FIRS: E-invoicing compliance operations

Invoices API

Create Invoice

Request Body:

Response:

Retrieve Invoice

Response:

List Invoices

Query Parameters:

Parameter
Type
Description

status

string

Filter by status: draft, pending, paid, overdue

customer_id

string

Filter by customer ID

from_date

date

Filter invoices issued after this date

to_date

date

Filter invoices issued before this date

limit

integer

Number of results (max 100)

offset

integer

Pagination offset

Response:

Send Invoice

Request Body:

Response:

Record Payment

Request Body:

Response:

Customers API

Create Customer

Request Body:

Response:

Retrieve Customer

List Customers

Orders API

Create Order

Request Body:

Response:

Update Order Status

Request Body:

Products API

Create Product

Request Body:

Response:

List Products

FIRS API

Validate IRN

Request Body:

Response:

Check Transmission Status

Response:

Report Fiscalization

Request Body:

Response:

Error Codes

Code
HTTP Status
Description

invalid_request

400

Request is malformed or missing required fields

authentication_failed

401

Invalid or missing API key

permission_denied

403

API key lacks required permissions

resource_not_found

404

Requested resource doesn't exist

duplicate_resource

409

Resource already exists (e.g., duplicate invoice number)

validation_error

422

Request data failed validation

rate_limit_exceeded

429

Too many requests, retry after rate limit resets

server_error

500

Internal server error

service_unavailable

503

Temporary service outage

Testing and Sandbox

Sandbox Features

  • Separate from production data

  • Test FIRS integration safely

  • No actual invoice transmission

  • Reset data anytime

  • Same API endpoints and authentication

Sandbox API Keys

Generate sandbox keys separately:

  1. Enable "Test Mode" toggle in Settings

  2. Generate API key

  3. Key works only with sandbox URL

  4. Prefix: sk_test_...

Production API Keys

  • Generate with test mode disabled

  • Prefix: sk_live_...

  • Only works with production URL

Transitioning to Production

  1. Complete integration in sandbox

  2. Obtain production FIRS credentials

  3. Generate production API keys

  4. Update API base URL to production

  5. Run smoke tests

  6. Monitor initial transactions closely

Last updated