Orders and chat
An order is paid before you ever see it: the payment provider holds the buyer's payment, you accept within thirty minutes, deliver within twice your promised time (never less than an hour), and the buyer confirms (or three days pass). Freeport then authorises release of the seller's proceeds into a pending balance. Your software's job is the middle: hear about it, accept it, deliver it, and talk to the buyer if needed.
Hearing about it
Three ways, from best to worst:
- Webhooks. Subscribe to
order.paidand the rest; the body carries the order exactly asGET /v1/orders/{id}returns it. See Webhooks. - The change token.
GET /v1/orders/changesanswers with anETag. Poll it withIf-None-Matchevery few seconds: a 304 costs nothing on either side, a 200 means something moved and it is time to read the feed. Never poll the feed itself in a loop. - The feed.
GET /v1/orders?state=paidpages your book newest first;?updated_since=walks everything that changed after a moment, oldest first, for a catch-up after downtime. The moment is RFC 3339, with seconds and eitherZor an offset written with its colon (2026-10-06T12:00:00Z);+0100and a time without seconds are refused.
What an order carries
An order says what was sold as it read when it was bought: the title, the unit, the description and the facts come from the order, and editing the listing afterwards changes none of them, nor the delivery deadline, which is worked out from the delivery time the buyer was promised.
Everything a deliverer needs and nothing they do not: the listing and your external id for it, the quantity, the realm with its region and faction, the buyer's character name, or on a top-up their player id (buyer.player_id) and, where the delivery method takes one, the zone or server number that goes with it (buyer.zone_id), the money split (subtotal, your fee, your net), the deadlines, the state and the sequence number of the last event (last_event_seq). Sequence numbers run in one series across the whole platform, so the gaps between one order's events are normal; only their order carries meaning. For an account order the buyer's credentials go through POST /v1/orders/{id}/credentials, encrypted, never through chat.
The three moves
POST /v1/orders/{id}/accept: you have seen it and will deliver. The buyer's payment, held on their card until now, is taken as you accept, and the delivery clock starts. If it cannot be taken (the hold ran out, or the payment provider refused it), the order ends and the answer is 409payment_not_taken. A paid order nobody accepts within 24 hours of payment is cancelled and the buyer's payment released (order.cancelled, reasonnot_accepted).POST /v1/orders/{id}/deliver: the goods are with the buyer. Their confirm clock starts. On an account order the credentials must be stored first.POST /v1/orders/{id}/decline: you cannot fill it. The hold on the buyer's payment is released, so they are not charged, and your stock is restored. Say why with areason:no_stock,price_mistake,cannot_deliver,buyer_askedorother, and withotheranoteof 10 to 500 characters in your own words. A decline without a reason is refused with 400validation_failed.no_stockalso takes the listing off sale until you put it back. Every decline is counted in your reliability figures, whatever the reason, and one is still better than letting an order run out. Orders left to run out pause your listings, and so does declining several paid orders in a short time, which also puts your account in front of our team for review.
Every move answers with the order after it. A move the state machine forbids is a 409 with illegal_transition; the order's current state is in the body, so a tool that raced a buyer's cancel learns what happened in one round trip.
Chat
GET /v1/orders/{id}/messages is the thread, oldest first; POST adds your words. The buyer's and the system's messages arrive as order.message events, never your own. Chat is read by staff during a dispute, and is scanned for attempts to move a trade off the platform, so keep it to the delivery.
Disputes and refunds
A buyer who did not receive what they paid for opens a dispute; you receive order.disputed with the case and the time you have to answer it, then order.dispute_resolved with the outcome. Which event comes with it depends on where the payment went. Back to the buyer in full (outcome: "buyer"): order.refunded, and the stock is restored. To you (outcome: "seller"): order.completed. Divided between you (outcome: "split"): neither. The order becomes partially_refunded, and a tool that follows the money by order.refunded and order.completed alone never hears of a split. Whichever way it ends, the system's line in the chat saying so arrives as order.message. Your software can do more than know: it can put your side on the record, refund in full, and agree a settlement with the buyer, all covered in Disputes. A farm with a dispute rate is a farm that is about to be asked about it, and one that answers inside the window is asked less.
Following the money
GET /v1/me/balance is what the ledger says now: available, which you can withdraw, and pending, which is held while orders complete and the payout hold runs. GET /v1/balance/transactions lists what moved it, newest first, one line to a movement in the shape of Stripe's balance transactions: type, amount, fee, net, status (pending or available), available_on, created and the source it is for: an order or a withdrawal, or a refund's or a chargeback's own id on a line posted under it. A sale is credited as pending with the commission and the payout fee as its fee; when its hold ends, one line takes the money out of pending and one puts it into available; a withdrawal is a negative line, and its refusal or failure gives the money and its fee back. When Freeport adds to a small balance so it can be paid out, that is a line of its own, payout.topped_up, with no fee. The net of every line adds up to available plus pending. GET /v1/withdrawals is the other half: the withdrawals you have asked for, newest first, a page at a time like the other lists (limit, cursor, next_cursor). It needs payouts:read, a scope of its own because it shows where you are paid.
Each row is what the Payouts page shows: amount (what left your available balance when you asked), fee (0.00 on a withdrawal of your sales to your bank, which the payout fee on each sale pays for, and what a withdrawal of partner commissions cost), net (what you receive), destination_hint (where it goes, masked, never the address), state, once it is sent provider_ref, and filed_for: null where you asked for it, unwithdrawn where Freeport filed it for sales you had not withdrawn 75 days after they were paid, and closing for the last payout before an account is erased. A withdrawal that is requested or approved is still open. One paid to your bank is sent while it is on its way, then paid, or returned if your bank sends it back, which puts the money back in your balance; one paid by hand ends sent. rejected and failed are final and have put the money back in your balance, with reason saying why where there is one to give. The API reads and nothing more: you ask for a withdrawal on the Payouts page, and no key can start one or change where you are paid.