← Back to product·Simulmedia VAMOS® Docs·Guides: for buyers / Day-locked buys
Guides: for buyers

Day-locked buys

Direct response is day-locked by nature: every line names a specific air date, not a week. The day grain of the period is the mechanism, on the avail and on the line alike. This page walks the path.

The worked example throughout: a late night daypart product, a :15 spot, 2 units, day-locked to 2026-09-16, which falls inside ISO week 2026-W38. The rate is 1200.00 USD per unit, and the seller states 400000 households per spot.

Impressions on this page are absolute households per spot, not thousands. 400000 means four hundred thousand households for one airing of one spot.

1. Read avails at day grain

Ask for the week the date sits in. A seller carrying day-locked orders states availability per date, and the answer comes back with a day-grain period.

GET /v1/sellers/{seller}/avails?product_id=late-night&weeks=2026-W38&spot_length=15
{
  "avails": [
    {
      "product_id": "late-night",
      "period": { "grain": "day", "start": "2026-09-16" },
      "state": "available",
      "spots": { "available": 6 },
      "impressions": { "source": "seller", "stream": "linear", "hh": { "per_spot": 400000 } },
      "rates": [
        {
          "locked_rate_id": "lr_ln_gen15",
          "spot_length": 15,
          "buy_type": "non_preemptible",
          "rate_basis": "per_unit",
          "gross_rate_unit": 1200.00,
          "currency": "USD"
        }
      ]
    }
  ]
}

A week-grain answer is not a refusal, and it does not stop you booking a date. It means the seller has stated availability for the week around your date but not for the date itself, and the create will tell you so. See the warning.

2. Pin the date on the line

A line item states one period. A line whose period is {"grain": "day", "start": "..."} books that product on that date, daylocked: there is no week for the seller to spread units across. The product has to offer the grain, by listing day in its grains; a line naming a grain it does not offer is refused 422 GRAIN_NOT_OFFERED.

POST /v1/orders
{
  "seller": "{seller}",
  "external_order_id": "dr-latenight-0916",
  "rate_version": "{the card commit the avail returned}",
  "buyer_metadata": { "advertiser_id": "adv_4c1f7a2b9e03" },
  "line_items": [
    {
      "product_id": "late-night",
      "period": { "grain": "day", "start": "2026-09-16" },
      "units": 2,
      "spot_length": 15,
      "creative_id": "crt_9c2e5b71f048",
      "rate": {
        "market_class": "scatter",
        "advertiser_class": "dr",
        "buy_type": "non_preemptible",
        "unit_cost": 1200.00,
        "locked_rate_id": "lr_ln_gen15",
        "currency": "USD"
      }
    }
  ]
}

The locked_rate_id is the one the avails read returned, unchanged. The price-clearance invariant requires it: a booked price is one the seller published, cited by id, not a number you computed.

Book a schedule of dates as one run

Send a schedule of dates as one run. This run books two units on every weeknight from 2026-09-14 to 2026-10-09. It expands into 20 lines. Each line is pinned to its date and locked to the price the seller publishes for that date's week, and reads back with run_id: "run_1".

POST /v1/orders
{
  "seller": "{seller}",
  "external_order_id": "dr-latenight-fall",
  "rate_version": "{the card commit the avail returned}",
  "buyer_metadata": { "advertiser_id": "adv_4c1f7a2b9e03" },
  "runs": [
    {
      "product_id": "late-night",
      "spot_length": 15,
      "buy_type": "non_preemptible",
      "market_class": "scatter",
      "grain": "day",
      "start": "2026-09-14",
      "end": "2026-10-09",
      "days": ["mon", "tue", "wed", "thu", "fri"],
      "units_per_period": 2,
      "expected_unit_cost": 1200.00
    }
  ]
}

The platform still cites a published price for every date; it reads it from the card for you. expected_unit_cost is your guard: if any week prices differently, the order fails with STALE_RATE_CARD naming the dates that moved. Send the same body to POST /v1/orders/quote first to see the 20 lines and their total without creating anything.

3. Submit, and reach the gate

A day-locked order runs the ordinary path. It is submitted, validated, confirmed, and it stops at seller_review like everything else; a pinned date does not change that.

{ "order_id": "ord_...", "external_order_id": "dr-latenight-0916",
  "status": "submitted", "created_at": "..." }

4. Read the allocation back

allocation is authoritative per date, and on a day line it has one entry: the date you pinned, carrying every accepted unit. A week or month line spreads its units across the period and comes back with several entries; a day line cannot.

"line_items": [
  {
    "unit_id": "u-0001",
    "product_id": "late-night",
    "period": { "grain": "day", "start": "2026-09-16" },
    "status": "accepted",
    "units": 2,
    "num_accepted": 2,
    "allocation": [ { "date": "2026-09-16", "units": 2 } ]
  }
]

Two units at 1200.00 is 2400.00 USD gross, and at 400000 households per spot the line is stated to deliver 800000 households. The placement_receipt on placed carries the same date in its daylocks, because it is derived from this allocation.

The day-grain avails warning

Day-grain avails is a stated precondition of day-locked ordering, and it is softly enforced. If a day-grain line names a date with no covering day-grain avail behind it, the create succeeds and says so:

{
  "order_id": "ord_...",
  "status": "submitted",
  "warnings": [
    { "code": "DATE_GRAIN_AVAILS_MISSING", "product_id": "late-night", "dates": ["2026-09-16"] }
  ]
}

The warning names the gap and changes nothing else. The order is created, it reads back normally, and no transition on it is blocked or altered. Entries are grouped one per product.

Why this is a warning. A seller partway through onboarding would otherwise lose a valid order over one uncovered date. The buy is legitimate either way: the seller has said it can sell the week, and the buyer wants one day inside it.

What this asks of a seller

If you intend to carry day-locked orders, publish avails at day grain for the dates you are willing to sell. Publishing at week grain does not stop a buyer pinning a date, and it does not stop the order; it means every such order arrives carrying a warning that names you.