API reference
Read and update your workspace from your own tools: a spreadsheet, an accounting export, a Zapier or n8n flow. The machine-readable version is /api/v1/openapi.json (OpenAPI 3.1).
Authentication
An admin creates a key in Settings → API, read only or read and write. Send it as a bearer token on every call. A key belongs to the workspace, not to a person, and only works on that workspace's data.
curl https://your-vintscale/api/v1/items?status=IN_STOCK&limit=20 \ -H "Authorization: Bearer vsk_…"
Amounts are integer euro cents (1250 is 12,50 €), dates are ISO 8601. Lists return { data, hasMore, nextCursor }: pass nextCursor as cursor to read the next page. Items can be addressed by id or by reference (VET-00042).
Rate limits
Each workspace has a token bucket shared by all its keys: a burst of requests can go through at once, then the bucket refills at a steady rate. Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until full). Past the limit you get a 429 with Retry-After.
| Plan | Burst | Per minute |
|---|---|---|
| No subscription | 30 | 30 |
| Business | 300 | 300 |
Errors
Errors are JSON: { "error": { "code", "message", "details"? } }.
| 400 | invalid_request | A parameter or a body field is wrong; details lists each one. |
| 401 | unauthorized | No key, or a revoked or expired one. |
| 402 | limit_reached | A plan limit was reached (active items, for example). |
| 403 | forbidden | The key is read only and the call writes. |
| 404 | not_found | Nothing with this id in the key's workspace. |
| 409 | conflict | The change doesn't apply to the current state. |
| 429 | rate_limited | Out of requests: wait Retry-After seconds. |
Workspace
/api/v1/mescope: readCheck a key
The key, its workspace, plan and rate limit.
/api/v1/statsscope: readStock and profit
Stock on hand now, and sales and profit over a period (30 days by default, a year at most), with the same maths as the Finances page.
| Name | Type | Notes |
|---|---|---|
| from | date-time | Start of the period (default: 30 days ago). |
| to | date-time | End of the period (default: now). |
/api/v1/locationsscope: readList storage locations
Items
/api/v1/itemsscope: readList items
Newest first, paginated with `cursor`.
| Name | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100. Default 50. |
| cursor | string | The `nextCursor` of the previous page. |
| status | DRAFT | IN_STOCK | LISTED | RESERVED | SOLD | ARCHIVED | |
| q | string | Searches title, reference and brand. |
| tag | string | |
| locationId | string | |
| updatedSince | date-time | ISO 8601 date: only items changed since then. |
/api/v1/itemsscope: writeCreate an item
Gets the next reference (VET-…), counts toward the plan's item limit and runs “item created” automations.
JSON body
| Name | Type | Notes |
|---|---|---|
| title* | string | |
| brand | any | |
| category | any | |
| subcategory | any | |
| size | any | |
| color | any | |
| condition | any | |
| description | any | |
| purchasePriceCents | any | |
| targetPriceCents | any | |
| minPriceCents | any | |
| purchasedAt | any | |
| supplier | any | |
| purchaseUrl | any | |
| supplierSku | any | |
| lot | any | |
| locationId | any | |
| quantity | integer | |
| tags | string[] | |
| notes | any |
/api/v1/items/{itemId}scope: readGet an item
| Name | Type | Notes |
|---|---|---|
| itemId* | string | Item id or reference (VET-00001). |
/api/v1/items/{itemId}scope: writeUpdate an item
Send only the fields to change.
| Name | Type | Notes |
|---|---|---|
| itemId* | string | Item id or reference (VET-00001). |
JSON body
| Name | Type | Notes |
|---|---|---|
| title | string | |
| brand | any | |
| category | any | |
| subcategory | any | |
| size | any | |
| color | any | |
| condition | any | |
| description | any | |
| purchasePriceCents | any | |
| targetPriceCents | any | |
| minPriceCents | any | |
| purchasedAt | any | |
| supplier | any | |
| purchaseUrl | any | |
| supplierSku | any | |
| lot | any | |
| locationId | any | |
| quantity | integer | |
| tags | string[] | |
| notes | any | |
| status | DRAFT | IN_STOCK | LISTED | RESERVED | SOLD | ARCHIVED |
Listings
/api/v1/listingsscope: readList listings
Vinted listings and drafts. Publishing stays in the app and the extension.
| Name | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100. Default 50. |
| cursor | string | The `nextCursor` of the previous page. |
| status | DRAFT | READY | PUBLISHED | SOLD | ARCHIVED | UNAVAILABLE | |
| itemId | string |
/api/v1/listings/{listingId}scope: readGet a listing
| Name | Type | Notes |
|---|---|---|
| listingId* | string | Listing id. |
Sales
/api/v1/salesscope: readList sales
Newest first, paginated with `cursor`.
| Name | Type | Notes |
|---|---|---|
| limit | integer | Page size, 1 to 100. Default 50. |
| cursor | string | The `nextCursor` of the previous page. |
| status | TO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLED | RETURNED | |
| from | date-time | ISO 8601 date: sold on or after. |
| to | date-time | ISO 8601 date: sold on or before. |
| itemId | string |
/api/v1/salesscope: writeRecord a sale
Sells one unit: stock goes down, the listing closes with the last unit, the cost is snapshotted and “item sold” automations run.
JSON body
| Name | Type | Notes |
|---|---|---|
| itemId* | string | Item id or reference (VET-00001). |
| salePriceCents* | integer | |
| feesCents | integer | Default 0. |
| shippingCostCents | integer | Default 0. |
| purchasePriceCents | any | Fills the item's purchase price if it has none. |
| soldAt | date-time | Default: now. |
| buyer | string | |
| notes | string | |
| status | TO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLED | Default "TO_SHIP". |
/api/v1/sales/{saleId}scope: readGet a sale
| Name | Type | Notes |
|---|---|---|
| saleId* | string | Sale id. |
/api/v1/sales/{saleId}scope: writeChange a sale's status
Returns are recorded in the app, since they decide whether the item goes back into stock.
| Name | Type | Notes |
|---|---|---|
| saleId* | string | Sale id. |
JSON body
| Name | Type | Notes |
|---|---|---|
| status* | TO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLED |