eBay · Schema

DateRange

The type that defines the fields for a date range.

AuctionsCommerceProductsMarketplaceFortune 500

Properties

Name Type Description
from string The beginning date in the range. If the parent type is included, both the from and/or the to fields become conditionally required.

Format: UTC
to string The end date for the date range, which is inclusive. If the parent type is included, both the from and/or the to fields become conditionally required.

View JSON Schema on GitHub

JSON Schema

ebay-daterange-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DateRange",
  "title": "DateRange",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "The beginning date in the range. If the parent type is included, both the <strong>from</strong> and/or the <strong>to</strong> fields become conditionally required.<br /><br /><b>Format: </b>UTC <code>yyyy-MM-ddThh:mm:ss.SSSZ </code> <br /><br /> <b> For example: </b> Tasks within a range  <br /> <code>yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ </code> <br /><br /> Tasks created on March 31, 2021  <br /><code>2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z</code>    "
    },
    "to": {
      "type": "string",
      "description": "The end date for the date range, which is inclusive. If the parent type is included, both the <strong>from</strong> and/or the <strong>to</strong> fields become conditionally required.  <br /><br /> <b> For example: </b> <br /><br />Tasks within a range  <br /> <code>yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ </code> <br /><br /> Tasks created on March 31, 2021 <br /> <code>2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z</code>  "
    }
  },
  "description": "The type that defines the fields for a date range."
}