Sharetribe icon

Sharetribe

Allows interaction with the Sharetribe Integration API

Listing → Close

AI-generated

Summary

Close a listing by ID

Inputs

  • listingId (required) — ID of the listing to close
  • simplify — Whether to return a simplified version of the response
  • fieldsToReturn — Choose from the list, or specify IDs using an expression
  • authorFields — Choose from the list, or specify IDs using an expression

Output shape

a single listing object

Returns the closed listing; the set of returned fields is controlled by fieldsToReturn (and authorFields when requested). Omitted fields are excluded; pagination not applicable.

Examples

Example 1: Close a listing and return only selected fields

listingId: '550e8400-e29b-41d4-a716-446655440000', simplify: false, fieldsToReturn: ['title','price','state'], authorFields: ['firstName','lastName']

Links

Discussion