Skip to main content

V2RecommendationRun

Top-level response for any /v2/recommendations* endpoint.

run_iduuidrequired
company_iduuidrequired
business_datedaterequired
currencyCurrencyrequired
fallback_usedFallback Used
Default value: false
recommendations object[]required
  • Array [
  • datedaterequired
    room_typeRoom Typerequired
    recommended_rateRecommended Raterequired

    Possible values: Value must match regular expression ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

    delta_pctDelta Pctrequired

    Percent diff vs the room's current rate at compute time.

    Possible values: Value must match regular expression ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

    data_completenessData Completenessrequired

    How much of this date's input data was present, in [0, 1]. Not a measure of how sure the model is about the rate — a fully-fed date the engine has little to say about still reports 1.0.

    statusRecommendationStatus

    Whether this row is a recommendation at all. PRICED is the only value carrying a rate change to act on. HELD_LOW_CONFIDENCE and INSUFFICIENT_DATA both return your current rate with delta_pct 0 — the row exists to say what happened to the date, not to be published. Check this before acting on recommended_rate: a hold is not an instruction to keep the rate, it is the absence of an instruction.

    Possible values: [PRICED, INSUFFICIENT_DATA, HELD_LOW_CONFIDENCE]

    Default value: PRICED
    phasePhaserequired

    Demand reading for the date: DISTRESSED | BUILD | YIELD | SPIKE, or NOT_MEASURED where too little is on the books for ahead or behind to mean anything — most of the far horizon. Treat it as an open string: NOT_MEASURED is the absence of a reading rather than a fifth kind of demand, and further values may be added.

    drivers object[]
  • Array [
  • featureFeaturerequired

    Feature name (e.g. pace_index).

    labelLabelrequired

    Humanised feature name for display.

    impactImpactrequired

    Contribution magnitude.

    directionDirectionrequired

    up | down.

  • ]
  • guardrails object[]
  • Array [
  • codeCoderequired

    Machine-readable guardrail code.

    labelLabelrequired

    Humanised label for display.

  • ]
  • hitl_requiredHitl Required
    Default value: false
    explanation object
    anyOf
    string
  • ]
  • warningsstring[]
    computed_atdate-timerequired
    V2RecommendationRun
    {
    "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "company_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "business_date": "2024-07-29",
    "currency": "string",
    "fallback_used": false,
    "recommendations": [
    {
    "date": "2024-07-29",
    "room_type": "string",
    "recommended_rate": "string",
    "delta_pct": "string",
    "data_completeness": 0,
    "status": "PRICED",
    "phase": "string",
    "drivers": [
    {
    "feature": "string",
    "label": "string",
    "impact": 0,
    "direction": "string"
    }
    ],
    "guardrails": [
    {
    "code": "string",
    "label": "string"
    }
    ],
    "hitl_required": false,
    "explanation": "string"
    }
    ],
    "warnings": [
    "string"
    ],
    "computed_at": "2024-07-29T15:51:28.071Z"
    }