Listing kinds: vehicles, homes, services and tickets
Every listing has a kind. Most are GOODS — an item you can hand over — and need nothing new.
Vehicles, homes and property, services and tickets carry their own details, so people can find
and compare them, and so matching can pair them.
Send kind and details with POST /merchant/listings, PUT /merchant/listings/{id} or
POST /v1/listings/individual, or in your catalog feed as a kind column and detail_<field>
columns (see Catalog feed). Fields a kind doesn't define are dropped. A missing required field,
or a value that isn't allowed, is 422 LISTING_DETAILS_INVALID, with details.fields naming each
one.
Each kind sets the listing's category itself, and some details fill other fields, so search and
matching work the same for every kind:
| Kind | Category | Filled from details | Condition |
|---|---|---|---|
GOODS | from the list | — | yes |
VEHICLE | Vehicles | subcategory ← type, brand ← make, model, year | yes |
PROPERTY | Real estate | subcategory ← property type, year ← year built | no |
SERVICE | Services | subcategory ← kind of service | no |
TICKET | Tickets & events | subcategory ← type of event | no |
Categories, subcategories and brands
Every listing's category and subcategory come from one list, so listings from every store
and every member can be found, filtered and matched the same way. Fetch it with
GET /v1/catalog/categories, GET /v1/catalog/categories/{category}/subcategories and
GET /v1/catalog/brands?category=…&subcategory=….
- For
GOODS, send a category from the list and, optionally, one of its subcategories. TBBN recognises common other names:FashionisApparel,LaptopsisElectronics/Laptops & computers, andElectronics > Phonesis split into category and subcategory. A name it doesn't recognise is placed inOther. brandis free, but a known brand is stored in its usual spelling (SAMSUNGbecomesSamsung).- A vehicle's
makeis one of the makesGET /v1/catalog/brands?category=Vehiclesreturns. A make that isn't on the list is stored asOther, with what you sent kept inmakeOther; common other names are recognised (Mercedes,VW,Chevy).
Details by kind
GOODS (all optional): size, color, dimensions, quantity (1–10,000).
VEHICLE:
- required:
vehicleType(Car, Truck, SUV, Van, Bus, Motorcycle, Tricycle, Scooter, Bicycle (electric), Boat, RV / camper, Trailer, Heavy equipment, Other vehicle),make(from the make list, orOtherwithmakeOther),model,year(1900 to next year); - optional:
mileageandmileageUnit(kmormi),transmission(Automatic, Manual, Other),fuel(Petrol / gasoline, Diesel, Hybrid, Electric, Other),drive(Front-wheel, Rear-wheel, All-wheel, 4x4),color,titleStatus(Clean, Rebuilt, Salvage, Has a lien, No title),owners,vin(up to 17 characters).
PROPERTY:
- required:
offering(For sale, For rent, Home swap),propertyType(House, Apartment / condo, Townhouse, Room, Land, Commercial, Parking / storage); - optional:
bedrooms,bathrooms,areaandareaUnit(sq ftorm²),lotSize,yearBuilt,furnished(true/false),parking,neighborhood,availableFrom(YYYY-MM-DD),minimumStay.
For rent, originalPrice is the rent per month. A home's street address is never shown — send
neighborhood instead.
SERVICE:
- required:
serviceType(Lessons & tutoring, Repairs & handywork, Design & creative, Tech & IT, Cleaning & home, Beauty & wellness, Events & photography, Moving & delivery, Automotive, Health & fitness, Business & professional, Childcare & pet care, Other service),delivery(In person, Online, Either); - optional:
duration(what the price covers),experience,availability.
TICKET:
- required:
eventName,eventDate(YYYY-MM-DD, not in the past),quantity(1–50); - optional:
eventType(Concerts & music, Sports, Theatre & comedy, Festivals, Conferences & talks, Travel & transport, Other event),venue,section,transfer(Mobile transfer, Paper tickets, PDF / email).
Example
curl -X POST https://api.tbbnetwork.com/merchant/listings \
-H "Authorization: Bearer tbbn_sk_live_..." -H "Content-Type: application/json" \
-d '{
"merchantId": "MERCHANT_ID",
"merchantListingRef": "car-1042",
"title": "2019 Toyota Corolla LE",
"kind": "VEHICLE",
"details": { "vehicleType": "Car", "make": "Toyota", "model": "Corolla", "year": 2019,
"mileage": 48000, "mileageUnit": "mi", "transmission": "Automatic" },
"condition": "Used - Good",
"originalPrice": 14500,
"currency": "USD",
"visibility": "GLOBAL",
"listingType": "BOTH"
}'
What a listing would be swapped for
Each entry in wants has a kind too, so a swap can cross kinds — a car for a car, a service for
an item, an item for a car. A want's details are criteria on that kind's fields, all optional:
choices and names match the listing's field (case doesn't matter; text fields match when the
listing's value contains them), numbers are ranges written <field>Min / <field>Max.
| Kind | Criteria |
|---|---|
GOODS | size, color (plus the want's own category — required — subcategory, brand, minCondition) |
VEHICLE | vehicleType, make, model, yearMin, yearMax, mileageMax with mileageUnit, transmission, fuel, drive, titleStatus, minCondition |
PROPERTY | offering, propertyType, bedroomsMin, bathroomsMin, areaMin with areaUnit, furnished (true), neighborhood |
SERVICE | serviceType, delivery (Either matches both) |
TICKET | eventName, venue, quantityMin |
"wants": [
{ "kind": "VEHICLE", "details": { "make": "Toyota", "yearMin": 2015, "mileageMax": 100000, "mileageUnit": "km" } },
{ "kind": "GOODS", "category": "Electronics", "subcategory": "Phones", "brand": "Apple" }
]
A want of the wrong shape is 422 WANT_DETAILS_INVALID, with details.fields naming each one
(wants[0].yearMax). In a catalog feed, put <kind> and <detail_…> elements inside <want>.
A listing of yours that sends no wants still matches: it's matched on what your catalog offers —
its most-listed kinds and categories — so a car dealer's listings match cars and an electronics
store's match electronics. Send wants to say otherwise.
A suggested meeting place
Any listing can suggest a TBBN Space for the meetup or drop-off with preferredSpaceId (an active,
public Space). Members see it on the item and can accept it, or suggest another, when they propose a
swap; the offer carries meetupSpaceId. When the offer is accepted, the trade starts with that
Space agreed as its meeting place — nothing is booked until the traders reserve it.
Finding them
GET /v1/directory/listings takes kind, and for vehicles make, minYear and maxYear, and
for homes offering and minBedrooms. Public listings return kind and details.
