Orders
Create, track, and decide orders. Buyers write through /orders; sellers decide through /me/orders. The order shape is defined once, at order; the lifecycle at the state machine.
At a glance
- Scopes:
orders:write(buyers),orders:approve(sellers) - Idempotency:
external_order_id; byte-identical resubmission replays the stored response, 409 only on a changed payload - Price locks at order time via
locked_rate_id; see the price-clearance invariant - Track by webhook or event replay; the snapshot is always authoritative
Create an order
POST/v1/ordersorders:write
Creates an order from line items, a proposal request, or a document reference. Returns immediately; everything after intake arrives as events.
Request body
| Field | Type | Description |
|---|---|---|
seller required | string | The counterparty, from GET /sellers. |
external_order_id required | string | Your idempotency key, echoed on every event. A duplicate that is the same JSON, in any key order, replays the original response with X-Idempotent-Replay: true, which is how you learn the outcome of a request that timed out. |
rate_version required | string | The card commit you priced against. Version-current cards pass rate match. |
line_items | array of object | A catalog order: one line item books one period; a two-week buy is two line items. Sending this member is what makes the order workflow: "catalog". |
runs | array of object | The catalog order's other member: each run books one product over a span of days, weeks, or months, and expands into one line per period. Send it alone or beside line_items. See runs[]. |
request | object | A proposal order: a proposal_request, no product IDs required. Sending this member makes the order workflow: "proposal". |
document | object | A document order: {upload_id, format}; the parse resumes at needs_confirmation. Sending this member makes the order workflow: "document". |
attachments | array of object | Optional paper riding beside line_items on a catalog order: the buysheet your desk works from, traffic instructions, a make-good notice. Not parsed, not a source of order fields, and not a reason for an extra gate. Not one of the three inputs below. See attachments[]. |
issued_at | string | When your system issued the order, as an ISO datetime. An offset is fine: 2026-09-10T09:00:00-04:00 is kept as sent rather than rewritten to UTC. Defaults to the platform's created_at, so every order snapshot carries one. On a revision it is also the clock the prior order's notice window is measured against. |
flight | object | {start, end} as ISO dates. Optional, and when you state one, every date your lines can land on has to fall inside it or the create returns 422 INVALID_INPUT with details.field: "flight" naming the offending line and date. A day-grain line is checked on its own date; a week or month line is checked on the dates the period can book (in the sandbox, the Monday, Wednesday, and Friday of each week it touches). |
revision | object | {supersedes}: the order_id this order revises. See revisions. version is assigned by the platform; sending one is ignored. |
settlement_mode | enum | The agreement's property, resolved server-side from agreement_id (direct when none is presented) and echoed on every read; not an input you choose. Sending a value that matches the resolution is a no-op; one that contradicts it returns 422 INVALID_INPUT with details.field: "settlement_mode". See the order reference. |
notify_url | string | Webhook target for this order; must be registered and allowlisted. |
agreement_id | string | Presents an agreement, which attaches its terms to this order: the cancellation_terms snapshot and any posting policy override. Omitting it attaches nothing. Must resolve to an agreement with the same seller, or the create returns 422 INVALID_INPUT with details.agreement_id. |
buyer_entity | string | The acting buyer this order is for. Server-derived from your credential and echoed on every read; you do not need to send it. If sent, a value matching the resolved tenant is a no-op, and one that disagrees returns 403 TENANT_MISMATCH and creates nothing. See acting-buyer identity. |
buyer_metadata required | object | advertiser_id is required: name the advertiser this buy is for, by reference into your own registry, or the create returns 422 INVALID_INPUT with details.missing: ["buyer_metadata.advertiser_id"]. An empty string counts as missing. The seller needs it to clear competitive separation, category conflict, and political and LUR compliance before approving. The key list is closed at the top level (see the order reference): an unknown key is refused 422 INVALID_INPUT with details.field naming it, because these values are echoed on EDI delivery, where an unrecognized key is silent data loss. Nested objects keep their own contracts: an unrecognized field inside buyer_contact stays valid and is carried verbatim. There is no advertiser_class key; class lives on the line's rate. There is no key for the advertiser's category; it is a property of the advertiser record, which is where competitive separation reads it. |
buyer_metadata.buyer_contact | object | A human your desk can reach when something on the order needs a conversation: a copy question, a make-good, a preempted unit. Three optional string fields. |
buyer_requests | object | What you are asking the seller for, as against what the seller states it enforces. {min_separation_seconds, scope}. scope takes one value, campaign; the seller-side values break, pod, and program return 422 INVALID_INPUT with details.field: "buyer_requests.scope". Recorded and surfaced at the approval gate, not scheduled around. See competitive separation. |
buyer_contact carries three optional strings. The block is optional and so is every field in it: a name and an email with no phone is a normal contact, not a malformed one.
| Field | Type | What it is |
|---|---|---|
name | string | The person to ask for. |
email | string | Where to write. Not format-checked: an internal alias address is as valid as a public one. |
phone | string | Where to call. Not format-checked, so an international number stays as you sent it. |
Nothing is emailed or called on your behalf. VAMOS carries the contact so the person holding the order can reach the person who placed it.
Send exactly one of line_items, request, or document; runs counts as the catalog member too, alone or beside line_items. The member you send is the workflow: catalog, proposal, or document, derived by the platform and echoed on every read. There is no workflow input to keep consistent with the body; a value sent anyway is ignored, and sending zero or two of the three members is 422 INVALID_INPUT.
attachments is not a fourth option. It rides beside line_items, so the rule above is unchanged: send one of the three, and add attachments if you also have paper.
attachments[]
Your lines are authoritative and the file rides along: nothing books on a parse, nothing waits for a confirmation round-trip, and the seller's traffic desk gets the paper it works from.
Valid only alongside line_items under workflow: "catalog". On a proposal or document order it returns 422 INVALID_INPUT. For the case where the file is the order, see document orders.
| Field | Type | Description |
|---|---|---|
upload_id required | string | From POST /v1/uploads, in status: "uploaded". Must belong to your buyer_entity. |
format required | enum | pdf, xlsx, or csv. |
role required | enum | buysheet, traffic_instructions, makegood_notice, or other. A label for the seller's desk; nothing on the platform branches on it. |
filename required | string | What the desk should see the file called. |
sha256 required | string | The upload's stored hash. A value that does not match returns 422 INVALID_INPUT, so an attachment points at specific bytes. |
{
"seller": "acme",
"external_order_id": "q4-campaign-042",
"rate_version": "acme-2026q4-v1",
"buyer_metadata": { "advertiser_id": "adv_4c1f7a2b9e03" },
"line_items": [ /* your authoritative lines */ ],
"attachments": [
{
"upload_id": "upl_7f3a9c21b0d4",
"format": "csv",
"role": "buysheet",
"filename": "q4-buysheet.csv",
"sha256": "ac1f0ea9b25d426c4a16f359265a04dedf88ac0da95a7adf935361929c227d1f"
}
]
}
Every entry is refused with 422 INVALID_INPUT and creates nothing when its upload_id does not resolve, belongs to another buyer, is not yet uploaded, was rejected, or has expired. Those causes return the same response, so a create cannot be used to discover which upload IDs exist. A sha256 mismatch is reported separately.
Attaching pins the upload: an upload an order references stops expiring, for the life of that order. See the upload lifecycle.
Attachments are not interpreted. No parse, no extraction, no field on your order comes from a file. If a buysheet and your lines disagree, your lines win and the disagreement is a warning, not a rejection.
Both order reads echo attachments verbatim, sha256 included. The event that moves the order to seller_review (order.status_changed with status: "seller_review", to both sides) carries the upload_id list, so a traffic desk knows paper exists before it opens the order.
line_items[]
| Field | Type | Description |
|---|---|---|
product_id required | string | From the seller's catalog. |
period required | object | The period this line item books: {grain, start}. A week or month period books across the period; the seller distributes units over its dates and reports them in allocation. A day period pins the air date: one date, one allocation entry. The grain has to be one the product's grains offers and one the buyer's relationship permits, or the create is refused 422 GRAIN_NOT_OFFERED. The refusal carries details.permitted_grains only when the product does sell the grain and an agreement's permitted_grains excluded it, so an agent can tell a grain the product does not sell from one not sold to this buyer. See the day-locked buys walkthrough. A day-grain line whose date has no day-grain avail behind it still books, with a warning. The line's provider and network are not sent; both derive from product_id and are echoed on reads. |
units required | integer | Every catalog line books in units, audience_guaranteed included: a guaranteed unit is a fixed-price, seller-published guarantee block, not a buyer-named impression count. See the line reference. |
impressions_goal | integer | Not accepted on a catalog line, any buy type: a line carrying it is refused 422 INVALID_INPUT. It belongs to the proposal and document workflows, where a buyer names an uncapped impression count. See Proposals. |
spot_length required | integer | Seconds; a length the cited rate entry prices. |
rate required | object | The priced cell you are locking: {market_class, advertiser_class, buy_type, clearance_tier?, unit_cost or cpm, locked_rate_id, currency}. Only locked_rate_id and the price are required: the cell the lock names supplies every field you omit, and every field you send is checked against it, so a contradicting buy_type is refused as before. Exactly one of unit_cost or cpm, or the create returns 422 INVALID_INPUT. rate_basis is not part of the write: the platform derives it from which cost field is present and emits it on every read; a value you send is ignored. Take locked_rate_id from avails. |
include_mirror | boolean | Books the product's paired mirror airing. Default: false. |
offer | object | Optional. {unit_cost or cpm, expires_at}: your own price for this line, above or below the listed rate, in the line's rate_basis. Allowed only when the line's buy type is in the product's offer_buy_types. On a cell with no listed rate for you, the line may carry an offer and no locked_rate_id or price: {unit_cost, expires_at} per spot, or {cpm, audience_code, expires_at}, on a buy type in the product's offer_unpriced_buy_types. See Make an offer. |
rc_impressions | object | Impression estimates at order time, per audience code, for buysheet parity. |
creative_id | string | The creative this line airs, by reference into your own registry. Optional at create and at every state after it; the creative often follows later as a traffic instruction (out of scope of this platform for now). An id that does not resolve inside your own registry is 422 UNKNOWN_CREATIVE; an archived one is 422 REFERENCE_ARCHIVED; and when the record states a length_seconds that differs from this line's spot_length, the create is 422 CREATIVE_LENGTH_MISMATCH. |
creative_snapshot | object | Read only. The creative_code, name, and length_seconds that were true of the referenced creative at the moment this line's reference was persisted. It does not change after that: renaming the record reaches future orders, not this one. |
do_not_air | array of ISO date | Dates inside this line's window you are asking the seller not to air on. Recorded and surfaced, not enforced: see below. |
traffic_instructions | object | How this line's creatives rotate: {rotation, creative_splits}. See traffic_instructions. |
run_id | string | Read only. The run this line was expanded from, run_1 for the first run in runs, and so on. Absent on a line you sent yourself. Sending it is 422 INVALID_INPUT with details.field naming the line. |
runs[]
A run is one product, length, buy type, and market class over a span of days, weeks, or months. It expands into one line per period, priced from the seller's card for that period, and each line reads back with the run's run_id. A quarter of weekday spots is one run instead of 65 lines. The order still stores one line per period, so seller decisions and counters still work line by line.
| Field | Type | Description |
|---|---|---|
product_id, spot_length, buy_type, market_class required | string, integer | The terms every period locks. clearance_tier is allowed on a preemptible run only, as on a line. |
grain, start, end required | string | day, week, or month, and the first and last period in that grain's format: 2026-09-28, 2026-W40, or 2026-10. Both ends are included. |
days | array of string | Day grain only: the weekdays to book, mon to sun, in any case. Absent books every day. |
units_per_period or budget one required | integer or object | Units on every line, or {amount, currency} to turn into units: floor(amount / the sum of the unit prices over the run) per period. A budget needs per-unit cells in its currency. The 201 answers run_summaries[] with {run_id, units_per_period, spend, remainder}; the remainder is never spent. |
expected_unit_cost or expected_cpm | number | The price you expect, in the cell's rate basis. When any period prices differently, the order is created and fails at validating with STALE_RATE_CARD, its rate_drift naming exactly the lines that differ. |
advertiser_class | string | An override. Absent, the class comes from buyer_metadata.advertiser_id, as category pricing resolves it. If the advertiser's class changes before the order is written, the create is 409 CONFLICT with details.reason: "advertiser_class_changed"; send it again. |
creative_id, traffic_instructions, include_mirror | various | Copied onto every expanded line. A run never carries offer, do_not_air, or rate: send a line that needs one as an explicit line. |
Expanded lines follow every explicit line, so adding a run never moves an explicit line's unit_id. A run that books no period is 422 INVALID_INPUT with details.reason: "no_periods"; more than 400 periods is "too_many_periods"; a period no cell prices is "no_rate_for_period" with the period; a class that cannot be resolved is "class_unresolved" with the classes the run's terms price.
"runs": [
{
"product_id": "acme-daytime",
"spot_length": 30,
"buy_type": "non_preemptible",
"market_class": "scatter",
"grain": "day",
"start": "2026-09-28",
"end": "2026-12-27",
"days": ["mon", "tue", "wed", "thu", "fri"],
"units_per_period": 2
}
]
traffic_instructions
More than one creative on a line is normal, and for direct response it is the default: two or three variants rotating inside a daypart, weighted. traffic_instructions carries that rotation as part of the booking.
rotation decides the shape of creative_splits:
rotation | creative_splits[].pct | Meaning |
|---|---|---|
equal | omitted on every entry | The variants rotate in equal shares. The platform divides evenly and echoes the computed shares on read. |
weighted | required on every entry, summing to 100 | The variants rotate in the shares you state. |
Any other combination is 422 INVALID_INPUT: equal with any pct present, weighted with any pct missing, weighted whose values do not sum to 100, or rotation with no creative_splits at all. Percentages are compared as exact decimals to two places, so 33.33 and 66.67 sum to 100 and are accepted.
equal means omit the percentages rather than state identical ones. Three variants read back as 33.34, 33.33, 33.33.
Every line with creative_splits still names its primary creative_id, and that creative_id has to be one of the splits. See the creative_id row above. Every split entry resolves in your own registry on the same terms as the primary, and its stated length has to match the line.
"traffic_instructions": {
"rotation": "weighted",
"creative_splits": [
{ "creative_id": "crt_9c2e5b71f048", "pct": 60 },
{ "creative_id": "crt_08b6f3a9d541", "pct": 40 }
]
}
Recorded and surfaced, not scheduled. VAMOS carries the rotation to the seller. It does not place spots within a break, so it does not enforce a split, check delivered shares against what you asked for, or reconcile them on a delivery_post. Same posture as the seller's own separation_policy.
do_not_air is a request, not a block. VAMOS stores these dates and shows them to the seller at the approval gate. It does not schedule around them, and a line carrying a do_not_air date can still be allocated on that date: what happens on that date is the seller's decision, as with the seller's own separation_policy. These dates are not validated against the order's flight: a date outside the flight is stored as sent, not refused.
Example request
{
"seller": "acme",
"external_order_id": "q4-campaign-042",
"rate_version": "acme-2026q4-v1",
"line_items": [
{
"product_id": "acme-prime",
"period": { "grain": "week", "start": "2026-W41" },
"units": 10,
"spot_length": 30,
"rate": {
"market_class": "scatter",
"advertiser_class": "general",
"buy_type": "preemptible",
"clearance_tier": "P2",
"unit_cost": 405.00,
"locked_rate_id": "lr_88c1",
"currency": "USD"
},
"rc_impressions": {
"hh": 128000,
"p2plus": 195000,
"a25_54": 82000
},
"creative_id": "crt_9c2e5b71f048"
},
{
"product_id": "acme-prime",
"period": { "grain": "week", "start": "2026-W41" },
"units": 10,
"spot_length": 30,
"rate": {
"market_class": "scatter",
"advertiser_class": "general",
"buy_type": "audience_guaranteed",
"unit_cost": 435.20,
"guaranteed_impressions": 128000,
"audience_code": "hh",
"locked_rate_id": "lr_88c3",
"currency": "USD"
}
}
],
"agreement_id": "agr_71c0d2",
"buyer_metadata": {
"advertiser_id": "adv_4c1f7a2b9e03",
"campaign_id": "cmp_6b2f81d40a9e",
"estimate_id": "EST-4402"
}
}
Response
Timestamps in these examples are illustrative. The sandbox stamps every event, receipt, and as_of at the moment of the call, so a response you get back carries today's instant rather than the one printed here. What the examples fix is the shape and the ordering: stamps on one order are strictly increasing, and two calls a minute apart are a minute apart in the log.
201 Response
{
"order_id": "ord_9f3a12c4b7e1",
"external_order_id": "q4-campaign-042",
"buyer_entity": "yourco",
"status": "submitted",
"created_at": "2026-10-01T14:02:11Z"
}
An order that fails at create, for example on a rate_version behind the seller's current one, still answers 201 with its order_id. It also carries outcome, so you don't mistake it for a booked order:
201 Response
{
"order_id": "ord_5c0e7d21a9b4",
"external_order_id": "q4-campaign-043",
"buyer_entity": "yourco",
"status": "submitted",
"created_at": "2026-10-01T14:02:11Z",
"outcome": {
"status": "failed",
"error": {
"error_code": "STALE_RATE_CARD",
"error_message": "rate_version acme-2026q3-v4 is behind acme-2026q4-v1",
"stage": "validation",
"recoverable": true,
"details": { "rate_drift": [] }
}
}
}
That order keeps its external_order_id, so send the corrected order with a new one. Over MCP, create_order marks such a result as an error.
Errors
| Status | Code | When |
|---|---|---|
| 409 | CONFLICT | Same external_order_id, different payload. Identical duplicates replay instead. Also when a run's class came from the advertiser and the advertiser's class changed before the write (details.reason: "advertiser_class_changed"). |
| 422 | INVALID_INPUT | Malformed input, unknown product_id, an agreement_id that does not resolve to an agreement with this seller (details.agreement_id), or a non-allowlisted notify_url. |
| 403 | TENANT_MISMATCH | A buyer_entity in the body that disagrees with the acting buyer your credential resolves to. Nothing is created. |
| 403 | FORBIDDEN | The seller has suspended this acting buyer, or runs an allowlist and has not allowlisted it. Nothing is created; see the tenant roster. |
| 422 | CREDIT_LIMIT | A cleared order that would breach your credit cap fails fast at create. |
| 422 | ORDER_MINIMUM_NOT_MET | A catalog order that would otherwise clear is below a minimum the seller set to block. details.shortfalls[] lists each one: {minimum: "weekly" | "total", week?, required, actual, currency, enforcement}, in gross. Nothing is created. Add to the order and resubmit. An order that fails on price or availability keeps that outcome instead, and is not checked against minimums. |
| async | STALE_RATE_CARD | Surfaces as a failed event with a rate_drift diff per line, and as outcome on the 201 when it fails at create. Refresh the card and resubmit; see the price-clearance invariant. |
| async | INVENTORY_UNAVAILABLE | Availability rejection. |
Error shape and recovery: Errors.
warnings[]
A warning is not an error. It appears on a successful 201, names something worth knowing, and changes nothing: the order is created, it reads back normally, and no transition on it is blocked or altered. The key is absent entirely when there is nothing to say.
| Code | When |
|---|---|
DATE_GRAIN_AVAILS_MISSING | A day-grain line names a date the seller has published no day-grain avail for. Carries product_id and the dates at issue, one entry per product. Day-grain avails is a stated precondition of day-locked ordering, softly enforced: your order books, and the gap is named. See day-locked buys. |
ORDER_MINIMUM_NOT_MET | The order is below a minimum the seller set to warn, weekly or for the order total. One entry per shortfall, with the same fields as the blocking refusal's details.shortfalls[]. A weekly minimum applies to each week the order books; weeks with nothing booked are not checked. The order books as normal. |
{
"order_id": "ord_c19a44e2f0b1",
"status": "submitted",
"warnings": [
{ "code": "DATE_GRAIN_AVAILS_MISSING", "product_id": "late-night", "dates": ["2026-09-16"] }
]
}
Quote an order
POST/v1/orders/quoteorders:read
Takes exactly the create body and runs the create's checks, writing nothing: no order, no event, no idempotency record, no hold on avails. Quote the body, fix what the quote reports, then create the order. A preparer can quote an order a submitter will send.
The answer is 200 with:
| Field | Type | Description |
|---|---|---|
valid | boolean | Whether create would accept this body now. |
errors | array | Every refusal create would make, in the order it checks them, each in the error shape. A line check names every failing line, not only the first. The first entry is the error create would return. |
line_items | array | The priced lines, explicit lines first, each with its unit_id; an expanded line adds run_id and run_index. |
outcome | object | {status, error?}: where the order would land, seller_review or failed with STALE_RATE_CARD, and so on. |
run_summaries, totals, warnings | various | As create would return them. totals is absent when valid is false. |
A seller minimum set to block reads as valid: false, no outcome, and ORDER_MINIMUM_NOT_MET in errors; one set to warn is listed in warnings. Quote before you create to learn a seller's minimum without writing anything. | ||
replay_of | string | The order_id a byte-identical create already made. |
A quote is advisory: the card can move between the quote and the create, and create checks again. A body that is not JSON is the 422 create returns for it.
Read an order
GET/v1/orders/{id}orders:write
The authoritative snapshot, with a real last_seq. It is the platform's fold of the order's complete event log, so no missed delivery can make it wrong. Full field reference, including where each field folds from: order.
Response
200 Response
{
"order_id": "ord_9f3a12c4b7e1",
"external_order_id": "q4-campaign-042",
"seller": "acme",
"workflow": "catalog",
"status": "placed",
"substatus": null,
"last_seq": 5,
"rate_version": "acme-2026q4-v1",
"taxonomy_version": "acme-2026q4-v1",
"buyer_metadata": { "advertiser_id": "adv_4c1f7a2b9e03" },
"issued_at": "2026-09-10T09:00:00Z",
"flight": { "start": "2026-10-05", "end": "2026-10-11" },
"revision": { "version": 1, "supersedes": null },
"settlement_mode": "direct",
"created_at": "2026-10-01T14:02:11Z",
"updated_at": "2026-10-02T14:41:09Z",
"line_items": [
{
"unit_id": "u-0001",
"product_id": "acme-prime",
"provider": "National ACME",
"network": "ACME",
"period": { "grain": "week", "start": "2026-W41" },
"allocation": [
{
"date": "2026-10-05",
"units": 4
},
{
"date": "2026-10-07",
"units": 3
},
{
"date": "2026-10-09",
"units": 3
}
],
"spot_length": 30,
"units": 10,
"num_accepted": 10,
"status": "accepted",
"reason": null,
"rate": {
"market_class": "scatter",
"advertiser_class": "general",
"buy_type": "preemptible",
"clearance_tier": "P2",
"rate_basis": "per_unit",
"unit_cost": 405.00,
"locked_rate_id": "lr_88c1",
"currency": "USD"
},
"rc_impressions": {
"hh": 128000,
"p2plus": 195000,
"a25_54": 82000
},
"availability": {
"state": "available",
"basis": "measured",
"sellout_level": 0.62
}
},
{
"unit_id": "u-0002",
"product_id": "acme-prime",
"provider": "National ACME",
"network": "ACME",
"period": { "grain": "week", "start": "2026-W41" },
"allocation": [
{
"date": "2026-10-06",
"units": 10
}
],
"spot_length": 30,
"units": 10,
"num_accepted": 10,
"status": "accepted",
"reason": null,
"rate": {
"market_class": "scatter",
"advertiser_class": "general",
"buy_type": "audience_guaranteed",
"rate_basis": "per_unit",
"unit_cost": 435.20,
"guaranteed_impressions": 128000,
"audience_code": "hh",
"locked_rate_id": "lr_88c3",
"currency": "USD"
}
}
],
"totals": {
"gross": 8402.00,
"currency": "USD",
"impressions": {
"hh": 1280000
}
},
"artifacts": [
{
"name": "placement_receipt",
"seq": 5,
"seller_order_id": "ACME-77120",
"daylocks": [
{
"unit_id": "u-0001",
"date": "2026-10-05",
"units": 4
},
{
"unit_id": "u-0001",
"date": "2026-10-07",
"units": 3
},
{
"unit_id": "u-0001",
"date": "2026-10-09",
"units": 3
},
{
"unit_id": "u-0002",
"date": "2026-10-06",
"units": 10
}
],
"placed_at": "2026-10-02T14:41:09Z"
}
],
"events_url": "/v1/events?order=ord_9f3a12c4b7e1"
}
The allocation on each line is authoritative: a week or month line's units spread across the product's weekday pattern, one entry per air date, summing to num_accepted. A day line has a single entry. The placement_receipt's own facts are seller_order_id and placed_at; its daylocks are the same allocations flattened to {unit_id, date, units} rows (ordered by unit_id, then date) for desks that read the buy as one schedule. The air dates are recorded once, on the deciding event's units[].allocation. See day resolution.
Confirm an order at needs_confirmation
POST/v1/orders/{id}/confirmorders:write
Resumes an order parked at needs_confirmation, the gate where you confirm an artifact before it books. Two workflows park here: a document order (confirm the parsed interpretation) and a proposal (confirm the seller's returned plan_proposal). Catalog orders do not park here. On confirm, a document order proceeds to seller_review, and a proposal books its plan in place, on this same order: the plan's line_items become the order's, one order exists after the confirm, and a mixed plan books as one order whatever pay bases its lines carry. On reject, the order goes to canceled. To counter a plan instead of confirming it, use respond. A satisfied buyer acceptance band issues this confirm automatically.
Request body
| Field | Type | Description |
|---|---|---|
action required | enum | confirm or reject. |
actor required | string | Who decided, as you assert it: a display value recorded verbatim onto the approval record, not an authenticated identity. Your credential's side is the authenticated fact; no actor value can reassign it. For an auto-accepted plan, the recorded actor is the acceptance band. |
plan_id | string | On a proposal confirm: the plan being accepted, so a plan superseded by a fresh one cannot be confirmed by mistake. |
reason | string | Required on reject; persisted and surfaced to the seller. |
Response
202 Response : document order { "order_id": "ord_9f3a12c4b7e1", "status": "confirmed" } 202 Response : proposal, plan booked { "order_id": "ord_c19a44e2f0b1", "status": "seller_review", "booked_orders": ["ord_c19a44e2f0b1"] }
booked_orders names the same order, since the plan books in place; the array shape is retained because it is published. See what books on confirm.
Respond in a negotiation
POST/v1/orders/{id}/respondorders:write
Answers a seller counter on an order parked in negotiating. Rounds live on the negotiation object. See Negotiation.
The sandbox serves accept and withdraw. A counter action is refused with 422 INVALID_INPUT and details.supported: ["accept", "withdraw"]: the buyer counter-round is published and not yet served.
Request body
| Field | Type | Description |
|---|---|---|
action required | enum | accept, counter, or withdraw. The sandbox serves the first and the last. |
actor | string | Who answered, as you assert it: a display value recorded verbatim onto the approval record at the negotiating gate, not an authenticated identity. Omit it and the platform records its own default. |
reason | string | Carried onto the cancellation block on a withdraw, which defaults it when you send none. Ignored on an accept. |
counter | object | Required on counter: revised line_items (unit_id, period, units, rate) and an expires_at. |
as_of | ISO datetime | The instant a quote's window is measured against, defaulting to the moment of the call. As on cancel, send it to reach the expired-offer branch on demand. |
What an accept books
The round the seller offered, whole. Every standing countered line becomes accepted at its own quote commit, with num_accepted equal to the counter's units and an allocation across the product's weekday pattern; a line the seller accepted in the same decision keeps the result it already had; each answered ask resolves rejected, naming the counter that closed it. The order transitions to placed with a placement_receipt, and its totals.gross is recomputed from the accepted results at their cited locked rates.
Acceptance is where a quote's window is enforced: an accept whose counter cites a commit past its quote_expires_at returns 409 STALE_RATE_CARD naming the lapsed locked_rate_id, and the order stays in negotiating. Ask the seller to counter again, or revise the order.
| Situation | Behavior |
|---|---|
Order is not in negotiating, or carries no standing counter | 409 INVALID_STATE with the authoritative status and last_seq. |
A second accept of a round already booked, or a second withdraw | Replays the stored outcome. No second event, no last_seq advance. |
Unknown order_id | 404, as on GET /orders/{id}. |
Example request
{
"action": "accept",
"actor": "buyer@yourco.com"
}
202 Response
{
"order_id": "ord_9f3a12c4b7e1",
"status": "placed",
"units_accepted": 4,
"units_rejected": 4
}
Example request: the buyer counter (not served by the sandbox)
{
"action": "counter",
"actor": "buyer@yourco.com",
"counter": {
"line_items": [
{
"unit_id": "u-0001",
"period": { "grain": "week", "start": "2026-W41" },
"units": 8,
"rate": {
"unit_cost": 392.00
}
}
],
"expires_at": "2026-09-30T20:00:00Z"
}
}
Response to a counter round
202 Response
{
"order_id": "ord_9f3a12c4b7e1",
"status": "negotiating",
"negotiation_id": "neg_33a7",
"round": 2
}
A withdraw ends the negotiation: the order transitions to canceled through the same path cancel takes, carrying the identical cancellation block, and the response returns that block.
Cancel an order
POST/v1/orders/{id}/cancelorders:write
Idempotent. Canceling a terminal order returns the terminal snapshot unchanged, so a cancel is safe to retry. Cancellation is a buyer action; a seller declines an order through decide.
Request body
| Field | Type | Description |
|---|---|---|
reason required | string | Persisted; canceled snapshots keep their structured reason on cancellation. A retry does not overwrite it. |
actor required | string | Who decided; persisted alongside the reason. |
as_of | ISO date | The day the notice window is measured from. In the sandbox it defaults to the seeded day 2026-10-05, derived from the catalog's effective start, a fixed value that does not advance with real time. Send it to pick the notice-window branch you want to see. |
Which states cancel
| Order state | Behavior |
|---|---|
Any non-terminal state, including placed | Transitions to canceled and emits one order.status_changed event at the next seq, with status: "canceled", the prior_status it left, and the cancellation block. |
completed, canceled, rejected, failed | Returns the terminal status with a note. No transition, no event, no last_seq advance. |
Unknown order_id | 404, as on GET /orders/{id}. |
placed is not terminal, and it is the state where cancellation matters most: a placed order has committed air dates, and how close those dates are decides whether the cancellation is late.
The notice window, and the one cancellation block
When the order snapshotted cancellation_terms from a presented agreement, the cancellation says whether it landed inside the notice period the two of you negotiated. The window is measured to the next airing still ahead of the clock; dates that have already aired are discarded. On a flight that has fully aired, days_remaining is negative and measured to the last date. An order with no committed allocation has no anchor, so no window applies.
The cancellation is a single cancellation block, recorded once on the cancellation event (order.status_changed to canceled) and carried identically on all three surfaces: the cancel response returns it, the event carries it, and the snapshot folds it.
"cancellation": {
"reason": "budget cut",
"actor": "buyer@yourco.com",
"late_notice": true,
"notice": {
"notice_days": 14,
"days_remaining": 13
}
}
| Field | Type | Description |
|---|---|---|
reason, actor required | string | From the cancel request; persisted, not overwritten by a retry. |
late_notice required | boolean | true when the cancellation landed inside the negotiated notice period. false when it cleared the window, or when no terms were attached. This is the durable signal. |
notice | object | The window figures, present whenever terms were attached and an anchor existed, late or not: notice_days (from the snapshotted terms) and days_remaining (to the next protected airing). Absent when no terms were attached or no window applied. |
The edge is not late: days_remaining equal to notice_days is inside the terms and reads late_notice: false. substatus may still show "late_notice" as a human-readable step marker on the event and snapshot, but it is informational: switch on cancellation.late_notice.
VAMOS records and routes. It does not refuse the cancellation and does not price a penalty; late_notice tells the seller there is something to decide.
Response
202 Response : order was non-terminal { "order_id": "ord_9f3a12c4b7e1", "status": "canceled", "cancellation": { "reason": "budget cut", "actor": "buyer@yourco.com", "late_notice": false } } 202 Response : inside the notice window { "order_id": "ord_9f3a12c4b7e1", "status": "canceled", "cancellation": { "reason": "budget cut", "actor": "buyer@yourco.com", "late_notice": true, "notice": { "notice_days": 14, "days_remaining": 13 } } } 202 Response : order was already terminal { "order_id": "ord_9f3a12c4b7e1", "status": "completed", "note": "order already in terminal state; no change made" }
The snapshot at GET /orders/{id} carries the terminal status and this same cancellation block, notice included.
Errors
| Status | Code | When |
|---|---|---|
| 404 | NOT_FOUND | No order with that ID under your credentials. An order belonging to a different acting buyer reads as 404 rather than 403, so a known order ID does not confirm whose it is. |
| 422 | INVALID_INPUT | A missing reason or actor (details.missing), a body that is not an object, or an as_of that is not an ISO date (details.as_of). stage is intake. |
Revisions
A revision is a new order with its own external_order_id, naming the order it replaces:
{
"seller": "acme",
"external_order_id": "q4-campaign-042-r2",
"rate_version": "acme-2026q4-v1",
"issued_at": "2026-09-18T11:30:00Z",
"buyer_metadata": { "advertiser_id": "adv_4c1f7a2b9e03" },
"revision": { "supersedes": "ord_9f3a12c4b7e1" },
"line_items": [ ... ]
}
Do not reuse the original external_order_id to revise: a changed payload under the same key is a 409 CONFLICT, and a new key with no revision block is an unrelated second order. The lineage travels in revision.
The new order and the prior order's cancellation commit together, so there is no moment when both are bookable:
| Order | After the revision commits |
|---|---|
| The revision | revision.version is the prior order's plus one, and revision.supersedes names it. Otherwise an ordinary new order: it enters at submitted and runs the same lifecycle. |
| The prior order | canceled, with cancellation.reason: "superseded_by_revision" and revision.superseded_by naming the revision. Its external_order_id stays claimed, so a byte-identical resubmission of the original still replays the original response. |
The prior order is canceled by the ordinary cancel path, so the notice window applies as it would to a cancel you sent yourself: a revision landing inside the window reads cancellation.late_notice: true with the same notice figures on the cancellation event. The clock is your issued_at when you state one. There is no separate substatus for a supersede: the lineage is in revision.superseded_by, and the cancellation reads like any other.
You can supersede an order in any live state: submitted, validating, needs_confirmation, confirmed, negotiating, seller_review, or placed. A finished order cannot be revised.
| Status | Code | When |
|---|---|---|
| 404 | NOT_FOUND | supersedes names an order outside your credentials. Not a 403, as on cancel. |
| 422 | INVALID_INPUT | The prior order is in a state that cannot be superseded, with details.status naming it. |
| 409 | CONFLICT | The prior order was already superseded, with details.superseded_by naming the revision that won. Two revisions of one order leave one winner. |
Nothing is created in any of the three cases, so the revision's own external_order_id is still free once you have fixed the problem.
List orders
GET/v1/ordersorders:read
Your order book, newest first by each order's latest event. With no parameter it returns every order as its full snapshot. Narrow it to find one order, or to see what changed since you last looked. MCP list_orders reads the same book and defaults to view=summary and limit=50.
Query parameters
| Field | Type | Description |
|---|---|---|
status | enum | One or more order statuses; repeatable. |
seller | string | Only orders to this seller. |
campaign_id | string | Only orders whose buyer_metadata.campaign_id is this. |
external_order_id | string | Exact match, so at most one order. Use it to find an order whose create you never got an answer to. |
updated_since | ISO datetime | Only orders whose latest event is at or after this time. |
limit | integer | 1 to 200: the newest limit orders. Absent returns every order. |
view | enum | full (the default) or summary. |
A bad value is 422 INVALID_INPUT with details.parameter. The order book issues no cursor, so after is refused the same way.
Response
The full view returns each order as GET /v1/orders/{id} does, with the names to show beside them:
200 Response
{
"orders": [ { "order_id": "ord_9f3a12c4b7e1", "status": "placed", "...": "..." } ],
"seller_names": { "acme": "Acme Broadcasting" },
"product_titles": { "acme-prime": "Prime" },
"last_event_at": { "ord_9f3a12c4b7e1": "2026-10-29T15:04:06Z" }
}
view=summary returns one row per order and says whether limit left any out:
200 Response
{
"view": "summary",
"orders": [
{
"order_id": "ord_9f3a12c4b7e1",
"external_order_id": "q4-campaign-042",
"seller": "acme",
"seller_name": "Acme Broadcasting",
"status": "seller_review",
"substatus": null,
"workflow": "catalog",
"advertiser_id": "adv_4c1f7a2b9e03",
"campaign_id": "cmp_1b2c3d4e5f60",
"totals": { "gross": 810.0, "currency": "USD" },
"line_count": 1,
"created_at": "2026-10-29T15:04:05Z",
"last_event_at": "2026-10-29T15:04:06Z"
}
],
"truncated": false
}
totals is the snapshot's totals. advertiser_id and campaign_id are absent when the order has none.
Offer prices
GET/v1/me/offer-pricesorders:read
PUT/v1/me/offer-pricesorders:write
DELETE/v1/me/offer-prices/{offer_price_id}orders:write
Your organization's own price per product, for offers you make often. An offer price fills in an offer; it sends nothing. No seller sees the list, and an offer still goes out only on an order you submit, with its own expires_at. Buyer credentials only: a seller credential gets 403. Reading needs orders:read; saving and deleting need orders:write, and a person needs Drafter or above.
One row per seller, product_id, buy_type, spot_length, advertiser_class, and basis. Send exactly one of unit_cost (per spot) and cpm; a cpm needs audience_code, one of the product's currencies. note is optional, up to 500 characters. PUT answers 201 for new terms and 200 when it replaced the price on the same terms.
PUT /v1/me/offer-prices
{
"seller": "meridian",
"product_id": "msn-national-prime",
"buy_type": "preemptible",
"spot_length": 30,
"advertiser_class": "general",
"unit_cost": 1800,
"note": "Client X Q4"
}
{
"offer_price_id": "op_1a2b3c4d5e6f",
"seller": "meridian",
"product_id": "msn-national-prime",
"buy_type": "preemptible",
"spot_length": 30,
"advertiser_class": "general",
"rate_basis": "per_unit",
"unit_cost": 1800,
"note": "Client X Q4",
"available": true,
"updated_by": "Dana Buyer",
"updated_at": "2026-11-10T15:00:00Z"
}
GET returns {"offer_prices": [...]}, filtered by ?seller= and ?product_id=. rate_basis, available, updated_by, and updated_at are read only. available is false once you can no longer see the product; that row fills nothing. A product you can't see returns 404 NOT_FOUND. A term the product doesn't declare, audience_guaranteed, neither or both prices, a cpm without audience_code, a read-only field, or a long note returns 422 INVALID_INPUT naming the field. DELETE answers 204, or 404 for an id that isn't yours. Agents read the same list with the MCP tool list_offer_prices.
Approval queue
GET/v1/me/ordersorders:approve
The seller's order book. With the default filter it is your approval queue: everything waiting at seller_review, your gate on every order. Also available in the console. See Approve orders.
Query parameters
| Field | Type | Description |
|---|---|---|
status | enum | Any order status. Default: seller_review. |
after | string | Opaque cursor from the prior response. |
Response
200 Response
{
"orders": [
{
"order_id": "ord_9f3a12c4b7e1",
"status": "seller_review",
"buyer": "yourco",
"buyer_entity": "yourco",
"totals": {
"gross": 4050.00,
"currency": "USD"
},
"received_at": "2026-10-01T14:02:14Z"
}
],
"cursor": null,
"total": 1
}
Read an order (seller)
GET/v1/me/orders/{id}orders:approve
The seller's view of one order: the same authoritative snapshot the buyer sees, plus the buyer identity and buyer_metadata you decide against, plus your own audit records. Shape: order.
| Field | Type | Description |
|---|---|---|
buyer | string | The buyer that placed the order. |
advertiser | string | Who the buy is for, lifted to the top level beside buyer. It is the snapshotted name: the value of the advertiser record when the order booked, not a live read, so a later rename on the buyer's side does not change what you approved. Present on every order; null only on an order booked before the advertiser became required. The buyer's own GET /v1/orders/{id} does not carry it. |
buyer_entity | string | The acting buyer, so an order is attributable when one connection carries several buyer organizations. Also on every row of the approval queue, and it is the value the tenant roster is keyed by. |
approvals | array of object | One approval per decision taken at your gate, in seq order: gate, actor, decision, reason when the decide request sent one, seq, and occurred_at. Each record is a projection of the order event its decision produced (seq and occurred_at are that event's own). Empty before any decision. The buyer's GET /v1/orders/{id} does not carry the array; the events its replay returns carry each approval record. |
Tenant roster
GET/v1/me/tenantsorders:approve
Every acting buyer this connection has carried, so one integration can serve several buyer organizations and you can still tell them apart. One entry per distinct buyer_entity, created the first time an order arrives from it, or the first time you allowlist it. Only buyers you have a relationship or an order with are listed.
Response
200 Response
{
"tenants": [
{
"buyer_entity": "yourco",
"status": "active",
"allowlisted": false,
"first_seen_at": "2026-10-01"
}
],
"total": 1
}
| Field | Type | Description |
|---|---|---|
buyer_entity | string | The acting buyer, as it appears on every order and event from it. |
status | enum | active or suspended. A suspended tenant's orders are refused at intake. |
allowlisted | boolean | Whether you have admitted this tenant explicitly. Only consulted under tenant_policy.mode: "allowlist". |
reason | string | The note you attached when suspending. Absent on an active tenant. |
first_seen_at | date | When this tenant first appeared on your connection. |
status and allowlisted are independent, and all four combinations are legal. Suspension refuses regardless of the allowlist, so allowlisting a suspended tenant sets the flag and leaves the refusal in place until you unsuspend. Under tenant_policy.mode: "allowlist" a tenant that is not allowlisted is refused regardless of status.
Suspend and unsuspend a tenant
POST/v1/me/tenants/suspendorders:approve
POST/v1/me/tenants/unsuspendorders:approve
Stop taking orders from one acting buyer without touching the others on the same connection, and start again later. Both touch status only: a tenant's allowlisted flag survives a suspension untouched.
Request body
| Field | Type | Description |
|---|---|---|
buyer_entity required | string | The acting buyer, from the roster. It travels in the body, not the path, so a tenant identifier does not land in a URL, an access log, or a cache key. |
reason | string | suspend only: your note, persisted on the entry and dropped when you unsuspend. |
Response
200 Response
{
"buyer_entity": "yourco",
"status": "suspended",
"allowlisted": false,
"reason": "credit hold",
"first_seen_at": "2026-10-01"
}
Both are idempotent: unsuspending an active tenant returns its current state rather than an error. A suspended tenant's POST /v1/orders returns 403 and creates nothing.
Both reach only a buyer you have a relationship or an order with. Any other buyer_entity, whether or not it names a buyer, returns 404 NOT_FOUND "No buyer with that ID is related to you", with no details, and writes nothing.
Allowlist a tenant
POST/v1/me/tenants/alloworders:approve
Admit one acting buyer explicitly. Touches allowlisted only, not status. It reaches only a buyer you have a relationship or an order with; any other buyer_entity returns the same 404 as suspend, with no details, and writes nothing.
To admit a buyer before its first order under tenant_policy.mode: "allowlist", add it by its VAMOS Buyer ID with Add buyer on the Buyers page (POST /v1/me/relationships). That creates the relationship and an allowlisted roster entry together.
Request body
| Field | Type | Description |
|---|---|---|
buyer_entity required | string | The acting buyer to admit. In the body, not the path. |
Response
200 Response
{
"buyer_entity": "yourco",
"status": "active",
"allowlisted": true,
"first_seen_at": "2026-10-01"
}
Idempotent: allowlisting an already-allowlisted tenant returns its current state. There is no de-allowlisting operation; suspend instead.
Return a plan for a proposal
POST/v1/me/orders/{id}/planorders:approve
Answer a proposal order: attach the assembled plan_proposal and park the order at needs_confirmation for the buyer. Precondition: the order has workflow: "proposal" and is in submitted, validating, or seller_review; a non-proposal order or a terminal one is rejected. Mint per-campaign prices as quote commits first, then reference their locked_rate_ids here. Posting a new plan supersedes any prior one on the same order.
Request body
| Field | Type | Description |
|---|---|---|
plan required | object | The plan_proposal: line_items (each citing a locked_rate_id; minted: true marks products minted for this request), plan_totals (including projected_delivery), unmet, and an expires_at. |
actor required | string | Who assembled the plan; persisted. |
Response
202 Response
{
"order_id": "ord_c19a44e2f0b1",
"status": "needs_confirmation",
"plan_id": "plan_5b2e"
}
Errors
| Status | Code | When |
|---|---|---|
| 409 | INVALID_STATE | The order is not a proposal, or not in a state that accepts a plan. |
| 422 | INVALID_INPUT | A line cites an unknown or expired locked_rate_id, the plan omits a required field, or the plan's expires_at is later than the earliest quote_expires_at among the quote commits its lines cite (details.field: "expires_at"). A plan's expiry cannot be later than that of any quote commit it cites; the bound is enforced here rather than surfacing as a STALE_RATE_CARD at confirm. |
Decide an order
POST/v1/me/orders/{id}/decideorders:approve
Your decision on an order in seller_review: approve, reject, or counter, per unit.
Request body
| Field | Type | Description |
|---|---|---|
decision required | enum | approve, reject, or counter: the headline. Per-unit actions below may mix. |
actor required | string | Who decided, as your organization asserts it: recorded verbatim onto the approval record the decision produces, not an authenticated identity. Your credential's grant at this gate is the authenticated fact; no actor value can reassign it. |
reason | string | Your note on the decision as a whole, persisted on the approval and returned by GET /v1/me/orders/{id}. Distinct from a per-unit reason, and not derived from one. |
units required | array of object | One entry per unit. Fields below. |
units[]
| Field | Type | Description |
|---|---|---|
unit_id required | string | The line being decided. |
action required | enum | accept, counter, or reject. |
num_accepted | integer | On accept: may be fewer than requested (partial acceptance). |
counter | object | Required on counter: {week, unit_cost, num_offered}. Requires the counter_proposals capability. |
reason | string | Required on reject and counter; persisted and surfaced to the buyer. |
Example request
{
"decision": "approve",
"actor": "planner@seller.com",
"units": [
{
"unit_id": "u-0001",
"action": "accept",
"num_accepted": 10
},
{
"unit_id": "u-0002",
"action": "counter",
"counter": {
"week": "2026-W42",
"unit_cost": 392.00,
"num_offered": 8
},
"reason": "W41 sold out; offering W42 at adjusted rate"
},
{
"unit_id": "u-0003",
"action": "reject",
"reason": "daypart unavailable this week"
}
]
}
Response
202 Response
{
"order_id": "ord_9f3a12c4b7e1",
"status": "placed",
"units_accepted": 10,
"units_countered": 8,
"units_rejected": 6
}
status is negotiating when counters were issued. Counters surface on the order as additional line items with status: "countered" and an in_response_to naming the unit they answer; the original line keeps its own result. Consumers treat countered lines as additive: a seller that only approves and rejects today can add counters later without breaking anyone. See Negotiation.