/shipping/order_templates_new

Resolve date

Validates a natural-language date string and resolves it to a UTC timestamp. | authz: min_org_role=operator | (OrderTemplateNewDateparserResolveReq) -> (OrderTemplateNewDateparserResolveRes)

post/shipping/order_templates_new/dateparser/resolve/v1

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/shipping/order_templates_new/dateparser/resolve/v1
  • Auth
    HTTP bearer

Request body

anchor_timestampstring date-time nullable
dateparser_strstring required
time_zone_namestring required

IANA time zone name (e.g. America/New_York).

Example request

{
  "time_zone_name": "America/New_York"
}

Response

Successful Response

anchor_timestampstring date-time required
dateparser_strstring required
dateparser_str_has_time_zoneboolean required
resolved_to_timestampstring date-time required
time_zone_namestring required

IANA time zone name (e.g. America/New_York).

Example response

{
  "time_zone_name": "America/New_York"
}

Changes

No recorded changes to this operation across all 20 revisions of this API.