← VintScale

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.

PlanBurstPer minute
No subscription3030
Business300300

Errors

Errors are JSON: { "error": { "code", "message", "details"? } }.

400invalid_requestA parameter or a body field is wrong; details lists each one.
401unauthorizedNo key, or a revoked or expired one.
402limit_reachedA plan limit was reached (active items, for example).
403forbiddenThe key is read only and the call writes.
404not_foundNothing with this id in the key's workspace.
409conflictThe change doesn't apply to the current state.
429rate_limitedOut of requests: wait Retry-After seconds.

Workspace

get/api/v1/mescope: read

Check a key

The key, its workspace, plan and rate limit.

get/api/v1/statsscope: read

Stock 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.

NameTypeNotes
fromdate-timeStart of the period (default: 30 days ago).
todate-timeEnd of the period (default: now).
get/api/v1/locationsscope: read

List storage locations

Items

get/api/v1/itemsscope: read

List items

Newest first, paginated with `cursor`.

NameTypeNotes
limitintegerPage size, 1 to 100. Default 50.
cursorstringThe `nextCursor` of the previous page.
statusDRAFT | IN_STOCK | LISTED | RESERVED | SOLD | ARCHIVED
qstringSearches title, reference and brand.
tagstring
locationIdstring
updatedSincedate-timeISO 8601 date: only items changed since then.
post/api/v1/itemsscope: write

Create an item

Gets the next reference (VET-…), counts toward the plan's item limit and runs “item created” automations.

JSON body

NameTypeNotes
title*string
brandany
categoryany
subcategoryany
sizeany
colorany
conditionany
descriptionany
purchasePriceCentsany
targetPriceCentsany
minPriceCentsany
purchasedAtany
supplierany
purchaseUrlany
supplierSkuany
lotany
locationIdany
quantityinteger
tagsstring[]
notesany
get/api/v1/items/{itemId}scope: read

Get an item

NameTypeNotes
itemId*stringItem id or reference (VET-00001).
patch/api/v1/items/{itemId}scope: write

Update an item

Send only the fields to change.

NameTypeNotes
itemId*stringItem id or reference (VET-00001).

JSON body

NameTypeNotes
titlestring
brandany
categoryany
subcategoryany
sizeany
colorany
conditionany
descriptionany
purchasePriceCentsany
targetPriceCentsany
minPriceCentsany
purchasedAtany
supplierany
purchaseUrlany
supplierSkuany
lotany
locationIdany
quantityinteger
tagsstring[]
notesany
statusDRAFT | IN_STOCK | LISTED | RESERVED | SOLD | ARCHIVED

Listings

get/api/v1/listingsscope: read

List listings

Vinted listings and drafts. Publishing stays in the app and the extension.

NameTypeNotes
limitintegerPage size, 1 to 100. Default 50.
cursorstringThe `nextCursor` of the previous page.
statusDRAFT | READY | PUBLISHED | SOLD | ARCHIVED | UNAVAILABLE
itemIdstring
get/api/v1/listings/{listingId}scope: read

Get a listing

NameTypeNotes
listingId*stringListing id.

Sales

get/api/v1/salesscope: read

List sales

Newest first, paginated with `cursor`.

NameTypeNotes
limitintegerPage size, 1 to 100. Default 50.
cursorstringThe `nextCursor` of the previous page.
statusTO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLED | RETURNED
fromdate-timeISO 8601 date: sold on or after.
todate-timeISO 8601 date: sold on or before.
itemIdstring
post/api/v1/salesscope: write

Record 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

NameTypeNotes
itemId*stringItem id or reference (VET-00001).
salePriceCents*integer
feesCentsintegerDefault 0.
shippingCostCentsintegerDefault 0.
purchasePriceCentsanyFills the item's purchase price if it has none.
soldAtdate-timeDefault: now.
buyerstring
notesstring
statusTO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLEDDefault "TO_SHIP".
get/api/v1/sales/{saleId}scope: read

Get a sale

NameTypeNotes
saleId*stringSale id.
patch/api/v1/sales/{saleId}scope: write

Change a sale's status

Returns are recorded in the app, since they decide whether the item goes back into stock.

NameTypeNotes
saleId*stringSale id.

JSON body

NameTypeNotes
status*TO_SHIP | SHIPPED | DELIVERED | COMPLETED | CANCELLED