SiteSwapDevelopers
Guides

Offers

Send, counter, accept, decline and withdraw offers.

Offers work where the marketplace takes them (offers: true in GET /marketplaces). Counteroffers and trades work where it takes trades.

curl -X POST "https://dev.siteswap.pro/api/v1/offers" -H "Authorization: Bearer ssk_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"listing_id":"1042","kind":"cash","quantity":20,"total":300,"note":"Can pick up Friday."}'

How an offer moves

FromCallTo
openPOST /offers/{id}/accept (the other side)accepted. The quantity is set aside on the listing at once.
openPOST /offers/{id}/decline (the other side)declined
openPOST /offers/{id}/withdraw (the side that sent it)withdrawn
openPOST /offers/{id}/counter (the other side)countered; a new open offer answers it
open7 days passexpired

Handing over and cancelling an accepted offer are done on the site, in the conversation.

SiteSwap API v1Support