Roastnet Create a key
For importers and stock systems

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.

Your first call
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.

MethodPathWhat it doesFor
GET/meCheck your keyRoasters · Importers · Exporters
GET/destination-marketsDestination markets open to growersExporters
PUT/namingChoose whether buyers see your nameRoasters · Importers
PUT/sample-fromSet your default location (deprecated)Roasters · Importers · Exporters
GET/locationsList your locationsRoasters · Importers
POST/locationsAdd a locationRoasters · Importers
PUT/locations/{id}Edit a locationRoasters · Importers
DELETE/locations/{id}Remove a locationRoasters · Importers
GET/warehousesYour warehousesRoasters · Importers
GET/warehouses/{id}One warehouseRoasters · Importers
GET/transfersStock transfersRoasters · Importers
POST/transfersTransfer stockRoasters · Importers
GET/lotsList your lotsRoasters · Importers · Exporters
POST/lots/syncSend your whole offer listRoasters · Importers · Exporters
PUT/lots/{reference}Create or update a lot by your referenceRoasters · Importers · Exporters
DELETE/lots/{reference}Withdraw a lotRoasters · Importers · Exporters
GET/lots/{reference}/fillHow much of a lot is committedExporters
PUT/lots/{reference}/fillSet the sell-by date and the minimum to shipExporters
POST/lots/{reference}/closeClose the lot and shipExporters
GET/shipmentsYour consignmentsExporters
POST/shipments/{id}/readyMark a consignment ready to shipExporters
POST/shipments/{id}/shippedMark a consignment shippedExporters
POST/shipments/{id}/documentsAdd a shipping documentExporters
GET/storageYour stored coffeeRoasters
POST/storage/quotePrice a releaseRoasters
POST/storage/releasesRelease stored bagsRoasters
POST/storage/releases/{id}/cancelCancel a releaseRoasters
POST/commitments/{id}/storageDeliver or store a commitmentRoasters
POST/commitments/{id}/inspectionTake the inspection at origin as finalRoasters
GET/deliveriesYour deliveries from the destination warehouseRoasters
POST/deliveries/{id}/payPay a delivery priced after devanningRoasters
GET/claimsYour claims on delivered origin bagsRoasters
POST/commitments/{id}/claimsClaim on delivered bagsRoasters
POST/claims/{id}/withdrawWithdraw an open claimRoasters
GET/landed-samplesYour landed samplesRoasters
POST/landed-samples/{id}/receivedSay the landed sample arrivedRoasters
POST/landed-samples/{id}/decideAccept, accept with an allowance, or declineRoasters
GET/ordersSales on your lotsRoasters · Importers
GET/orders/{id}One saleRoasters · Importers
POST/orders/{id}/releaseRelease a sale for collectionRoasters
POST/orders/{id}/sent-to-warehouseYour coffee is on its way to the warehouseRoasters
POST/orders/{id}/confirmConfirm an order requestImporters · Roasters
POST/orders/{id}/declineDecline an order requestImporters · Roasters
POST/orders/{id}/dispatchedMark an order sentImporters · Roasters
POST/orders/{id}/deliveredMark an order deliveredImporters · Roasters
POST/orders/{id}/collectedMark an order collectedImporters · Roasters
GET/orders/{id}/collection-noteGet the collection noteImporters · Roasters
POST/orders/{id}/invoicedRecord your own invoice on an orderImporters · Roasters
GET/customersYour customersImporters · Roasters
GET/customers/{id}One customerImporters · Roasters
GET/sales-statementWhat sold in a periodImporters · Roasters
GET/payoutsYour payoutsRoasters
GET/payouts/{id}One payoutRoasters
GET/payouts/{id}/statementThe self-billing statementRoasters
GET/samplesSample requests on your lotsRoasters · Importers · Exporters
POST/samples/{id}/dispatchedYou sent the sample to RoastnetRoasters · Importers · Exporters
GET/eventsThe event feedRoasters · Importers · Exporters
GET/proposalsYour Contract ProposalsExporters
POST/proposalsStart a proposal draftExporters
GET/proposals/{id}One proposalExporters
PUT/proposals/{id}Edit a draftExporters
POST/proposals/{id}/submitSend the proposalExporters
POST/proposals/{id}/acceptAccept Roastnet's counter-offerExporters
POST/proposals/{id}/counterCounter-offerExporters
POST/proposals/{id}/withdrawWithdrawExporters
POST/proposals/{id}/contract-registrationEnter the contract registrationExporters
POST/proposals/{id}/sample-sentMark the sample sentExporters
POST/proposals/{id}/pre-shipment-sentMark the pre-shipment sample sentExporters
POST/proposals/{id}/po/acceptAcknowledge the purchase orderExporters
POST/proposals/{id}/documentsUpload an invoice or shipping documentExporters
POST/proposals/{id}/inspection/allowanceAnswer a price allowance after a failed inspectionExporters
POST/proposals/{id}/contracts/{contractId}/signSign a contractExporters
POST/proposals/{id}/contracts/{contractId}/declineDecline a contractExporters
PUT/exporter-onboardingYour exporter detailsExporters
GET/bank-accountsThe accounts Roastnet pays intoExporters
POST/bank-accountsAdd a bank accountExporters
GET/offersInstant offers on your lotsRoasters · Importers
POST/offers/bulk-rejectReject many instant offersRoasters · Importers
GET/offers/{id}One instant offerRoasters · Importers
POST/offers/{id}/acceptAccept an instant offerRoasters · Importers
POST/offers/{id}/rejectReject an instant offerRoasters · Importers

Base URL: https://network.roastnet.ai/api/market/v1. Machine-readable spec: openapi.json (OpenAPI 3.1).

Quick start

  1. 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.
  2. Check it works. Call GET /me.
  3. Put one lot on the market. Call PUT /lots/{reference} with your own lot code.
  4. 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.
  5. Send a test. Press Send test and check your endpoint receives a signed test.ping.
Request
curl https://network.roastnet.ai/api/market/v1/me \
  -H "Authorization: Bearer $ROASTNET_KEY"
Response
{
  "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

Request
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"
    }
  }'
Response
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: 0 withdraws 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-only position in 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 (url starting https://, optional label up 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 as info_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) or included (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, or both. With both the 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's sample_stock shows every line as pending, in stock and sent out.
You wantSend
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.

Request
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 }
    ]
  }'
Response
{
  "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.

Request
curl "https://network.roastnet.ai/api/market/v1/orders?since=2026-10-01T00:00:00Z" \
  -H "Authorization: Bearer $ROASTNET_KEY"
Response
{
  "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.

Request
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).

Request
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.

Request
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.

Request
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.

Request
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 at deliver_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. When needs_stock is true a roaster is waiting and you have none in stock: send some to send_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.

EventWhen
green_lot.publishedYour lot passed review and is on sale.
green_lot.rejectedYour lot was declined in review. The reason is included.
green_lot.sold_outA lot sold out.
green_lot.fill_changedHow much of your lot is committed changed.
green_lot.closedYou closed a lot to ship it.
green_lot.expiredA lot passed its sell-by date before it closed.
green_order.createdA sale came through on your lot.
green_order.updatedA sale moved on: paid, collected or delivered.
green_order.cancelledA sale was cancelled.
green_sample.requestedYou are asked to send a sample.
green_sample.receivedYour sample was received.
green_sample_stock.receivedYour sample stock was checked in.
green_sample_stock.depletedYour sample stock ran out.
green_sample.sentA sample from your stock was posted.
green_offer.receivedYou received an instant offer for a lot.
green_offer.acceptedYou accepted an instant offer.
green_offer.rejectedYou rejected an instant offer.
green_offer.expiredAn instant offer lapsed or was withdrawn.
green_offer.counteredYou answered Roastnet's offer with your own price.
green_logistics.confirmedDelivery is paid: the order will be collected.
green_logistics.pickup_scheduledThe collection date is set.
green_logistics.collectedThe order was collected.
green_logistics.deliveredThe order was delivered.
green_proposal.submittedAn exporter sent Roastnet a Contract Proposal.
green_proposal.counteredThe proposal's terms were countered; it is the other side's turn.
green_proposal.agreedThe proposal is agreed in principle, subject to samples.
green_proposal.declinedThe proposal was declined.
green_proposal.withdrawnThe exporter withdrew the proposal.
green_proposal.contract_registeredThe contract's coffee-body registration number was entered.
green_proposal.grading_bookedAn origin grading of the proposed coffee was booked.
green_proposal.grading_recordedThe origin grading has a result.
green_proposal.sample_requestedRoastnet asked for a sample of the proposed coffee.
green_proposal.sample_sentThe exporter posted the sample to Roastnet.
green_proposal.sample_receivedRoastnet received the sample.
green_proposal.sample_passedThe sample passed Roastnet's roast and cup.
green_proposal.sample_failedThe sample failed Roastnet's roast and cup.
green_proposal.contract_sentRoastnet sent the contracts to sign.
green_proposal.contract_signed_by_exporterThe exporter signed a contract; Roastnet countersigns next.
green_proposal.contract_signedA contract is signed by both sides.
green_proposal.contract_declinedThe exporter declined to sign a contract.
green_proposal.contract_voidedA contract was voided.
green_proposal.po_issuedRoastnet issued the purchase order.
green_proposal.po_acceptedThe exporter acknowledged the purchase order.
green_proposal.document_submittedThe exporter uploaded an invoice or shipping document.
green_proposal.document_approvedRoastnet approved a document.
green_proposal.document_rejectedRoastnet rejected a document and asked for a fix.
green_proposal.payment_recordedRoastnet paid a payment stage.
green_proposal.inspection_replacementAfter a failed inspection at origin, Roastnet chose a replacement lot.
green_proposal.inspection_allowance_offeredAfter a failed inspection at origin, Roastnet offered a price allowance.
green_proposal.inspection_allowance_acceptedThe exporter accepted the price allowance.
green_proposal.inspection_allowance_declinedThe exporter declined the price allowance.
green_proposal.inspection_cancelAfter a failed inspection at origin, Roastnet cancelled the lot.
green_proposal.claim_notifiedA buyer's quality claim was notified to the exporter under the contract.
green_proposal.claim_settledA quality claim was settled with the exporter.
green_proposal.closedThe purchase closed; the exporter's final statement is ready.
green_proposal.pre_shipment_requestedRoastnet asked for the pre-shipment sample.
green_proposal.pre_shipment_sentThe exporter posted the pre-shipment sample to Roastnet.
green_proposal.pre_shipment_receivedRoastnet received the pre-shipment sample.
green_proposal.pre_shipment_passedRoastnet approved the pre-shipment sample; the coffee can ship.
green_proposal.pre_shipment_replacementThe pre-shipment sample was not approved; a replacement was asked for.
green_proposal.pre_shipment_failed_finalThe last pre-shipment sample was not approved: no sale, the contract ends.
inspection.bookedAn inspection at origin was booked.
inspection.recordedAn inspection at origin has a result.
green_shipment.status_changedA shipment moved on: inspected, shipped, arrived, cleared or delivered.
green_shipment.leg_updatedA destination leg of a consignment moved (booked, on the water, arrived, customs, cleared, at the warehouse, devanned).
green_payout.dueA payout is due: the buyer's claim window closed.
green_payout.paidA payout was paid.
green_payout.cancelledA claim was upheld: no payout is due.
green_delivery.bookedA delivery from the destination warehouse was booked or paid.
green_delivery.pickup_scheduledA delivery's collection from the warehouse was booked.
green_delivery.collectedA delivery was collected from the warehouse.
green_delivery.deliveredA delivery arrived; the claim windows opened.
green_claim.openedA claim was raised on delivered origin bags.
green_claim.decidedA claim was upheld, rejected or withdrawn.
green_landed_sample.sentRoastnet posted the landed sample of an origin lot; decide before the bags are released.
green_landed_sample.decidedA landed sample was accepted, accepted with an allowance, declined, or accepted by silence.
storage.checked_inYour coffee was checked into storage.
storage.release_requestedYou asked for a release of stored bags.
storage.releasedStored bags left the warehouse for delivery.
storage.invoice_issuedA monthly storage invoice was issued.
storage.contract_endingA storage contract ends soon.
storage.contract_endedA storage contract ended. Storage carries on at the same rate.
green_seller.type_updatedYour seller type changed.
green_seller.location_updatedOne of your locations changed: its address, contact or collection instructions.
green_seller.stock_transferredStock moved between your warehouses: part of a lot or all of it.
test.pingA 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:

  1. Read the raw request body, before any JSON parsing.
  2. Refuse the request if t is more than five minutes from now. This stops replays.
  3. Compute the HMAC and compare it with v1 using 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);
});

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"
  }
}
StatusCodeMeaning
401unauthorisedThe key is missing, unknown or revoked, or the person who made it can no longer act for the business
402plan_lockedYour workspace plan does not include the Green coffee market
404not_foundNot one of yours, or it does not exist
409conflictNot allowed in its current state
422invalidA field failed validation
429too_many_requestsOver 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.

ToolWhat it does
roastnet_list_my_lotsYour 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_lotRoasters 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_stockImporters: 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_stockImporters: 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_stockImporters: 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_stockImporters: 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_arrivedImporters: stock that was on its way from origin is in your warehouse (id from roastnet_list_stock).
roastnet_update_lotChange 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_lotTake a lot off the market (id from roastnet_list_my_lots).
roastnet_publish_draftPut a draft lot on sale once your ID check has passed (draft id from roastnet_list_my_lots).
roastnet_browse_marketBrowse the Roastnet Green coffee market.
roastnet_get_listingFull detail of one lot on the market (id from roastnet_browse_market).
roastnet_samples_and_ordersSamples 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_lotCreate or update one of your lots by YOUR reference (idempotent: the same details twice changes nothing).
roastnet_sync_lotsSend 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_referenceTake one of your lots off the market by your reference.
roastnet_mark_sample_sentTell 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_orderTell 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_warehouseWhere 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_namingChoose whether buyers see your business name on your lots where Roastnet resells (UK). Roasters only; importers are always named.
roastnet_list_locationsYour 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_locationAdd 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_warehousesRoasters 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_stockRoasters 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_involvedYour 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_originsChoose 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_forTell 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_offersRoastnet 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_offerAccept 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_orderImporters: 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_payoutsYour 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_accountsExporters 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_accountExporters 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_inboxImporters 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_invoicedImporters: 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_customersImporters 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_statementImporters 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_claimBuyers: 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_fillProducers 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_termsProducers 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_lotProducers 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_shipmentProducers 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_commitmentsBuyers: 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_coffeeBuyers: 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_inspectionBuyers: 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_storageBuyers: 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_releaseBuyers: 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_deliveriesBuyers: 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_deliveryBuyers: 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_claimBuyers: 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_receivedBuyers 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_sampleBuyers 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_claimBuyers: withdraw an open claim on origin bags (id from roastnet_my_commitments claims.claims[], can_withdraw true).
roastnet_cancel_releaseBuyers: 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_marketsExporters 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_proposalsExporters 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_proposalExporters at origin: one Contract Proposal with every version.
roastnet_save_proposal_draftExporters 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_proposalExporters 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_proposalExporters 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_proposalExporters 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_registrationExporters 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_sentExporters 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_sentExporters 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_contractExporters 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_contractExporters 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_orderExporters 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_allowanceExporters 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_onboardingExporters 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_eventsYour green-market events (lot published or rejected, sales, samples), oldest first. Pass after = the last event id you saw.

Changelog

DateChange
4 November 2026More 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 2026Listing 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 2026Exporter 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 2026Samples: 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 2026Importer 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 2026Instant offers: GET /offers, accept and reject, and the green_offer.* events.
6 October 2026Version 1: lots, sync, orders, samples, events feed and webhooks.

Roastnet Market API, version 1. Questions: open Support in your Roastnet account.