Roastnet Market API
List green coffee on the Roastnet Green coffee market from your own system, and hear about every sale the moment it happens.
curl https://network.roastnet.ai/api/market/v1/me \ -H "Authorization: Bearer $ROASTNET_KEY"
The API is built to be connected once and then left alone. Your system pushes its offer list on a schedule; Roastnet pushes every event back to your webhook; and if your server was down, your system pulls the event feed to catch up. Push and pull carry the same events with the same ids, so nothing depends on any single delivery.
Keys are created in the Developer page of your free Roastnet account, or in a paid workspace under Settings, API access, Market API. Upgrading changes nothing for your integration: the same keys and webhooks keep working, and keys made before the upgrade are listed in the workspace so you can revoke them there.
Every key sees the whole list; the For column says which kind of seller each call is for (a roaster, an importer, or a grower or exporter at origin). On a free account the API refuses a call your type does not make with 403 not_for_seller_type; a paid workspace's key is never refused by type. The same answer sits on each operation in the OpenAPI file as x-seller-types.
| Method | Path | What it does | For |
|---|---|---|---|
| GET | /me | Check your key | Roasters · Importers · Exporters |
| GET | /destination-markets | Destination markets open to growers | Exporters |
| PUT | /naming | Choose whether buyers see your name | Roasters · Importers |
| PUT | /sample-from | Set your default location (deprecated) | Roasters · Importers · Exporters |
| GET | /locations | List your locations | Roasters · Importers |
| POST | /locations | Add a location | Roasters · Importers |
| PUT | /locations/{id} | Edit a location | Roasters · Importers |
| DELETE | /locations/{id} | Remove a location | Roasters · Importers |
| GET | /warehouses | Your warehouses | Roasters · Importers |
| GET | /warehouses/{id} | One warehouse | Roasters · Importers |
| GET | /transfers | Stock transfers | Roasters · Importers |
| POST | /transfers | Transfer stock | Roasters · Importers |
| GET | /lots | List your lots | Roasters · Importers · Exporters |
| POST | /lots/sync | Send your whole offer list | Roasters · Importers · Exporters |
| PUT | /lots/{reference} | Create or update a lot by your reference | Roasters · Importers · Exporters |
| DELETE | /lots/{reference} | Withdraw a lot | Roasters · Importers · Exporters |
| GET | /lots/{reference}/fill | How much of a lot is committed | Exporters |
| PUT | /lots/{reference}/fill | Set the sell-by date and the minimum to ship | Exporters |
| POST | /lots/{reference}/close | Close the lot and ship | Exporters |
| GET | /shipments | Your consignments | Exporters |
| POST | /shipments/{id}/ready | Mark a consignment ready to ship | Exporters |
| POST | /shipments/{id}/shipped | Mark a consignment shipped | Exporters |
| POST | /shipments/{id}/documents | Add a shipping document | Exporters |
| GET | /storage | Your stored coffee | Roasters |
| POST | /storage/quote | Price a release | Roasters |
| POST | /storage/releases | Release stored bags | Roasters |
| POST | /storage/releases/{id}/cancel | Cancel a release | Roasters |
| POST | /commitments/{id}/storage | Deliver or store a commitment | Roasters |
| POST | /commitments/{id}/inspection | Take the inspection at origin as final | Roasters |
| GET | /deliveries | Your deliveries from the destination warehouse | Roasters |
| POST | /deliveries/{id}/pay | Pay a delivery priced after devanning | Roasters |
| GET | /claims | Your claims on delivered origin bags | Roasters |
| POST | /commitments/{id}/claims | Claim on delivered bags | Roasters |
| POST | /claims/{id}/withdraw | Withdraw an open claim | Roasters |
| GET | /landed-samples | Your landed samples | Roasters |
| POST | /landed-samples/{id}/received | Say the landed sample arrived | Roasters |
| POST | /landed-samples/{id}/decide | Accept, accept with an allowance, or decline | Roasters |
| GET | /orders | Sales on your lots | Roasters · Importers |
| GET | /orders/{id} | One sale | Roasters · Importers |
| POST | /orders/{id}/release | Release a sale for collection | Roasters |
| POST | /orders/{id}/sent-to-warehouse | Your coffee is on its way to the warehouse | Roasters |
| POST | /orders/{id}/confirm | Confirm an order request | Importers · Roasters |
| POST | /orders/{id}/decline | Decline an order request | Importers · Roasters |
| POST | /orders/{id}/dispatched | Mark an order sent | Importers · Roasters |
| POST | /orders/{id}/delivered | Mark an order delivered | Importers · Roasters |
| POST | /orders/{id}/collected | Mark an order collected | Importers · Roasters |
| GET | /orders/{id}/collection-note | Get the collection note | Importers · Roasters |
| POST | /orders/{id}/invoiced | Record your own invoice on an order | Importers · Roasters |
| GET | /customers | Your customers | Importers · Roasters |
| GET | /customers/{id} | One customer | Importers · Roasters |
| GET | /sales-statement | What sold in a period | Importers · Roasters |
| GET | /payouts | Your payouts | Roasters |
| GET | /payouts/{id} | One payout | Roasters |
| GET | /payouts/{id}/statement | The self-billing statement | Roasters |
| GET | /samples | Sample requests on your lots | Roasters · Importers · Exporters |
| POST | /samples/{id}/dispatched | You sent the sample to Roastnet | Roasters · Importers · Exporters |
| GET | /events | The event feed | Roasters · Importers · Exporters |
| GET | /proposals | Your Contract Proposals | Exporters |
| POST | /proposals | Start a proposal draft | Exporters |
| GET | /proposals/{id} | One proposal | Exporters |
| PUT | /proposals/{id} | Edit a draft | Exporters |
| POST | /proposals/{id}/submit | Send the proposal | Exporters |
| POST | /proposals/{id}/accept | Accept Roastnet's counter-offer | Exporters |
| POST | /proposals/{id}/counter | Counter-offer | Exporters |
| POST | /proposals/{id}/withdraw | Withdraw | Exporters |
| POST | /proposals/{id}/contract-registration | Enter the contract registration | Exporters |
| POST | /proposals/{id}/sample-sent | Mark the sample sent | Exporters |
| POST | /proposals/{id}/pre-shipment-sent | Mark the pre-shipment sample sent | Exporters |
| POST | /proposals/{id}/po/accept | Acknowledge the purchase order | Exporters |
| POST | /proposals/{id}/documents | Upload an invoice or shipping document | Exporters |
| POST | /proposals/{id}/inspection/allowance | Answer a price allowance after a failed inspection | Exporters |
| POST | /proposals/{id}/contracts/{contractId}/sign | Sign a contract | Exporters |
| POST | /proposals/{id}/contracts/{contractId}/decline | Decline a contract | Exporters |
| PUT | /exporter-onboarding | Your exporter details | Exporters |
| GET | /bank-accounts | The accounts Roastnet pays into | Exporters |
| POST | /bank-accounts | Add a bank account | Exporters |
| GET | /offers | Instant offers on your lots | Roasters · Importers |
| POST | /offers/bulk-reject | Reject many instant offers | Roasters · Importers |
| GET | /offers/{id} | One instant offer | Roasters · Importers |
| POST | /offers/{id}/accept | Accept an instant offer | Roasters · Importers |
| POST | /offers/{id}/reject | Reject an instant offer | Roasters · Importers |
Base URL: https://network.roastnet.ai/api/market/v1. Machine-readable spec: openapi.json (OpenAPI 3.1).
Quick start
- Create a key. Sign in and open Developer (free account) or Settings, API access, Market API (paid workspace), and create an API key. It starts with
rnk_and is shown once, so store it in your secrets manager. - Check it works. Call
GET /me. - Put one lot on the market. Call
PUT /lots/{reference}with your own lot code. - Add a webhook. In Developer (or the workspace's Webhooks settings), add your endpoint URL and choose the events you want. Copy its signing secret.
- Send a test. Press Send test and check your endpoint receives a signed
test.ping.
curl https://network.roastnet.ai/api/market/v1/me \ -H "Authorization: Bearer $ROASTNET_KEY"
{
"business": "Northfield Green Coffee",
"mode": "guest",
"currency": "GBP",
"id_check": { "required": true, "verified": true },
"webhooks": 1,
"api_version": "2026-09-14"
}Authentication and limits
Send your key as a bearer token on every request: Authorization: Bearer rnk_…. Roastnet keeps only a hash of it; if you lose a key, revoke it and create another. A key belongs to your business and acts for the person who made it. If that person leaves, loses admin rights or may no longer sell green coffee, their keys stop working, so make keys from an account that will stay.
Each key may make 120 requests a minute. Over that you get 429 too_many_requests with a Retry-After header in seconds. A sync every 15 minutes and an event poll every minute sit far below the limit.
Lists use cursor pagination: pass limit (up to 100) and, for the next page, the next_cursor from the previous response as cursor. next_cursor is null on the last page.
How buyers see you
Where Roastnet buys and resells (the UK), importers are named on their lots and roasters selling surplus are anonymous unless they choose otherwise. In other markets buyers and sellers trade directly and both are named. The buyer is never shown to you. GET /me returns your naming; a roaster changes it with PUT /naming and {"show_name": true}. Importers are always named, so the call answers 409 conflict for them.
Lots
You address every lot by your own reference, the code you already use for it (for example NGC-0412). Every write is idempotent: sending the same lot twice changes nothing, so retries are always safe.
A new lot goes to Roastnet review before it is on sale. You will get green_lot.published or green_lot.rejected. Changes to price or bags on a lot that is already on sale apply straight away. price_per_kg is what you receive per kg.
Create or update one lot
curl -X PUT https://network.roastnet.ai/api/market/v1/lots/NGC-0412 \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Huila Pink Bourbon, washed",
"origin_country": "Colombia",
"region": "Huila",
"farm": "Finca La Primavera",
"variety": "Pink Bourbon",
"process": "Washed",
"harvest_year": 2026,
"sca_score": 86.5,
"cupping_notes": "Red apple, panela, orange zest",
"bags": 40,
"bag_size_kg": 70,
"min_bags": 1,
"price_per_kg": 9.40,
"warehouse": "Northfield Bonded, Felixstowe",
"info_links": [
{ "url": "https://finca-la-primavera.co/lots/42", "label": "Farm page" }
],
"sample": {
"size_g": 200,
"price": 0,
"delivery": "buyer_pays",
"per_buyer": 1,
"form": "green"
}
}'HTTP/1.1 201 Created
{
"result": "created",
"lot": {
"id": 5121,
"reference": "NGC-0412",
"name": "Huila Pink Bourbon, washed",
"status": "in_review",
"position": "spot",
"bags": 40,
"bag_size_kg": 70,
"price_per_kg": 9.40,
"currency": "GBP",
"sample": { "size_g": 200, "price": 0, "currency": "GBP",
"delivery": "buyer_pays", "per_buyer": 1 },
"info_links": [
{ "url": "https://finca-la-primavera.co/lots/42", "label": "Farm page",
"host": "finca-la-primavera.co" }
],
"created_at": "2026-10-06T09:12:00Z",
"updated_at": "2026-10-06T09:12:00Z"
}
}Required fields: name, origin_country, bags, bag_size_kg, price_per_kg. Other fields you will often send:
currency: the lot's own listing currency, any ISO 4217 code (many importers list in USD whatever their account currency). Leave it out to use your account currency. Buyers elsewhere see an approximate price in theirs; the rate is locked on each order when you confirm it.min_bags: the fewest bags a buyer may order.bags: 0withdraws the lot.available_from: when the lot is ready in the warehouse. A future date makes it afloat; leave it empty for spot. The read-onlypositionin responses shows which.sample: your sample offer, or leave it out for no samples. See Sample offers.info_links: more about this coffee, up to 3 links (urlstartinghttps://, optionallabelup to 80 characters), for example the farm page, the lot or photos. Buyers see them on the coffee they buy, and on the listing when you are named to them. Send the whole list each time; an empty list clears it. Lots and orders return them asinfo_links.
The response says what happened in result: created (status 201), updated, unchanged, withdrawn (you sent bags: 0) or draft (saved until your ID check passes). The lot itself is in lot, with id, Roastnet's own number for the listing. You never need it: your reference is enough.
Before your ID check. Lots you send before your ID check is done are saved as draft. Keep syncing as normal: after the check passes, the next PUT or sync sends them to review automatically.
Sample offers
A sample offer is one object, sample, on the lot. You set the size; buyers cannot change it.
size_g: 50 to 1000 grams. Required inside the object.price: in the lot currency; 0 makes the sample free.delivery:buyer_pays(default; the buyer pays Roastnet's sample postage) orincluded(you cover it).per_buyer: 1 to 10 (default 1), how many samples one buyer may ask for on this lot.form:green(default),roasted, orboth. Withboththe roaster chooses, and the request says which to send.lines: roasters selling in the UK only. The sample stock you send to Roastnet, for example[{"form": "green", "weight_g": 250, "count": 4}], at least 500 g in all. Each lot'ssample_stockshows every line as pending, in stock and sent out.
| You want | Send |
|---|---|
| No samples | "sample": null |
| Free sample, buyer pays delivery | {"size_g": 200, "price": 0, "delivery": "buyer_pays"} |
| Free sample and free delivery | {"size_g": 200, "price": 0, "delivery": "included"} |
| Paid sample, two per buyer | {"size_g": 300, "price": 6.00, "delivery": "buyer_pays", "per_buyer": 2} |
A paid sample works with either delivery option. In responses the object also carries currency.
The sync pattern: send your whole offer list
This is the connect-and-forget call. On a schedule (every 15 minutes is plenty), send every lot you want on the market. Roastnet creates the new ones, updates the changed ones and leaves the rest alone. With withdraw_missing: true, anything of yours that is not in the list is taken off the market, so a lot you sell elsewhere disappears from Roastnet on the next run. Up to 100 lots per call; send larger lists in several calls. Each lot counts towards your account's limit of 600 requests and lots a minute.
curl -X POST https://network.roastnet.ai/api/market/v1/lots/sync \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{
"withdraw_missing": true,
"lots": [
{ "reference": "NGC-0412", "name": "Huila Pink Bourbon, washed",
"origin_country": "Colombia", "bags": 38, "bag_size_kg": 70,
"price_per_kg": 9.40 },
{ "reference": "NGC-0398", "name": "Sidama Bensa, natural",
"origin_country": "Ethiopia", "bags": 12, "bag_size_kg": 60,
"price_per_kg": 8.10 }
]
}'{
"created": ["NGC-0398"],
"updated": ["NGC-0412"],
"unchanged": [],
"withdrawn": ["NGC-0377"],
"draft": [],
"errors": []
}A lot that fails validation is listed in errors with its reference, and the others still go through. Lots saved before your ID check passes are listed in draft.
List and withdraw
curl "https://network.roastnet.ai/api/market/v1/lots?status=on_sale&limit=50" \ -H "Authorization: Bearer $ROASTNET_KEY" # Next page: pass next_cursor back curl "https://network.roastnet.ai/api/market/v1/lots?status=on_sale&limit=50&cursor=eyJpZCI6MTI0fQ" \ -H "Authorization: Bearer $ROASTNET_KEY" # Hundreds of lots: filter before the page is cut curl "https://network.roastnet.ai/api/market/v1/lots?search=guji&origin=ET,KE&process=Washed&harvest_year=2026&limit=100" \ -H "Authorization: Bearer $ROASTNET_KEY" # Orders that need you (a request to answer, or one you deliver that is not delivered yet) curl "https://network.roastnet.ai/api/market/v1/orders?stage=needs_you&limit=100" \ -H "Authorization: Bearer $ROASTNET_KEY"
curl -X DELETE https://network.roastnet.ai/api/market/v1/lots/NGC-0377 \ -H "Authorization: Bearer $ROASTNET_KEY"
Lot statuses: draft (waiting for your ID check), in_review, on_sale, rejected, sold_out, withdrawn.
Orders
An order is a sale on one of your lots. Roastnet is the buyer of record and handles payment, so an order carries what was bought, how much and what you receive (price_per_kg and total), never who the roaster is, except on an importer's own orders (below). bags is empty when the lot is sold by weight.
curl "https://network.roastnet.ai/api/market/v1/orders?since=2026-10-01T00:00:00Z" \ -H "Authorization: Bearer $ROASTNET_KEY"
{
"data": [
{
"id": 1842,
"lot_id": 5121,
"lot_reference": "NGC-0412",
"lot_name": "Huila Pink Bourbon, washed",
"bags": 3,
"weight_kg": 210,
"price_per_kg": 9.40,
"total": 1974.00,
"currency": "GBP",
"status": "paid",
"created_at": "2026-10-06T11:02:00Z",
"updated_at": "2026-10-06T11:03:10Z"
}
],
"next_cursor": null
}Order statuses: ordered (not paid yet), funds_received and processing (paid, release it when ready), awaiting_collection (released), collected, dispatched, out_for_delivery, delivered, cancelled and failed. Older sales may also show shipping_added, invoice_sent or in_transit.
Importer orders and delivery
If you are an importer, a roaster's order on your lot is a request to you (direct: true). Roastnet takes no payment for the coffee: you confirm the order, then invoice the roaster yourself. The order names the roaster and its delivery address in buyer.
curl -X POST https://network.roastnet.ai/api/market/v1/orders/1042/confirm \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{"fx_rate": 0.8}'A lot listed in one currency and bought by a roaster who pays in another carries buyer_pays (what the roaster pays, in its currency) and fx (the rate, its source and date, and locked). Until you confirm, the rate is the platform rate of the day; on confirm you may send your own fx_rate (listing currency to the buyer's, e.g. 0.8 USD/GBP) or leave it out to lock the platform rate. Once locked it never changes, and the roaster's invoice is written at that rate.
Decline with POST /orders/{id}/decline and an optional reason the roaster sees; the quantity goes back on sale. Order statuses here: ordered (waiting for you), confirmed, dispatched, collected, delivered and cancelled.
Who delivers
delivery_by says who moves the coffee. seller: you arrange delivery, free or on your own invoice; mark it sent with POST /orders/{id}/dispatched (optional carrier and tracking) and then POST /orders/{id}/delivered. roastnet: the roaster booked delivery with Roastnet, which invoices the roaster for it separately. Collection is booked once the roaster has paid; you then receive green_logistics.pickup_scheduled with the collection date and the address in logistics.pickup, and the order moves on when Roastnet collects. Roastnet delivery is offered in the UK only for now.
Send pickup_postcode on a lot to say where Roastnet collects it; without it, your default collection postcode is used.
Releasing a sale for collection
Once Roastnet has the roaster's payment, tell us the sale is ready at your warehouse. Roastnet books its own haulier and collects. Send your delivery-order reference and the ready date; you can send it again to change either. Only a paid sale that has not been collected can be released (otherwise 409 conflict).
curl -X POST https://network.roastnet.ai/api/market/v1/orders/1042/release \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{"delivery_order":"DO-55120","ready_date":"2026-10-12"}'The order moves to awaiting_collection and its release block carries your reference and date. You receive green_order.updated, and again when it is collected and delivered.
Sending a sale to the warehouse
Where Roastnet buys and resells (the UK), a roaster's sale (lane: "b") is sent to Roastnet's warehouse and inspected before it goes to the buyer. Once the buyer has paid, send the coffee and tell us the carrier and tracking number. Importer sales (lane: "a") are released for collection instead.
curl -X POST https://network.roastnet.ai/api/market/v1/orders/1042/sent-to-warehouse \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{"carrier":"DPD","tracking":"15501234567"}'The order's inspection block follows it: awaiting_goods, received, then passed (it goes on to the buyer) or failed (the sale is cancelled, the buyer is refunded in full, and the coffee comes back to you at your cost; the reason is in inspection.reason). You hear each step as green_order.updated or green_order.cancelled.
Roaster sales and payouts
In the UK, when you sell as a roaster, Roastnet buys your coffee and resells it (lane: "r"). The buyer pays Roastnet in full before anything moves. Roastnet then books the collection from you and delivers straight to the buyer. You never see the buyer and the buyer never sees you: the order's roaster block has the collection date (remove or cover your own branding on the bags; the driver brings the labels), and GET /orders/{id}/collection-note has the note.
The buyer has a claim window from delivery (48 hours unless the network sets another). Your payout, at your own price, is held until it closes with no claim standing. A rejected claim closes it early. An upheld claim cancels the payout and the coffee comes back to you at your cost. Each payout has a self-billing statement Roastnet raises on your behalf.
curl https://network.roastnet.ai/api/market/v1/payouts?status=due \ -H "Authorization: Bearer $ROASTNET_KEY"
GET /payouts/{id} returns one payout and GET /payouts/{id}/statement its statement as data (the PDF is in the console and the workspace). You hear green_payout.due, green_payout.paid and green_payout.cancelled.
Instant offers
Where Roastnet buys and resells, it may offer to buy part or all of one of your lots outright, at a set price that is open for a set number of hours. You can accept or reject it; there are no counter-offers. You hear about each one on green_offer.received, and GET /offers lists them, open ones first.
curl -X POST https://network.roastnet.ai/api/market/v1/offers/31/accept \ -H "Authorization: Bearer $ROASTNET_KEY"
Accepting places a sale on your lot for the offered quantity at the offered price (order_id in the answer), and it follows the normal order flow from there. To say no, POST /offers/{id}/reject, optionally with {"reason": "..."}. An offer that has lapsed, was withdrawn, or arrives while Roastnet has paused offers answers 409.
Samples
Each sample request says its form (green or roasted) and its route:
direct: send it straight to the roaster atdeliver_to. Importers always send direct, and so does every seller outside the UK.stock: roaster to roaster in the UK. Roastnet posts it from the sample stock you sent with the lot, and you never see the buyer. Whenneeds_stockis true a roaster is waiting and you have none in stock: send some tosend_to.
On a direct sample, tell us when it is in the post. That marks it on its way to the roaster.
curl https://network.roastnet.ai/api/market/v1/samples?status=requested \
-H "Authorization: Bearer $ROASTNET_KEY"
# Once it is in the post
curl -X POST https://network.roastnet.ai/api/market/v1/samples/311/dispatched \
-H "Authorization: Bearer $ROASTNET_KEY" \
-H "Content-Type: application/json" \
-d '{ "carrier": "Royal Mail", "tracking": "AB123456789GB" }'Events feed
Every event Roastnet sends to your webhook is also in GET /events, oldest first, with the same id. Store the id of the last event you processed and pass it as after next time. If has_more is true, call again straight away. Events are kept for 30 days.
# First run: no "after", start from the oldest kept event curl "https://network.roastnet.ai/api/market/v1/events?limit=100" \ -H "Authorization: Bearer $ROASTNET_KEY" # Every run after: pass the last id you processed curl "https://network.roastnet.ai/api/market/v1/events?after=evt_01J9ZK4Q8M2R7T3W5Y6A&limit=100" \ -H "Authorization: Bearer $ROASTNET_KEY"
Use both: webhooks for speed, the feed as a safety net. A poll every few minutes means a sale is never missed, even if your endpoint was down all weekend.
Webhooks
Add endpoints in Developer (or the workspace's Webhooks settings). Each endpoint chooses its events and has its own signing secret. Roastnet sends a POST with a JSON body; answer with any 2xx within 15 seconds. Do slow work after you answer.
| Event | When |
|---|---|
green_lot.published | Your lot passed review and is on sale. |
green_lot.rejected | Your lot was declined in review. The reason is included. |
green_lot.sold_out | A lot sold out. |
green_lot.fill_changed | How much of your lot is committed changed. |
green_lot.closed | You closed a lot to ship it. |
green_lot.expired | A lot passed its sell-by date before it closed. |
green_order.created | A sale came through on your lot. |
green_order.updated | A sale moved on: paid, collected or delivered. |
green_order.cancelled | A sale was cancelled. |
green_sample.requested | You are asked to send a sample. |
green_sample.received | Your sample was received. |
green_sample_stock.received | Your sample stock was checked in. |
green_sample_stock.depleted | Your sample stock ran out. |
green_sample.sent | A sample from your stock was posted. |
green_offer.received | You received an instant offer for a lot. |
green_offer.accepted | You accepted an instant offer. |
green_offer.rejected | You rejected an instant offer. |
green_offer.expired | An instant offer lapsed or was withdrawn. |
green_offer.countered | You answered Roastnet's offer with your own price. |
green_logistics.confirmed | Delivery is paid: the order will be collected. |
green_logistics.pickup_scheduled | The collection date is set. |
green_logistics.collected | The order was collected. |
green_logistics.delivered | The order was delivered. |
green_proposal.submitted | An exporter sent Roastnet a Contract Proposal. |
green_proposal.countered | The proposal's terms were countered; it is the other side's turn. |
green_proposal.agreed | The proposal is agreed in principle, subject to samples. |
green_proposal.declined | The proposal was declined. |
green_proposal.withdrawn | The exporter withdrew the proposal. |
green_proposal.contract_registered | The contract's coffee-body registration number was entered. |
green_proposal.grading_booked | An origin grading of the proposed coffee was booked. |
green_proposal.grading_recorded | The origin grading has a result. |
green_proposal.sample_requested | Roastnet asked for a sample of the proposed coffee. |
green_proposal.sample_sent | The exporter posted the sample to Roastnet. |
green_proposal.sample_received | Roastnet received the sample. |
green_proposal.sample_passed | The sample passed Roastnet's roast and cup. |
green_proposal.sample_failed | The sample failed Roastnet's roast and cup. |
green_proposal.contract_sent | Roastnet sent the contracts to sign. |
green_proposal.contract_signed_by_exporter | The exporter signed a contract; Roastnet countersigns next. |
green_proposal.contract_signed | A contract is signed by both sides. |
green_proposal.contract_declined | The exporter declined to sign a contract. |
green_proposal.contract_voided | A contract was voided. |
green_proposal.po_issued | Roastnet issued the purchase order. |
green_proposal.po_accepted | The exporter acknowledged the purchase order. |
green_proposal.document_submitted | The exporter uploaded an invoice or shipping document. |
green_proposal.document_approved | Roastnet approved a document. |
green_proposal.document_rejected | Roastnet rejected a document and asked for a fix. |
green_proposal.payment_recorded | Roastnet paid a payment stage. |
green_proposal.inspection_replacement | After a failed inspection at origin, Roastnet chose a replacement lot. |
green_proposal.inspection_allowance_offered | After a failed inspection at origin, Roastnet offered a price allowance. |
green_proposal.inspection_allowance_accepted | The exporter accepted the price allowance. |
green_proposal.inspection_allowance_declined | The exporter declined the price allowance. |
green_proposal.inspection_cancel | After a failed inspection at origin, Roastnet cancelled the lot. |
green_proposal.claim_notified | A buyer's quality claim was notified to the exporter under the contract. |
green_proposal.claim_settled | A quality claim was settled with the exporter. |
green_proposal.closed | The purchase closed; the exporter's final statement is ready. |
green_proposal.pre_shipment_requested | Roastnet asked for the pre-shipment sample. |
green_proposal.pre_shipment_sent | The exporter posted the pre-shipment sample to Roastnet. |
green_proposal.pre_shipment_received | Roastnet received the pre-shipment sample. |
green_proposal.pre_shipment_passed | Roastnet approved the pre-shipment sample; the coffee can ship. |
green_proposal.pre_shipment_replacement | The pre-shipment sample was not approved; a replacement was asked for. |
green_proposal.pre_shipment_failed_final | The last pre-shipment sample was not approved: no sale, the contract ends. |
inspection.booked | An inspection at origin was booked. |
inspection.recorded | An inspection at origin has a result. |
green_shipment.status_changed | A shipment moved on: inspected, shipped, arrived, cleared or delivered. |
green_shipment.leg_updated | A destination leg of a consignment moved (booked, on the water, arrived, customs, cleared, at the warehouse, devanned). |
green_payout.due | A payout is due: the buyer's claim window closed. |
green_payout.paid | A payout was paid. |
green_payout.cancelled | A claim was upheld: no payout is due. |
green_delivery.booked | A delivery from the destination warehouse was booked or paid. |
green_delivery.pickup_scheduled | A delivery's collection from the warehouse was booked. |
green_delivery.collected | A delivery was collected from the warehouse. |
green_delivery.delivered | A delivery arrived; the claim windows opened. |
green_claim.opened | A claim was raised on delivered origin bags. |
green_claim.decided | A claim was upheld, rejected or withdrawn. |
green_landed_sample.sent | Roastnet posted the landed sample of an origin lot; decide before the bags are released. |
green_landed_sample.decided | A landed sample was accepted, accepted with an allowance, declined, or accepted by silence. |
storage.checked_in | Your coffee was checked into storage. |
storage.release_requested | You asked for a release of stored bags. |
storage.released | Stored bags left the warehouse for delivery. |
storage.invoice_issued | A monthly storage invoice was issued. |
storage.contract_ending | A storage contract ends soon. |
storage.contract_ended | A storage contract ended. Storage carries on at the same rate. |
green_seller.type_updated | Your seller type changed. |
green_seller.location_updated | One of your locations changed: its address, contact or collection instructions. |
green_seller.stock_transferred | Stock moved between your warehouses: part of a lot or all of it. |
test.ping | A test event you send from this page. |
The envelope
{
"id": "evt_01J9ZK4Q8M2R7T3W5Y6A",
"object": "event",
"api_version": "2026-09-14",
"type": "green_order.created",
"created": 1791284520,
"livemode": true,
"data": {
"object": {
"id": 1842,
"lot_id": 5121,
"lot_reference": "NGC-0412",
"lot_name": "Huila Pink Bourbon, washed",
"bags": 3,
"weight_kg": 210,
"total": 1974.00,
"currency": "GBP",
"status": "paid"
}
}
}Retries
If your endpoint does not answer 2xx, Roastnet tries again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours. Every attempt is in the endpoint's delivery log in Developer. The same event may reach you more than once, so de-duplicate on the event id.
Verifying signatures
Every delivery carries this header:
X-Webhook-Signature: t=1791284520,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
v1 is the hex HMAC-SHA256 of <t>.<raw body> using your endpoint's signing secret. To verify:
- Read the raw request body, before any JSON parsing.
- Refuse the request if
tis more than five minutes from now. This stops replays. - Compute the HMAC and compare it with
v1using a constant-time comparison.
// Node 18+, Express. Read the RAW body: a re-serialised JSON body will not match.
import express from 'express';
import crypto from 'node:crypto';
const app = express();
const SECRET = process.env.ROASTNET_WEBHOOK_SECRET;
app.post('/roastnet/webhook', express.raw({ type: 'application/json' }), (req, res) => {
const header = req.get('X-Webhook-Signature') || '';
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return res.sendStatus(400);
const expected = crypto.createHmac('sha256', SECRET)
.update(`${t}.${req.body.toString('utf8')}`).digest('hex');
const given = Buffer.from(parts.v1 || '', 'utf8');
const want = Buffer.from(expected, 'utf8');
if (given.length !== want.length || !crypto.timingSafeEqual(given, want)) return res.sendStatus(400);
const event = JSON.parse(req.body.toString('utf8'));
// De-duplicate on event.id, then hand off to a queue and answer fast.
res.sendStatus(200);
});# Python 3, Flask
import hashlib, hmac, os, time
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = os.environ["ROASTNET_WEBHOOK_SECRET"].encode()
@app.post("/roastnet/webhook")
def roastnet_webhook():
header = request.headers.get("X-Webhook-Signature", "")
parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
try:
t = int(parts.get("t", "0"))
except ValueError:
abort(400)
if abs(time.time() - t) > 300:
abort(400)
raw = request.get_data() # the exact bytes we sent
expected = hmac.new(SECRET, f"{t}.".encode() + raw, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, parts.get("v1", "")):
abort(400)
event = request.get_json()
# De-duplicate on event["id"], then process.
return "", 200<?php
// Plain PHP; in a framework, read the raw request body the same way.
$secret = getenv('ROASTNET_WEBHOOK_SECRET');
$raw = file_get_contents('php://input');
$header = $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'] ?? '';
$parts = [];
foreach (explode(',', $header) as $pair) {
[$k, $v] = array_pad(explode('=', $pair, 2), 2, '');
$parts[$k] = $v;
}
$t = (int) ($parts['t'] ?? 0);
if (! $t || abs(time() - $t) > 300) {
http_response_code(400);
exit;
}
$expected = hash_hmac('sha256', $t.'.'.$raw, $secret);
if (! hash_equals($expected, $parts['v1'] ?? '')) {
http_response_code(400);
exit;
}
$event = json_decode($raw, true);
// De-duplicate on $event['id'], then process.
http_response_code(200);Rotating a secret in Developer takes effect at once; update your server first.
Errors
Every error has the same shape. field names the input that failed, when there is one.
HTTP/1.1 422 Unprocessable Content
{
"error": {
"code": "invalid",
"message": "Price per kg must be greater than 0.",
"field": "price_per_kg"
}
}| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorised | The key is missing, unknown or revoked, or the person who made it can no longer act for the business |
| 402 | plan_locked | Your workspace plan does not include the Green coffee market |
| 404 | not_found | Not one of yours, or it does not exist |
| 409 | conflict | Not allowed in its current state |
| 422 | invalid | A field failed validation |
| 429 | too_many_requests | Over 120 requests a minute; wait for Retry-After |
AI agents (MCP)
Everything above is also available to AI agents. In Connect agent, connect your assistant to Roastnet and it works on your account with the same rules as the API, through the tools below. The server speaks MCP over HTTP at https://network.roastnet.ai/api/network/fitter-mcp with the token from Connect agent as a bearer token.
| Tool | What it does |
|---|---|
roastnet_list_my_lots | Your green coffee lots on the Roastnet Green coffee market (with Roastnet's review status, price, Selling to markets and what has sold), drafts waiting for your ID check, and your seller record (seller.seller_type: what you chose at onboarding, what Roastnet verified, locked; read only, only Roastnet changes it). With no arguments: every lot on the market. With per_page: one page, in sections review / live / ended (sold out and withdrawn, hidden unless show_sold_out or state=ended), with counts per section and meta.last_page. |
roastnet_add_lot | Roasters and importers: add a green coffee lot for sale. Roastnet reviews it before buyers see it, and buyers never see who you are. Before your ID check passes the lot is saved as a draft. Say which markets it is sold to in sell_markets. Growers and exporters never add a lot here: they list through a Contract Proposal (roastnet_save_proposal_draft, then roastnet_submit_proposal); this tool refuses them with use_proposals. |
roastnet_list_stock | Importers: your Stock to list, one page at a time (50 by default, 100 at most). Each lot (rows[]) with its section (to_list, listed, sold_out), state (to_list, part_listed, listed, sold_out), origin, kg still to list (to_list_grams), on the market (listed_grams), price, location, warehouse (site_id, site, bin, held_in country) and whether it is still on its way (expected_date). Sold out lots are hidden unless show_sold_out or state=sold_out. Also counts per section, summary (total kg, lots to list, lots listed, listed value in your currency), facets (origins, processes, locations, warehouses, harvest years) and meta.last_page. |
roastnet_bulk_stock | Importers: one action on many lots at once (ids from roastnet_list_stock, up to 200). action "list" lists everything still to list on each lot at price_per_kg (and currency) to sell_markets; "price" changes the price of what is on the market; "markets" changes Selling to; "unlist" takes the lots off the market (the weight returns to stock); "move" records a new location. Lots an action does not apply to come back under skipped, a lot that fails under failed with the reason. |
roastnet_add_stock | Importers: add green coffee to the stock you list from. The coffee and the lot only: no supplier (you are the supplier of record) and no price (the price comes with roastnet_list_from_stock). Use expected_on for stock still on its way from origin. |
roastnet_list_from_stock | Importers: list green from a stock line (id from roastnet_list_stock): how much, at what price per kg, in which currency, to which markets. Roastnet reviews it before buyers see it. |
roastnet_mark_stock_arrived | Importers: stock that was on its way from origin is in your warehouse (id from roastnet_list_stock). |
roastnet_update_lot | Change the price, Selling to markets or sample offer of a lot on the market (id from roastnet_list_my_lots). Roastnet re-reviews a price change. |
roastnet_withdraw_lot | Take a lot off the market (id from roastnet_list_my_lots). |
roastnet_publish_draft | Put a draft lot on sale once your ID check has passed (draft id from roastnet_list_my_lots). |
roastnet_browse_market | Browse the Roastnet Green coffee market. |
roastnet_get_listing | Full detail of one lot on the market (id from roastnet_browse_market). |
roastnet_samples_and_orders | Samples and orders on your own lots, plus what you have bought or sampled. Each sample says its form (green or roasted) and route: direct = send it straight to the roaster at deliver_to; stock = Roastnet posts it from your sample stock (needs_stock = send stock to send_samples_to); via_roastnet = older requests sent through Roastnet. Each lot's sample_stock shows pending, in stock and sent out per line. |
roastnet_put_lot | Create or update one of your lots by YOUR reference (idempotent: the same details twice changes nothing). |
roastnet_sync_lots | Send your whole offer list; each lot is created or updated by reference. withdraw_missing=true withdraws your reference-managed lots that are not in the list. |
roastnet_withdraw_lot_by_reference | Take one of your lots off the market by your reference. |
roastnet_mark_sample_sent | Tell Roastnet you sent a requested sample: to Roastnet (route via_roastnet) or straight to the roaster (route direct, which also marks it on its way to them). Optional carrier and tracking. A direct sample goes to the address the roaster gave (deliver_to); when its postage.needed is true (the roaster pays the post and there was no quote), give postage in the lot's currency. |
roastnet_release_order | Tell Roastnet one of your paid sales is ready to collect from your warehouse: your delivery-order reference and the ready date (YYYY-MM-DD). Roastnet's haulier collects. |
roastnet_sent_to_warehouse | Where Roastnet resells (UK), a roaster's sale goes to Roastnet's warehouse to be inspected. Tell Roastnet you have sent the coffee for one paid sale: the carrier and tracking number. |
roastnet_set_naming | Choose whether buyers see your business name on your lots where Roastnet resells (UK). Roasters only; importers are always named. |
roastnet_list_locations | Your locations (RF33): where your coffee physically is and where it is collected from. Each has a name (e.g. "Fortescue · 01-01-01"), an address, contact, phone, collection instructions and whether it is your default; label is what buyers read before they buy ("Collect from Fortescue, Bath"). Every lot maps to one (lot.location). |
roastnet_save_location | Add a location, or edit one by id. Buyers who collect their own coffee collect from the lot's location (full address after the sale is confirmed), and Roastnet's delivery quotes start there. An address is all or nothing: street, city, postcode and country together. is_default true makes it the default for lots with no location. Listings collecting from it follow the change. |
roastnet_list_warehouses | Roasters and importers: your warehouses (sites with their bays or bins) grouped by country. Each site has its operator (own, third_party, bonded, with operator_name), address, the green coffee it holds (total_grams, lots, to_list_grams, listed_grams) and the listed value in your currency; summary has the whole operation and coffee in no warehouse (unplaced). Pass id for one site with a page of its lots (rows[]) and its recent transfers; pass search to find a site, bin, town, operator or country. |
roastnet_transfer_stock | Roasters and importers: move green coffee to another of your warehouses. Give kg or bags to move part of a lot (it splits: what moves becomes a lot of its own at the new warehouse, and only coffee not on the market can be split off), or neither to move the whole lot (its listings then collect from the new warehouse). Stock held in follows the warehouse's country. lot_id is an id from roastnet_list_stock, to_location_id a site or bin from roastnet_list_warehouses; the history shows on roastnet_list_warehouses with id. |
roastnet_get_involved | Your Get involved checklist: your user type and each step with done true or false and the action that completes it (a roaster: delivery address, follow origins, first sample, first order; an importer: a warehouse, stock, a lot listed, a first order answered; an exporter: exporter details, a proposal sent, samples sent, a lot live), worked out from your real data. Also each tab's status line where real data backs it (status), the origins you follow (following), the harvest calendar (harvest.now: origins usually harvesting this month) and moment: a milestone reached since you last looked (first lot live, first order, a sample arrived, a lot 25, 50, 75 or 100% committed), or null; history is never a moment. Read only. |
roastnet_follow_origins | Choose the coffee origins you follow, so you hear "New from {origin}" (bell, push and email, one alert per listing burst, at most one a day per origin) when a lot from one of them goes live in your market. origins are ISO codes or English names; mode replace (the default) sets the whole list, add or remove change it. alerts false turns those alerts off for your business (true turns them back on); give alerts alone to change only that. Returns the origins now followed and origin_alerts. |
roastnet_looking_for | Tell Roastnet what green coffee you are looking for: origins, process, quantity in kg, when you want it and a note; the network team is told at once. Give at least an origin, a process or a note. With list true, returns the requests you have sent instead. |
roastnet_list_offers | Roastnet instant offers to buy your lots outright: the lot, quantity, price per kg, total and when each offer lapses. With no arguments: open offers first, then the last 30 days. For hundreds of offers pass any of pile (needs_answer, the default when paging; accepted; closed: rejected, lapsed or withdrawn; all), search (lot name, lot reference or #offer), lot (a lot id), sort (newest, oldest, value, expiring), page, limit (max 100): one page with counts per pile. |
roastnet_respond_offer | Accept or reject one Roastnet instant offer (no counter-offers). Accepting sells that quantity to Roastnet at the offered price. Only do this when the seller has clearly said so. |
roastnet_respond_order | Importers: answer a roaster's order on your lot. confirm (then invoice the roaster yourself; Roastnet takes no payment for the coffee), decline (optional reason; the stock goes back on sale), and when you deliver it yourself, dispatched (optional carrier and tracking) then delivered; when the roaster collects it from your location (delivery_by collect), collected. A request not answered by its respond_by day (the network working days, default 5) expires and the stock goes back on sale. When Roastnet is collecting, the order moves on when Roastnet collects. Only do this when the seller has clearly said so. |
roastnet_list_payouts | Your payouts on sales Roastnet resold for you (UK roaster to roaster): your own price per sale, held until the buyer's claim window closes, then due, then paid (or cancelled when a claim is upheld), with the self-billing statement number. Never the buyer or what the buyer paid. Optional status: held, due, paid, cancelled. |
roastnet_list_bank_accounts | Exporters at origin: the bank accounts Roastnet pays into (your Bank Accounts, masked: id, nickname, bank, holder, country, currency, last four digits, which is the default, and flags when the holder is not your legal name or the bank is outside your country). A proposal picks one of these by id (bank_account_id). |
roastnet_add_bank_account | Exporters at origin: add a bank account Roastnet can pay into. account_holder_name is required, plus an IBAN or an account_number (with sort_code or swift_bic as your bank needs); bank_name, nickname, country (ISO code) and currency (USD, EUR or GBP) are optional; is_default true makes it the default (the first account always is). The full number never comes back, only the last four digits. Only do this when the exporter has clearly given the details. |
roastnet_sales_inbox | Importers and roasters selling directly: your sales inbox. sales by stage: requests (confirm or decline), confirmed (invoice the roaster yourself, send or let Roastnet collect), sent, delivered, closed; each with the roaster, where to deliver, who delivers, your invoice marker (seller_invoice) and what you can do next (can_confirm, can_decline, can_mark_sent, can_mark_delivered, can_mark_invoiced). Also collections: Roastnet deliveries booked on your orders (the roaster pays Roastnet for those), and customers: the roasters who ordered. For hundreds of orders pass any of stage (needs_you, open, done), search (customer, lot, lot reference or #order), customer (an id from roastnet_list_customers), lot (a lot id), from and to (YYYY-MM-DD), warehouse (where the order is collected from: site or bin ids from roastnet_list_warehouses, comma separated, a site takes its bins; or none), sort (newest, oldest, value, kg), page, per_page (max 100): then one page of sales with counts per stage, meta and facets (lots; warehouses with their order counts). |
roastnet_mark_order_invoiced | Importers: record that you invoiced the roaster yourself for a confirmed order ("Invoiced outside Roastnet"): invoice_number (your own, up to 64 characters) and optional invoiced_on (YYYY-MM-DD, default today). Roastnet never invoices the coffee. An empty invoice_number clears the marker (and any attached PDF). The invoice PDF itself is attached in the console, the app or the Market API (multipart); seller_invoice on the order carries pdf_url when one is attached. |
roastnet_list_customers | Importers and roasters selling directly: the roasters who ordered from you, one row each: name, contact, city, country, orders, open orders and requests, kg, totals per currency and value in your currency, first and last order, how many you marked invoiced. With no arguments: everyone. For hundreds of customers pass any of search (name, contact, email, city), country (codes, comma separated), open (yes or no), active (30, 90, 365 or quiet: no order for 90 days), sort (recent, name, value, kg, orders, open), page, per_page (max 100): then one page with meta, summary and facets. A customer's orders: roastnet_sales_inbox with customer = its id. |
roastnet_sales_statement | Importers and roasters selling directly: what sold through the network in a period (by order date, inclusive): each order with its customer, lot, kg, price, total, status and your invoice number; totals per currency; the same per customer. from and to are YYYY-MM-DD (default: this month; up to a year). |
roastnet_raise_claim | Buyers: raise a claim on a delivered order Roastnet sold you from another roaster, within its claim window (claim_window_ends_at on the order). reason: not_as_sample, damaged or short; description: what you found. If upheld you are refunded in full and Roastnet collects the coffee. Photos can be added from the console. Only do this when the buyer has clearly said so. |
roastnet_lot_fill | Producers at origin: how much of one of your lots buyers have committed (percent, bags, number of buyers, sell-by date, minimum to ship) and each consignment with its shipping timeline and documents. Buyers are never named. id = the lot id (market_coffee_id from roastnet_list_my_lots). |
roastnet_set_fill_terms | Producers at origin: set a lot's sell-by date (YYYY-MM-DD, the last day buyers can commit; at that date an unclosed lot ends and buyers are refunded in full) and the minimum fill you will ship at (percent, 1 to 100; omit to clear). Only do this when the producer has clearly said so. |
roastnet_close_lot | Producers at origin: close a lot at its current fill and ship the committed bags. remainder: relist keeps the rest on sale for the next shipment, withdraw takes it off sale, carry ships every bag and Roastnet keeps selling the unsold ones while they travel or from the warehouse (only when the lot fill shows can_carry) (omit for the network default). Unpaid commitments are released. This cannot be undone: only do this when the producer has clearly said so. |
roastnet_update_shipment | Producers at origin: mark a consignment ready_to_ship (after it passes inspection at origin) or shipped (with an optional shipping_reference and eta YYYY-MM-DD). id = the shipment id from roastnet_lot_fill. Only do this when the producer has clearly said so. |
roastnet_my_commitments | Buyers: the bags you committed to producer lots, each with its payment, how full the lot is, then the shipment timeline (inspected at origin, ready, shipped, arrived, customs cleared, out for delivery, delivered) and the inspection result. Committing and paying happen in the console. |
roastnet_stored_coffee | Buyers: your coffee stored by Roastnet. holdings: each with reference, contract, origin (the country name in English), description, landed date, site (city, country), bag kg, days_remaining (free days left, then days left of the contract), contract_ends_on (after it the coffee stays stored and storage carries on at the same rate), price per kg, bags in, bags left (bags_held), bags free to release (bags_free); releases with their status, billed_on (always monthly_storage_invoice) and invoice_reference once billed; storage invoices with their status and bill_number when Roastnet posted it into your accounts (paid workspaces). |
roastnet_choose_inspection | Buyers: on a lot commitment from origin (id from roastnet_my_commitments, where inspection.can_choose is true), opt_in true takes Roastnet's independent inspection at origin as final on quality at shipment: if it passes, quality claims on arrival are excluded (damage, shortage, water or contamination after the inspection stay claimable). opt_in false keeps the arrival claim window. No charge. Only until the result is in, and only when the buyer has clearly said so. |
roastnet_choose_storage | Buyers: on a lot commitment (id from roastnet_my_commitments), choose deliver (delivered after landing) or store (held at a Roastnet storage site in your market and released when you ask; warehouse_id from the commitment's storage.sites, which shows each site's rates and terms). Only until the bags are checked in. Only do this when the buyer has clearly said so. |
roastnet_request_release | Buyers: ask Roastnet to release stored bags. lines: [{holding_id, bags}] from roastnet_stored_coffee (bags up to bags_free); delivery: the address (line1, city, postcode required); wanted_on: YYYY-MM-DD, on or after the site's notice days. One release per site; the bags are reserved at once; nothing is paid now: delivery, handling and the release fee go on your next monthly storage invoice. Only do this when the buyer has clearly said so. |
roastnet_my_deliveries | Buyers: your deliveries from Roastnet's destination warehouse on origin lots (one per commitment once the bags are devanned): reference, status (awaiting_price, awaiting_payment, booked, pickup_scheduled, collected, delivered), bags, price, VAT, total, paid, whether the charge was taken with the commitment, the collection date, balance_gate (a balance stage still owed blocks delivery) and the delivery note link. |
roastnet_pay_delivery | Buyers: pay a delivery that could not be priced at commitment (status awaiting_payment in roastnet_my_deliveries) by bank transfer: returns Roastnet's account and the reference to quote. Card payment happens in the console. Only when the buyer has clearly said so. |
roastnet_raise_lot_claim | Buyers: claim on delivered origin bags (id = the commitment id from roastnet_my_commitments, where claims.windows.visible_open or cup_open is true). kind visible (within 48 hours of delivery on every lane: damaged, short, wet_or_contaminated, foreign_odour, infestation, moisture) or cup, shown to people as "Quality differs from the approved sample (price allowance)": the reasons allowed are in claims.windows.cup_reasons. On a spot sale (sale_basis spot, within 10 working days) not_as_sample, unsound or radically_different, settled by a price allowance or replacement bags, never a return unless unsound. On an origin lot quality was approved on the landed sample, so only unsound or radically_different after release. Not where quality was final at shipment. description, bags_affected. Photos are added in the console or app. Only when the buyer has clearly said so. |
roastnet_landed_sample_received | Buyers of origin lots: say the landed sample (about 250 g from the sealed arrival draw, landed_sample on the commitment in roastnet_my_commitments) has arrived, so the working days to decide run from today. id = landed_sample.id, only when can_mark_received is true. |
roastnet_decide_landed_sample | Buyers of origin lots: decide on the landed sample before your bags are released (by landed_sample.decide_by; silence is acceptance). decision accept; allowance (accept the coffee and ask for a price allowance; note says how it differs from the approved sample, Roastnet cups it blind against its retained sample); or decline (note required; your commitment is refunded in full and Roastnet resells the bags). score is your optional cupping score. id = landed_sample.id, only when can_decide is true. ALWAYS confirm with the buyer first. |
roastnet_withdraw_lot_claim | Buyers: withdraw an open claim on origin bags (id from roastnet_my_commitments claims.claims[], can_withdraw true). |
roastnet_cancel_release | Buyers: cancel a release Roastnet has not sent to the warehouse yet (id from roastnet_stored_coffee releases, can_cancel true). The bags go back to your stored coffee. |
roastnet_destination_markets | Exporters at origin: the destination markets Roastnet is buying for right now (where it runs the supply chain), each with its code, name per locale, countries, currency and since when. Pick from these codes for terms.destination_markets in a proposal; the default is all of them. Read only. |
roastnet_list_proposals | Exporters at origin: your Contract Proposals to Roastnet (draft, proposed, countered, agreed, declined, withdrawn), each with its terms, whose turn it is, its versions (who changed what and when), the stage it is in (proposal, samples, buyers, inspection, logistics) and whether a coffee-body contract registration is still needed. meta has the builder's choices (incoterms, stage events, documents, currencies USD/EUR/GBP, optional payment templates, your bank accounts) and your exporter onboarding with what is still missing. |
roastnet_get_proposal | Exporters at origin: one Contract Proposal with every version. |
roastnet_save_proposal_draft | Exporters at origin: start a proposal draft (no id) or edit one (id). terms follow the proposal model: coffee {name, origin_country (ISO code of a producing country, e.g. HN; a recognisable English name is read as its code), region, farm, variety, process, crop_year, score, cupping_notes, moisture, screen}, parties {producer}, quantity {bags, bag_kg}, currency (USD, EUR or GBP), price {unit kg|lb, fixed {amount}}, delivery {incoterm FCA (default) or FOB, named_place, port_of_loading, shipment_period {from, to}}, payment_schedule [{key, label, amount {type percent|fixed|remainder, value}, trigger {event, offset_days}, long_stop {event, offset_days} (required for arrival triggers), requires_documents}], documents {provides}, certifications, destination_markets (codes from roastnet_destination_markets; omit for all open markets), eudr {plots [{lat, lng}], producer, harvest_from, harvest_to}, bank_account_id (one of meta.bank_accounts), language es|pt|en, notes. Lists are replaced whole. Nothing is sent to Roastnet until roastnet_submit_proposal. |
roastnet_submit_proposal | Exporters at origin: send a draft to Roastnet (version 1). Refused with the missing field until the terms are complete, the payment schedule totals 100% and your exporter onboarding is in. Only do this when the exporter has clearly said so. |
roastnet_answer_proposal | Exporters at origin: answer Roastnet's counter-offer when it is your turn. answer accept agrees in principle, subject to samples; answer counter sends changed terms (only what changes; lists replaced whole) with an optional note. Only do this when the exporter has clearly said so. |
roastnet_withdraw_proposal | Exporters at origin: withdraw a proposal before it is agreed (a draft is deleted). Only do this when the exporter has clearly said so. |
roastnet_set_contract_registration | Exporters at origin: after agreement, enter the coffee body's registration number for the contract (IHCAFE, Anacafe, ICAFE, ISC, the Nicaraguan register, or Colombia's FNC sale announcement). Where the country requires it, no purchase order or deposit happens before it. |
roastnet_mark_proposal_sample_sent | Exporters at origin: after agreement Roastnet asks for a sample of the proposed coffee, sent to its HQ (the address is in the proposal's samples.sample.ship_to). Once it is posted, record the courier and tracking number. |
roastnet_pre_shipment_sample_sent | Exporters at origin: once the contract is signed Roastnet asks for the pre-shipment sample (and, if the first is not approved, one replacement), sent to its HQ (address in the proposal's pre_shipment.samples[].ship_to). Record the courier and tracking number once it is posted; only when pre_shipment.can_mark_sent is true. Approval of this sample is the last quality check before shipment; afterwards a difference gives Roastnet a price allowance only. |
roastnet_sign_proposal_contract | Exporters at origin: sign a contract Roastnet sent (the Master Exporter Agreement, once per exporter, or a lot's Lot Acceptance; ids in the proposal's contracts.master and contracts.lot, read the PDF at pdf_url first). Only when can_sign is true. name must be exactly the signatory's name (contracts.*.sign_as) and agree must be true. The exporter signs first, then Roastnet countersigns; the lot is offered to roasters in the chosen markets once both are signed. ALWAYS confirm with the signatory before calling, and only when they have clearly said they sign. |
roastnet_decline_proposal_contract | Exporters at origin: decline to sign a contract Roastnet sent, with an optional reason. The lot is not offered. Only do this when the exporter has clearly said so. |
roastnet_accept_purchase_order | Exporters at origin: acknowledge the purchase order Roastnet issued once the contract was signed by both (the proposal procurement.po_number, PDF at procurement.po_url). Then upload your invoice for each payment stage and the shipping documents each stage lists (in the console or the Market API documents endpoint). Only when the exporter has clearly said so. |
roastnet_answer_inspection_allowance | Exporters at origin: after a failed inspection at origin, Roastnet may offer a lower price (proposal inspection.inspections[].allowance with from, to and unit; inspection.can_answer_allowance). accept true makes the lower price the agreed version and the coffee ships; accept false sends the decision back to Roastnet (a replacement lot or cancelling). Only when the exporter has clearly said so. |
roastnet_save_exporter_onboarding | Exporters at origin: your exporter-of-record details. country (ISO code), legal_name, fields keyed by your country's items from meta.onboarding.items (for example tax_id and exporter_code), signatory {name, role, email} (the signatory signs the contracts with Roastnet; the email receives the signing link), producer_consent (you hold producer consent to share their data, under the law in meta.onboarding.data_law), warranties {sanctions, anti_bribery, modern_slavery, tax_evasion}. Roastnet verifies each item every coffee year; changing a value clears its verification. Only set consent and warranties when the exporter has clearly confirmed them. |
roastnet_market_events | Your green-market events (lot published or rejected, sales, samples), oldest first. Pass after = the last event id you saw. |
Changelog
| Date | Change |
|---|---|
| 4 November 2026 | More about this coffee: info_links on a lot (up to 3 https:// links with an optional label), returned on lots, orders and the green_lot.* and green_order.* events. |
| 10 October 2026 | Listing currency and FX lock: currency on a lot is any ISO 4217 code (the currency_mismatch refusal is gone); orders carry buyer_pays and fx; fx_rate on POST /orders/{id}/confirm locks your own rate. |
| 10 October 2026 | Exporter lane: /proposals (contract proposals, contracts, purchase orders, documents, inspection), /lots/{reference}/fill and /close, /shipments, /storage and /commitments, /payouts, PUT /exporter-onboarding; the OpenAPI file now carries a webhooks section with every event. The endpoint, event and MCP tool tables on this page are generated from the live code. |
| 9 October 2026 | Samples: form on the offer and the request; route (direct with deliver_to, or stock); sample stock lines and sample_stock; events green_sample_stock.received and green_sample.sent. |
| 9 October 2026 | Importer orders: confirm, decline, dispatched and delivered; the direct, delivery_by, buyer and logistics order fields; pickup_postcode on lots; the green_logistics.* events. |
| 7 October 2026 | Instant offers: GET /offers, accept and reject, and the green_offer.* events. |
| 6 October 2026 | Version 1: lots, sync, orders, samples, events feed and webhooks. |
Roastnet Market API, version 1. Questions: open Support in your Roastnet account.