# SalesPage

The default sales page and the photos it may use.

Group: Objects.

## Fields

- `productId` (string, required): The guide's id.
- `listing` (object or null, required): The default sales page, or null before a draft exists.
  - `listingId` (string, required): The sales page's id.
  - `status` (string, required): Whether a version is live. One of `published`, `unpublished`.
  - `baseLanguage` (string, required): The language of draftConfig.
  - `draftConfig` (ListingConfig, required): The draft: what save_sales_page_draft replaces.
    Fields of ListingConfig: https://developers.sceniq.earth/fields/listing-config.md
  - `draftUpdatedAt` (number, required): When the draft last changed.
  - `publishedConfig` (ListingConfig or null, required): What buyers see.
    Fields of ListingConfig: https://developers.sceniq.earth/fields/listing-config.md
  - `publishedAt` (number or null, required): When it was last published.
  - `publishedConfigVersion` (number, required): The live version's number.
  - `locales` (array of strings, required): Published translations as language codes, besides baseLanguage ([] for a page in one language).
  - `metaTitle` (string or null, required): The search result title.
  - `metaDescription` (string or null, required): The search result description.
  - `updatedAt` (number, required): When the row last changed (Unix time in milliseconds).
- `mediaMap` (map of objects, required): The photos the sales page may use, keyed by mediaId.
  - `id` (string, required): The photo's id.
  - `url` (string, required): The photo's URL.
  - `caption` (string, optional): Caption.
  - `credit` (string, optional): Photographer credit.
  - `width` (number, optional): Width in pixels.
  - `height` (number, optional): Height in pixels.
  - `order` (number, required): Position.
- `publishing` (string, required): Who publishes the sales page (the creator, in the studio).

## Used by

- [get_sales_page](https://developers.sceniq.earth/reference/get_sales_page.md)
