Create buyback offer (pool model)

POST /api/v1/mystery/buyback packs:buyback

POOL MODEL ONLY — this is the marketplace-offer buyback for partners who hold their OWN inventory in the pool, and it is a different mechanism from the native /sellback/* family above (which is the only sell-back path when you sell CardOS tiers; a TIER-model key calling here gets a 403 "Not available on your plan"). CardOS signs a priced EIP-712 offer against the token; when the holder accepts, CardOS fronts the USDC and the amount lands on your bill (see Billing). Creating an offer again while one is active is idempotent: you get the existing offer back with idempotent: true rather than a re-signed one.

Try it POST /api/v1/mystery/buyback write

These inputs are shared across all docs pages, so an id entered here carries over.

request body
object · 1 keys
{
  "token_id": ""
}
response

Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).

tracks the inputs above
curl -X POST 'https://service.rip.fun/api/v1/mystery/buyback' \
  -H 'X-API-Key: rip_…' \
  -H 'Content-Type: application/json' \
  -d '{"token_id":""}'

Request fields

FieldTypeRequiredDescription
token_idstringyesCard token to offer on
offer_price_usdcstringOverride price — capped at the card's market value
item_typestringCARD | GRADED_CARD, to disambiguate a token id that exists as both

Response fields (data)

FieldDescription
offer_signature / offer_id / deadlineThe signed offer and when it expires
price / price_usdc / seller_receives_usdc / marketplace_fee_usdcOffer economics (micros + decimals)
contract_address / requester / target / chain_idOn-chain parties: the marketplace, the signing requester, and the holder
value_usdc / value_sourceThe market value the price was derived from (absent on idempotent replay)
idempotenttrue when an existing active offer was returned instead of re-signing

Errors

StatusCodeWhen
400token_requiredno token_id
400price_too_highoffer_price_usdc exceeds the card's market value
404token_not_foundunknown token
409value_unknownthe card has no market value to price the offer from
409not_eligiblethe token is not eligible (burned, frozen, not whitelisted, …)
403Not available on your planyour key is on the TIER model — use /sellback/* instead

See Errors for the response envelope and the full code list.