Developers › Docs › API reference › List accounts
List accounts
Returns the marketplace accounts this token can publish to, with the exact target id to send for each. Call it before publishing.
curl "https://fluf.io/wp-json/fc/api/v1/accounts" \
-H "Authorization: Bearer fluf_pat_your_token"const res = await fetch("https://fluf.io/wp-json/fc/api/v1/accounts", {
headers: {
"Authorization": "Bearer fluf_pat_your_token",
},
});
const data = await res.json();import requests
res = requests.get(
"https://fluf.io/wp-json/fc/api/v1/accounts",
headers={
"Authorization": "Bearer fluf_pat_your_token",
},
)
data = res.json()<?php
// composer require guzzlehttp/guzzle
$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://fluf.io/wp-json/fc/api/v1/accounts', [
'headers' => [
'Authorization' => 'Bearer fluf_pat_your_token',
],
]);
$data = json_decode((string) $res->getBody(), true);{
"accounts": [
{
"id": "ebay:718",
"channel": "ebay",
"label": "your-ebay-handle",
"name": "eBay",
"currency": "GBP",
"store_url": "https://www.ebay.co.uk/usr/your-ebay-handle",
"auth_status": "valid",
"runs_in_browser": false
}
]
}Using the account id
Send id back verbatim as a target's account. It is {channel}:{connection_id}; a seller with two eBay accounts has two different ids, and they are not interchangeable.
You may also send channel plus connection_id, but account is the safer default because it is exactly what the API returned.
Accounts that need FLUF open
runs_in_browser: true means writes to that account come back queued and complete while the seller has FLUF open (the browser extension or the mobile app). Accounts that need FLUF open has the details.
Something missing? Email [email protected] — we prioritise by what people actually ask for.
