Create a listing
create_listingUse this when the user wants to offer a good or service for barter on TraydStar. Publishes a public listing on their account and returns its id. Photos can't be attached here; the user can add them on the website. Confirm the title, description, and category with the user before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | offer (default) for something the user has; wanted for something the user is looking for, with want fields describing what they would give | |
| type | Yes | GOOD for a physical item, SERVICE for work, BOTH if it includes both | |
| draft | No | true saves it unpublished; publish later with set_listing_status | |
| ships | No | The user will ship it (default false) | |
| title | Yes | Short name of what is offered | |
| pickup | No | Can be handed over in person (default true) | |
| category | Yes | The category it belongs in | |
| condition | No | Condition, for physical goods | |
| want_tags | No | Short tags for what the user wants in exchange | |
| description | Yes | What is offered, in the user's words | |
| subcategory | No | A subcategory of that category, if one applies | |
| location_city | No | City shown on the listing | |
| stated_value_usd | No | The user's own estimate of its value in US dollars, used to match fair trades | |
| want_description | No | What the user would like in exchange |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | No |