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: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
Step 3: Create a Product
Step 4: Create a Fulfillment
Once an order is ready to ship:Step 5: Check Your Payout Summary
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:
- 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: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:| Status | Meaning | What to Do |
|---|---|---|
| 400 | Bad request (validation error) | Check the details field for which parameter failed |
| 401 | Token expired or missing | Re-authenticate with POST /authenticate |
| 403 | Insufficient scope | Your API key doesn’t have the required scope |
| 404 | Resource not found | Verify the ID exists and belongs to your vendor account |
| 429 | Rate limited | Wait and retry — limit is 100 requests/minute |
| 500 | Server error | Retry after a brief delay, contact support if persistent |
For AI Agents
This API is designed to be AI-agent friendly:- OpenAPI 3.1 spec available at
/docs/public/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