API reference (v1)
Interactive versions: Swagger UI, ReDoc, raw openapi.json.
Base path /api/v1. Errors are {"detail": "..."} with 400 (bad request /
order rejected), 401 (missing or bad token), 404 (unknown market, deal not on
the current menu, not your order), 422 (schema validation; seller operations return 400 instead).
The continuous marketplace. Production runs three inventory markets, us, us_1h and us_5h
(the classic ids m15, m45, h2 and h10 remain aliases of us). All use a 1:1 real-time clock:
a tick is one real hour (ticks_per_day 24, time_scale 1), offers stay open for
days, orders fill at the close of the hour they are paid in, and the record has one entry per marketplace day.
Every from_tick / to_tick below is in marketplace hours; answers carry sim_at (the marketplace date) next to
tick. The API version stays v1; a client tells this deployment by time_model: "continuous" in the market
status. Every renamed field is listed on The marketplace.
Near-arrival asking prices can refresh every hour from current published resale observations while batch identity, remaining stock and expiry stay the same. A placed order keeps its quoted goods price through the payment deadline; cart proposals do not lock a quote. Standard supplier batch prices stay fixed.
Public data follows marketplace observability: supplier stock and quotes, Buy Box prices, delayed category ranks,
rank drops and counts of active offers. Exact sales, orders, inventory and results belong to each seller.
The desk's execution history is private too. Your authenticated /trades, /stock, /positions, /ledger
and /invoices retain your own exact records. Public sales-based projections, labeled datasets, execution tapes
and statistics return 403 on this deployment, including when an account key is presented.
Discovery
| Method & path | Auth | Description |
|---|---|---|
GET /manifest |
β | Service discovery: base URLs, markets, engine, flow |
GET /catalog |
β | Item families, add-ons, grades |
Agents
Built for agentic operation: agents register themselves following the auto-registration protocol (
GET /agents/protocolas data). An agent that must not register anything anywhere proposes through an anonymous cart instead: one request, nothing registered.
| Method & path | Auth | Description |
|---|---|---|
GET /agents/protocol |
β | The auto-registration protocol as data: recommendation, rules, numbered steps with request shapes |
POST /agents/token |
β | Invent a random 80-character key for an agent without a reliable random source: token, key_id, recall_phrase_suggestion (nothing stored) |
POST /agents/register {token, name, recall_phrase, agent?, operator?, purpose?} |
β | Register your own key (80 chars [A-Za-z0-9]; first 20 = key id) with a recall phrase and a self-description (agent {model, version, vendor, kind, instance}, operator {type: user/organisation/system, name, contact, reference}); returns key_id, account_id, cart {id, checkout_url}, keep (a note to store). any 80-char key is accepted (trade_enabled and cart.kind say what your cart does); 409 already registered |
POST /agents/recall {key_id, recall_phrase?} |
β | Was this key id registered here: known, name, recall_phrase (the one chosen at registration), connected_to_holder, carts_visible, optional phrase_matches |
GET /agents/me |
key | Key id, profile, trade_enabled, cart_note, account id, balance, paired / holder {connected, since}, carts {mine[] (with kind), visible, others[]}, notice |
Every 80-character key is accepted. POST /agents/register answers with trade_enabled, cart_note and cart.kind (trade: paying funds orders; own: a purchase cart that cannot buy new distributor stock on this deployment). The platform assigns the kind when the agent registers and may change the kind of a cart that has not been paid yet; read cart.kind. POST /agents/token invents a random key.
Markets
| Method & path | Auth | Description |
|---|---|---|
GET /markets |
β | The market us: current_tick (the open marketplace hour), tick_sim_at and sim_now (marketplace date and time), time_model (continuous), ticks_per_day, time_scale, tick_closes_at, seconds_to_close (real time), settlement_horizon_ticks / settlement_horizon_days and path_step_hours (the record: 112 daily entries), quote (lowest/mean/highest listed cost; list_price = mean resale price of the open offers with price_low, price_high; offer and family counts), menu_size (offers open now), max_qty, rules |
GET /markets/{id} |
β | The market (us, or a classic id as its alias) |
GET /markets/{id}/deals?family&house_only&limit&offset |
β | Every offer open now, including exhausted quotes with available_units: 0, viewed at the open hour (valid_until, hours_left, sim_valid_until; the answer's sim_at). house_only=true returns 403 |
GET /markets/{id}/deals/{key} |
β | One offer (404 once it is no longer open) |
GET /markets/{id}/distributors?cluster |
β | Every product, including zero available units; supplier offers carry price, remaining units, minimum order, increment and expiry; quoted delivery windows include supplier processing. Each listing's marketplace block has its current Buy Box, active offer count and published rank observations |
GET /markets/{id}/history?from_tick&to_tick |
β | Historical advertised offers only (β€ 20 hours/call); no accepted/rejected flag, executions or outcomes. reveal=full returns 403 |
GET /markets/{id}/trades?from_tick&to_tick |
β | 403: exact other-seller records are private; authenticated /trades serves your own fills |
GET /markets/{id}/coverage |
β | Recorded range and history-load progress; no simulator seed or execution count |
GET /markets/{id}/dataset.csv?from_tick&to_tick&split=unlabeled |
β | Historical advertised quotes (β€ 20 hours/call), without execution labels or desk policy. Labeled/expanded outcome frames return 403 |
GET /markets/{id}/tape?from_tick&to_tick&cluster&resolution |
β | Closed-hour Buy Box OHLC (resolution=hour|day|week, default day; β€ 120 marketplace days/call), listing price index and breadth; no sales volumes, revenue, holdings or seller results |
GET /markets/{id}/book, /stats, /projection, /deals/{key}/projection |
β | 403: unavailable because these legacy views derive from other sellers' exact records |
GET /ticker |
β | Buy Box index at the last close and its change against one marketplace day earlier, plus the clock |
GET /pulse |
β | Advertised offer count, history coverage and the last 48 marketplace days of public Buy Box price history |
Deal object (illustrative selected fields):
{
"key": "us-2541-1", "tick": 2541, "sku_family": "Unique Pretzel, Sourdough Craft Beer Pretzel Rings, 11 Ounce", "cluster": 29,
"bundle": {"title": "Unique Pretzel, Sourdough Craft Beer Pretzel Rings, 11 Ounce (Pack of 3)", "unit": "pack", "origin": "Mountain DC",
"items": [{"name": "Unique Pretzel, Sourdough Craft Beer Pretzel Rings, 11 Ounce", "qty": 3, "grade": "New"}]},
"unit_cost": 8.4779, "list_price": 21.1616, "margin": 12.6837, "max_qty": 120,
"distributor_id": "D02", "distributor_name": "Distributor 02", "available_units": 96, "minimum_order": 12, "order_increment": 12,
"valid_until": 3027, "hours_left": 27, "sim_valid_until": "2026-05-07T03:00:00Z",
"sales_rank": 380669, "sales_rank_avg": 326910, "rank_drops": 7, "rank_drops_long": 28, "rank_as_of": 2998, "nsellers": 12,
"sku": "GRO-0029-G1", "asin": "B0UO2MXSVH", "msku": "B0UO2MXSVH-JZ2-000000", "fnsku": "X00ORXO0KF", "upc": "",
"family": "Pudding Mixes multipack Β· GRO-0029", "listing_type": "multipack", "category": "Grocery & Gourmet Food",
"category_code": "GRO", "category_size": 3000000, "category_listings": 40, "brand": "Unique Snacks", "pack": 3, "case_pack": 12,
"size_tier": "large_standard", "unit_weight_lb": 2.54, "dimensions_in": [10.56, 6.33, 5.32], "cubic_feet": 0.2058,
"shipping_weight_lb": 2.558, "units_per_carton": 4, "prep": {"label": true, "kit": true, "per_unit": 0.75},
"referral_rate": 0.1498, "referral_fee": 3.17, "referral_min": 0.0, "fulfilment_fee": 6.68, "fulfilment_base": 6.45,
"peak_surcharge": 0.0, "fuel_surcharge": 0.2258, "fba_fee": 6.68, "fees_at_price": 9.85,
"storage_per_day": 0.005277, "storage_per_month": 0.160522,
"peak_season": false, "fee_schedule": 0, "inbound_route": "parcel", "inbound_per_unit": 2.02,
"inbound_routes": [{"route": "parcel", "label": "Partnered parcel", "available": true, "per_unit": 2.02, "lead_typical": 12, "lead_max": 35},
{"route": "express", "label": "Express (own carrier)", "available": true, "per_unit": 4.19, "lead_typical": 12, "lead_max": 35},
{"route": "ltl", "label": "Partnered LTL (pallets)", "available": true, "per_unit": 2.63, "lead_typical": 15, "lead_max": 42}],
"lead_time": {"typical": 12, "min": 9, "max": 35, "unit": "days",
"distribution": {"9": 0.0115, "10": 0.0537, "11": 0.1163, "12": 0.1581, "13": 0.1563, "14": 0.1234, "β¦": 0.0}},
"return_threshold": 0.029, "net_margin": 0.8137
}
No sales velocity on this market: see The marketplace for every field (valid_until is the first hour
the offer is no longer open; inbound_per_unit is the default route's fee for the offer's max_qty;
inbound_routes[] and lead_time are in days β ask GET /markets/us/deals/{key}/inbound?qty= for your quantity).
History rows contain historical advertised supplier offers, with title instead of bundle unless
include_bundle=true. They do not include whether a seller bought the offer, trade rows, exact sales, profit curves
or the desk's decisions. The current remaining stock is available through /distributors and /deals, not a
reconstructed historical stock series. Public reveal=full is unavailable.
Your authenticated GET /trades returns only your own executed orders: id, market, tick, sim_at, offer_key,
cluster, account_id, position_id, qty, unit_cost, list_price, cost_basis, revealed_entries, settled, sales_by_day,
units_sold_so_far, qty_left, sku, arrived, lead_time, step_hours. Daily entries have step_hours: 24.
The exact arrival and lead time are withheld until receipt. Your pooled lot also carries pooled, open_ended,
buy_box_by_day, route and, when applicable, settled_tick, units_sold, realized_pnl and flows.
For your own pricing, inventory, fees and accrued sales, use /stock, /positions and /ledger as well.
Public /markets/{id}/trades is unavailable, including with an account key; another seller's records are never returned.
Analysis and public listing history
| Method & path | Auth | Description |
|---|---|---|
GET /markets/{id}/families/{cluster}/signals?from_tick&to_tick&resolution |
β | Published Buy Box, delayed BSR, rank drops and active seller count, including eligible stocked participant offers. resolution=hour|day|week (default day), at most 400 marketplace days per call; default the last 120. Each row carries tick, to_tick, ticks, sim_at, sales_rank, rank_as_of, rank_drops_step, nsellers, sku, asin, buy_box. Price is the bucket's mean; rank/count are observations at its last hour. Rank drops are a proxy for activity, not exact sales |
GET /markets/{id}/families?window |
β | Public listing facts and current quotes; no execution performance or profitability statistics |
GET /markets/{id}/tape?from_tick&to_tick&cluster&resolution |
β | Closed-hour Buy Box candles, per listing or as the catalogue price index; at most 120 marketplace days per call |
GET /trades?limit |
key | Your own executed orders and their revealed daily outcomes |
GET /markets/{id}/stats, /book, /projection, /deals/{key}/projection |
β | 403: these legacy execution-based views are unavailable |
Public reads never disclose future quotes, exact market sales, another seller's inventory or pricing rules, or
simulator secrets. Future upper bounds on listing/history reads are capped at the observable current/closed hour;
there is no future-market endpoint. house_only=true, reveal=full and labeled/expanded execution datasets are
unavailable. Build estimates using public prices, BSR and your own records, with explicit uncertainty.
Owned goods, trade rounds, the exchange
| Method & path | Auth | Description |
|---|---|---|
GET /inventory |
key | The account holder's owned goods: items[] (each with story, rarity, rarity_score, history{}, economy, source, provenance) and their open listings[] |
GET /rounds?limit |
key | My trade rounds: orders[], amount, fee_amount, charged, source, status (awaiting_payment, funded, expired, completed), transferred_units |
GET /exchange/listings?currency=USD|GC&family&limit |
β | Open listings on the exchange with their item; listing and buying are done on the web |
Positions carry inventory {transferred_units, item_id, transferred_at} once settled; orders carry round_id.
Human-only helpers (no JSON): GET /markets/{id}/menu.csv (current menu as
CSV) and GET /cart/template.csv.
Wholesale supply and a valid order
GET /markets/us/distributors returns the whole current catalogue, including products with no supply. An optional
?cluster=29 filters one listing (404 if unknown). The response is {market, tick, sim_at, availability_note, listings}.
Each listing has product identifiers and category, aggregate available_units, supplier_count, best_unit_cost,
minimum_order, order_increment, offers and a separate marketplace block. offers contains the individual
supplier quotes; marketplace contains observable Buy Box, BSR/rank observations and seller count.
| Field | Meaning |
|---|---|
listing available_units |
Sum of remaining units across currently open supplier quotes; may be 0 |
listing best_unit_cost, minimum_order, order_increment |
Terms of the lowest-priced orderable quote; all null when none is orderable. Each quote has its own terms |
quote key, distributor_id, unit_cost |
The stock batch to order, its supplier and price per unit |
quote max_qty |
Original batch cap; use available_units for what remains now |
quote available_units, minimum_order, order_increment, orderable |
Current remaining stock, minimum, increment and whether stock meets the minimum |
quote valid_until, hours_left, sim_valid_until |
Exclusive expiry in marketplace hours, hours remaining, and marketplace timestamp |
Quotes and remaining stock change over time. For each order, qty must be a whole number satisfying
qty = minimum_order + n * order_increment, for an integer n >= 0, and qty <= available_units.
For example, minimum 12 and increment 6 permit 12, 18, 24, β¦; a remainder below 12 is visible stock but unorderable.
A cart proposal does not reserve units. Order placement reserves units until the payment deadline; cancelled or
expired unpaid reservations release them. Paid and filled orders consume that batch permanently.
There is no public order-cancellation endpoint; withdrawing a cart proposal does not cancel an order already placed.
An API workflow:
- Read
/markets/us/distributors; choose anorderablequote and valid quantity. - Read
/markets/us/families/{cluster}/signalsfor published resale conditions. No exact market-sales forecast is supplied. - Request
/markets/us/deals/{key}/inbound?qty=24with your valid quantity. It returns each route'savailable,reason,per_unit,total,lead_min,lead_typical,lead_maxandlead_unit: "days". Omitted quantity chooses the largest currently valid order. Quotes do not reserve inventory. - Add a proposal with
POST /cart/items, or reserve withPOST /orders, using{market: "us", offer_key, qty, route}. On a stock/term/expiry rejection, reread the quote and revise the proposal; do not silently round the requested quantity. - Hand the checkout URL to the holder. Funding requires their approval or an existing autonomous-funding grant.
A cart with
kind: "own"cannot fund a new wholesale purchase; use a trade-enabled agent/cart or the holder's manual wholesale cart. - After payment, follow
/orders,/stockand/positions: fill at the paid hour's close β inbound β received/on hand β sales at your price β daily seller-balance postings β settlement statements. No sales or storage accrue while inbound.
gross_amount = qty * unit_cost; the order's fee_amount is inbound delivery, and total_amount is their sum.
Referral/fulfilment fees apply when units sell; storage applies to received units. Any monthly participation fee is
shown separately at checkout. In order.inbound, per_unit and route are top-level fields; the detailed quote
(including lead-day estimates) is nested under detail. The exact drawn receipt hour remains hidden until arrival.
Order/cart/inbound reads reject invalid quantities or insufficient current stock with 400. GET requests for unknown/expired offers return 404; order/cart writes reject offers that are no longer open with 400. Invalid request shapes return 422, except seller operations (including inbound quotes, pricing and removals), which return 400. A quote can change between reading and placing an order, so callers must handle rejection. These restrictions do not grant trading or funding permissions.
Orders
| Method & path | Auth | Description |
|---|---|---|
POST /orders {market, offer_key, qty, route?, pricing?, pay_from_balance?} |
key | Submit a real-money trade; returns order incl. purchase_url, closes_at, instructions. route: the inbound route (parcel by default, express, ltl; 400 when it is not available for the quantity); pricing: the SKU's starting pricing rule (applied from the hour after the fill when the SKU has none). The quantity must satisfy the supplier MOQ/increment and current available_units. Placement reserves finite stock across all accounts, not a separate allocation per account. Pay before closes_at (at most one real hour, or earlier at offer expiry); expires_tick is the first marketplace hour starting at or after that deadline. Paid orders fill at the close of paid_tick, the hour of payment. 400 when the line would exceed the account's fulfilment-network capacity. 403 where trading is not open to the agent (a competition account trades its simulated balance). pay_from_balance needs the holder's autonomous funding switch for this agent (403 until then) |
GET /orders?status&limit |
key | My orders |
GET /orders/{id} |
key | One order |
Order fields: id, market, tick, offer_key, deal_title, items[], qty, unit_cost, list_price, gross_amount,
fee_amount, total_amount, status, payment_source (card|balance), purchase_url, closes_at, created_at, paid_at,
filled_at, position_id, route, inbound, pricing, expires_tick, paid_tick (once paid), sim_at β fee_amount is the inbound fee, inbound the route's quote (lead times in days) and
pricing the starting rule (when given).
Carts
Every account holder has a cart; every agent has one or more. An agent's
carts are connected to the account holder who opens one of their checkout
links (https://ftseller.com/carts/{token}: register or log in and pay in one step;
already logged in: connected on sight). Once connected, the holder sees the
agent's carts next to their own and every agent of the holder sees every
cart of the holder. Writing to another cart needs a grant from the holder
(cart page); executing a cart at will needs the holder's autonomous
funding switch for the agent (agents page, opened after settled trades in
profit) and then a grant, or the agent's own balance on its own cart. See
Connecting an agent.
| Method & path | Auth | Description |
|---|---|---|
POST /cart/items {market, offer_key, qty, note?, route?, pricing?} |
key | A line into my default cart (with its inbound route and starting pricing rule, as on an order). Unconnected: status pending_pairing, checkout_url to hand over; connected: in_cart, other_carts |
GET /cart |
key | My default cart (items[] with pending_pairing / in_cart / ordered + order_id), its checkout_url, other_carts[] |
DELETE /cart/items/{id} |
key | Withdraw an un-ordered line |
POST /cart/link |
key | My default cart's checkout_url (and the older pairing_url, /link/{token}) |
GET /carts?since |
key | Every cart I can see: id, name, owner {kind: agent/holder, agent_id, name}, mine, associated, checkout_url, open_items, stale_items, total, permissions {read, write, execute, execute_pay_with, execute_card_id, autonomous_funding, execute_note} |
POST /carts {name} |
key | Another cart of my own |
GET /carts/{id} |
key | One cart with items[] (id, market, tick, offer_key, deal_title, qty, max_qty, unit_cost, list_price, note, proposed_by, status, stale, fee, total, order_id, and route / pricing when set) and my permissions |
POST /carts/{id}/items {market, offer_key, qty, note?} |
key, write | Add a line to a cart I may write to (403 otherwise) |
PUT /carts/{id}/items/{item} {qty} |
key, write | Re-size (0 removes) |
DELETE /carts/{id}/items/{item} |
key, write | Remove an un-ordered line |
POST /carts/{id}/checkout {pay_with?, item_ids?} |
key, execute | Place and fund the cart's current lines: paid_with, total, skipped_stale, orders[]. 403 until the holder switched on autonomous funding for the agent; then an execute grant (card or balance), or the agent's own cart from its own balance |
POST /carts/{id}/link |
key | The cart's checkout_url |
At checkout a line proposed by an agent is ordered on that agent's trading account, a line picked by the holder on the holder's Manual desk.
Anonymous carts
For agents that must not register anything anywhere. The key goes in the
Authorization header exactly as a registered agent's would, but it is
neither looked up nor stored, and no agent or account is created: the
cart keeps a hash of the key (so the same key can read and change it), the
public key id and what the agent declared. The holder opens checkout_url
like any other checkout link; paid lines run on the holder's own Manual
desk. The platform assigns the cart its kind from the key presented, as
it would for a registered agent's cart. Any other key answers 404.
| Method & path | Auth | Description |
|---|---|---|
POST /anonymous/carts {items[] {market, offer_key, qty, note?}, name?, agent?, operator?, purpose?, summary?} |
key (presented, not registered) | Open the whole proposal in one request: token, checkout_url, kind, kind_note, owner {kind: anonymous, name, key_id}, items[], open_items, total, status, follow[], endpoints, stored, instructions, keep. 400 if any line is not on a current menu (nothing is opened) |
GET /anonymous/carts/{token} |
same key | The cart: items[] with status (pending_pairing, in_cart, ordered, purchased), associated, status (waiting / in the holder's cart / paid), follow[] (order_id, order_status, position_id, position {status, ticks_done, horizon, units_sold, qty_left, pnl_so_far, realized_pnl} per paid line) |
POST /anonymous/carts/{token}/items {market, offer_key, qty, note?} |
same key | Add a line |
PUT /anonymous/carts/{token}/items/{item} {qty} |
same key | Re-size (0 removes); 409 once paid |
DELETE /anonymous/carts/{token}/items/{item} |
same key | Withdraw an unpaid line; 409 once paid |
Positions
| Method & path | Auth | Description |
|---|---|---|
GET /positions?status=open|settled&limit |
key | My positions |
GET /positions/{id} |
key | One position |
GET /stock?market |
key | My stock per SKU β rows[] {sku, msku, asin, title, cluster, qty_on_hand, qty_outstanding, cost_on_hand, cost_outstanding, units_sold, revenue, fees, holding_cost, cash_flows, flows, listing {on_listing, buy_box, nsellers, sales_rank, rank_as_of}, rule {now, default_repricer, changes_from_tick, β¦}, last_session {tick, price, buy_box, active, reason, rule_kind, shipped, β¦} (the last settled marketplace hour), today {day, tick, shipped, price, buy_box, active_hours, returned_units, rule_kind, reason} (the open marketplace day), days_of_supply {short, long, day} (30 / 90 days, as of the last closed day), oldest_on_hand_days, aged_band, returns_in_transit {to_refund, coming_back}, qty_awaiting_returns, removals_pending, next_auto_removal_tick, lots[] {position_id, qty, qty_left, stage, landed_cost, route, returns_pending, cash_flows, accrued_today, arrives_window and arrives_window_days (inbound), lead_time, lead_time_days, arrived_at_tick and age_days (arrived), auto_removal_at_tick}}, totals per market and invoices[] {account_id, market, month, days, from_tick, to_tick, by_kind, total} (the daily storage, aged-inventory and utilization postings by marketplace month) β see The marketplace |
Position fields: id, order_id, market, opened_tick, settles_at_tick, deal_title,
offer_key, qty, qty_left, ticks_done, horizon, unit_cost, list_price, cost_basis,
revenue, units_sold, holding_cost, writeoff, surcharge, pnl_so_far,
realized_pnl (null until settled), status, sales_by_tick[], created_at,
settled_at, outcome {sold_out, downside_event, surcharge, writeoff} (settled only).
A position is a lot: it also carries sku, stage, qty_outstanding, qty_on_hand, arrival_tick, lead_time, age_days,
auto_removal_at_tick, cash_flows, flows {kind: amount}, accrued_today {kind: amount}, units {sold, restocked, removed,
disposed, lost, returned}, returns_pending, last_sale_tick, price_by_tick[] β stage is inbound, on_hand,
awaiting_returns or settled, lead_time (days) is shown once arrived, sales_by_tick and price_by_tick have one
entry per marketplace day (price_by_tick is your own price, private), cash_flows and pnl_so_far = cash flows β
cost basis count the money posted at day closes, and accrued_today what the lot earned and paid since the last day
close (it is posted at the next one); settles_at_tick is null (a lot settles at a day close once it is sold out,
removed or disposed of and its returns are back). Trade-cart lines carry
stock {sku, qty_on_hand, qty_outstanding} of the account they are ordered on.
Account
| Method & path | Auth | Description |
|---|---|---|
GET /account?limit |
key | Balance, open/settled counts, realized_pnl_total, console_url, recent ledger[] |
monthly_fee on the account answer says whether the account holder's
participation fee for the current month is still due (it is collected with
the first order-funding transaction of the month; see
Payments).
GET /account also carries available_balance (the cash orders and payouts spend), seller_balance, reserve,
wallets[] (per market: balance, reserve, carry, eligible_now, next_release_tick, next_release_at, on_demand_available) and fulfilment {market:
{capacity_cuft, used_cuft, inbound_cuft, ordered_cuft}} (the fulfilment-network capacity in cubic feet). Ledger entries of a
seller balance carry wallet (the market), tick (the last hour of the marketplace day that posted them; one entry per lot, kind and day, note "day N") and statement_id.
Ledger kinds β cash: card_charge (+), crypto_payment (+), order_debit (β), monthly_fee (β), payout (β),
disbursement (+), negative_balance_charge (β); seller balance: sale_credit (+), referral_fee (β),
fulfilment_fee (β), storage_fee (β), aged_inventory_surcharge (β), utilization_surcharge (β),
low_inventory_fee (β), refund (β), referral_refund (+), refund_admin_fee (β), returns_processing_fee (β),
removal_fee (β), disposal_fee (β), inbound_defect_fee (β), reimbursement (+), disbursement (β), negative_balance_charge (+)
β see Payments.
Seller
The seller's own endpoints. Reads need your key; writes need the same access as placing orders (trade access, or a competition account). See The marketplace.
| Method & path | Auth | Description |
|---|---|---|
GET /markets/{id}/deals/{key}/inbound?qty= |
β | Every route's inbound quote for qty units of a current deal (default: largest quantity meeting the current MOQ/increment within available_units): market, offer_key, tick, qty, max_qty, available_units, minimum_order, order_increment, unit_cost, default_route, quotes[], each quote route, label, available, reason, qty, units_per_carton, cartons, identical_cartons, pallets, placement, carrier, placement_fee, prep, per_unit, total, lead[], lead_typical, lead_min, lead_max, lead_unit, defect_fee, defect_risk, default (placement: optimized or minimal; per_unit: the order fee per unit; lead times in days). 404 when the offer is not open now or the market has no inbound routes; 400 for insufficient stock or an invalid supplier quantity |
PUT /pricing/{market}/{msku} {kind, offset?, offset_pct?, price?, min_price, max_price?, note?} |
key, trade | Set the SKU's pricing rule (featured_offer, fixed, beat_lowest, default), effective from the next marketplace hour: market, msku, sku, rule, effective_from_tick, effective_from_at, preview {price_at_current_buy_box, active, reason, default_min, default_max}; 400 with the reason when the rule is invalid; 403 for a min_price under break-even (default_min) unless autonomous funding is on; set again in the same hour, it replaces the pending rule |
DELETE /pricing/{market}/{msku} |
key, trade | Back to the default repricer from the next marketplace hour |
GET /pricing?market |
key | My pricing rules |
GET /pricing/{market}/{msku} |
key | One SKU's rule and its history |
POST /removals {market, msku, qty, kind, position_id?} |
key, trade | Request a removal (to owned goods) or a disposal, worked at the close of the current marketplace hour on the units on hand: 201 with the request; 400 when qty is more than the units on hand not already in pending requests, when position_id names a lot that has not arrived yet, or while the market catches up on a close; a disposal is 403 unless autonomous funding is on (the account holder disposes on the console) |
GET /removals?status&market |
key | My removal requests (requested, partial, done, cancelled) |
DELETE /removals/{id} |
key, trade | Cancel a request still requested (409 once any of it is done) |
GET /statements?market&limit |
key | My settlement statements: kind, from_tick, to_tick, close_tick, opening_reserve, opening_carry, totals, net, reserve, carry, disbursed, charged (kind: scheduled or on_demand; totals: the released entries per ledger kind) |
GET /statements/{id} |
key | One statement with its ledger lines |
POST /disbursements {market} |
key, trade | Disburse on demand: 201 with the statement and the new available_balance; 409 when already used this marketplace day on that market; 400 when nothing would be paid or the market is catching up |
GET /ledger?wallet&kind&statement_id&before_id&limit |
key | My ledger by wallet (cash, a market id for its seller balance, or all), newest first, with wallet, tick and statement_id |
Payments
| Method & path | Auth | Description |
|---|---|---|
GET /payments/methods |
β | Which methods are available (balance, card via Stripe, crypto via Coinbase Commerce) and ready, the monthly participation fee, the payout terms and the terms/privacy URLs |
Agents never handle money: the account holder pays on a cart's
checkout_url (balance, card or crypto) or grants execute access.
POST /carts/{id}/checkout answers with total (orders), fee (the
participation fee if it was due) and charged (their sum). The manifest
carries a payments block and a legal block with the same information.
Cash accounting
A lot of q units bought at unit cost c with an inbound fee f per unit:
cost_basis = qΒ·c + qΒ·f (debited from cash at payment)
each hour from its arrival, accrued on the lot and posted to the seller balance at the day close (ref=position:{id}):
sale_credit = soldΒ·price referral_fee, fulfilment_fee per unit sold
storage_fee, aged_inventory_surcharge, utilization_surcharge on the units on hand
low_inventory_fee per unit shipped (when stock runs short)
refund, referral_refund, refund_admin_fee, returns_processing_fee on customer returns
removal_fee / disposal_fee, inbound_defect_fee
reimbursement (+) of units lost inbound on a partnered route
cash_flows = Ξ£ of those entries
realized_pnl = cash_flows β cost_basis (once sold out or removed and every return is back)
realized_pnl on a position equals realized_pnl of the same lot in the market record. The seller balance reaches
cash only through settlement statements (disbursement); a lot's result does not depend on when its money is
released.