Skip to main content

Overview

This guide walks you through making your first API calls. By the end, you’ll have listed your orders and created a product.

Prerequisites

  • A vendor API key (starts with vk_) — get one from your merchant or create one in Settings > API Keys
  • A tool to make HTTP requests: curl, Postman, Insomnia, or any programming language

Step 1: Authenticate

Exchange your API key for a JWT token:
Response:
Save the token value — you’ll use it for all subsequent requests. It expires in 24 hours. The permissions array shows which scopes your key has.

Step 2: List Your Orders

Response:

Step 3: Create a Product

Step 4: Create a Fulfillment

Once an order is ready to ship:

Step 5: Check Your Payout Summary

Response:

Common Patterns

Filtering

Most list endpoints support filters via query parameters:

Pagination

All list endpoints use cursor-based pagination. See the Pagination guide for details.

Exporting to CSV

Many endpoints have an /export variant that returns a CSV file:
Export responses can be:
  • 200 — CSV data streamed directly
  • 202 — Export queued (large datasets), check back later
  • 204 — No data matches your filters

Generating Documents

Each document type has its own endpoint — simple and clear:
All document endpoints return a temporary URL:

Postman / Insomnia

Download our ready-to-import collection:

Download Postman Collection

Import into Postman or Insomnia. Set your api_key variable and hit Authenticate — all other requests auto-use the token.

Error Handling

All errors follow the same format:
Common HTTP status codes:

For AI Agents

This API is designed to be AI-agent friendly:
  • OpenAPI 3.1 spec available at /resources/openapi.yaml — import it to understand all endpoints, schemas, and constraints
  • Consistent response format — every response has {success, data, error?}
  • Cursor-based pagination — no page drift when data changes
  • Scoped API keys — create keys with minimal permissions for your agent
  • Postman collection — auto-generates working requests for every endpoint