Developers › Docs › API reference › Mark as sold
Mark as sold
POST/wp-json/fc/api/v1/items/{vid}/mark-sold
Reports a sale FLUF doesn't see — your own storefront, a phone sale. Zeroes stock and delists every channel the product is currently live on.
There is no targets list here, unlike DELETE /items: a sale is singular, one unit is gone, so it cannot legitimately stay live anywhere else.
curl -X POST "https://fluf.io/wp-json/fc/api/v1/items/fluf_326428506_0/mark-sold" \
-H "Authorization: Bearer fluf_pat_your_token"const res = await fetch("https://fluf.io/wp-json/fc/api/v1/items/fluf_326428506_0/mark-sold", {
method: "POST",
headers: {
"Authorization": "Bearer fluf_pat_your_token",
},
});
const data = await res.json();import requests
res = requests.post(
"https://fluf.io/wp-json/fc/api/v1/items/fluf_326428506_0/mark-sold",
headers={
"Authorization": "Bearer fluf_pat_your_token",
},
)
data = res.json()<?php
// composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client();
$res = $client->request('POST', 'https://fluf.io/wp-json/fc/api/v1/items/fluf_326428506_0/mark-sold', [
'headers' => [
'Authorization' => 'Bearer fluf_pat_your_token',
],
]);
$data = json_decode((string) $res->getBody(), true);{
"vid": "fluf_326428506_0",
"fluf_id": 326428506,
"success": true,
"results": {
"ebay": { "success": true, "message": "Successfully marked as sold" },
"vinted": { "success": true, "message": "Successfully marked as sold" }
}
}Returns
results is keyed by channel — one entry per account the product was live on. 409 not_listed means the product wasn't live anywhere, so there was nothing to mark sold.
Something missing? Email [email protected] — we prioritise by what people actually ask for.
Esc
↑↓ to move↵ to openEsc to close
