Skip to main content
A modular inventory source is an operator-managed source made of smaller modules: an inventory feed, a booking ledger, and optional execution modules and human work queues. Use one when your inventory and execution do not come from a single upstream sales agent. The modules and lifecycle stages are explained in Modular inventory source lifecycle. A modular source books a buy only once it has an execution (trafficking) module. Until then, a live buy for its products is refused before you are asked to approve it, with the reason modular_source_cannot_finalize. A sandbox buy is still recorded, without any booking at the source. A Demo Storefront’s sample sources are the one exception: they book synthetically while the Demo’s lease is active. V3 gives a modular source three Pages. Each has one job. You open them with open_page, and a person completes the work in the Page. Only a Seller Account can open them. A Buyer Account is refused with a wrong-account error. sourceId comes from search({ "kind": "inventory_source" }).

Availability

Custom modular sources are part of a Premium or Enterprise Storefront Agent plan. Without them the Pages are refused with ACCESS_DENIED and the message “Custom modular inventory sources require a Premium or Enterprise Storefront Agent plan.” The one exception is a synthetic source attached by the Demo Storefront. With its sourceId, the modular_inventory_source Page opens it read-only so you can inspect it.

What happens in each Page

Add a modular source creates a feed-backed source. It does not ask how you book, traffic, clear creative or report. Those answers come from the modules attached to the source and appear in the workspace. A new source starts with an avails-feed module and Apostra’s booking ledger. Modular inventory source is the page you return to. Its summary shows readiness above the fold. Below it are the lifecycle stages, the attached modules and the source-side work queue. The Page launches the add-source and avails-feed Pages when you need them. Commit avails feed sends the file straight from the Page to private storage, so the model never receives the feed’s bytes. The Page previews the rows before you confirm. Creating a source and committing a feed are explicit, confirmed writes. Nothing is offered to buyers until avails rows are committed. A source with no committed rows is registered but has no sellable capacity.

What you can do from V3 without a Page

The reads and the typed saves below are V3 tools. They work on the same sources the Pages open.

Create a source from an agent

save_inventory_source with name and feedSource creates the same source the Add a modular source Page creates: the source, an avails-feed module, Apostra’s booking ledger and, unless you choose otherwise, manual execution.
feedSource takes the Page’s setup fields, all optional: includeBookingLedger, availsSource, booking, execution, reporting, creative and notes. Send "feedSource": {} for the defaults. The source id is id, lower case letters, numbers, dashes and underscores; leave it out and Apostra makes one from the name. Send nothing else with them: a field that belongs to another save, such as endpointUrl or status, is refused with VALIDATION_FAILED. The id is the idempotency key. Sending the same call again, or two calls at once, leaves one source: the call that created it answers action: "created" and every other answers action: "unchanged" with the source. An id that is already held by a different source, a different setup or another name is a CONFLICT that names the id, and a source someone has since configured is never read as a match. If another request is writing the same id, the answer is SERVICE_UNAVAILABLE with retryable: true after at most five seconds, nothing is created, and the same call can be sent again. A source sells nothing until availability is committed. Upload an avails sheet as a material for the source and commit it with save_material. Choosing execution.mode of upstream_system or none attaches no execution module, and the answer carries a warning that the source cannot finalize buyer bookings. Custom modular sources are part of the plan described under Availability; without it the call is refused with FEATURE_NOT_ENABLED, as the module configuration save is. Both config and result are lists of entries, not objects. The key is the dotted field key you already read: the readiness view lists the settings that are present as configuredFieldKeys, and a follow-up lists the fields it needs as requiredResultFields. Apostra expands a dotted key into the nested field it stores, so freewheel.autoExecuteBookings sets autoExecuteBookings inside freewheel. Send each key once, and never a key and one of its children together. A config value is a string, a number or a boolean. Settings that Apostra owns for a connection, such as the CitrusAd namespaces, are not changed here. A result value is a string or a number. It can also be a list of strings, for freewheel.creativeInstanceIds, or a list of daily delivery rows for reporting.dailyBreakdown, each with a date, impressions and spend. Fields that a module writes itself, such as citrusad.delivery, are not sent by the caller. The earlier object form of config and result is deprecated. Apostra still accepts it for now and stores it as it always did, but send entries. A modular source’s products come from the committed feed. You cannot change them with save_wholesale_product. Upload a new feed instead. See Create and manage seller products.

Assign source work

Seller admins set primary and fallback owners in Approvals → Routing settings → Source tasks. A storefront rule can cover booking, creative, status or reporting work across its modular sources. Add a rule for one source when a different team operates it. The source rule wins over the storefront rule. If neither exists, new work goes to an active account admin. Each rule also sets when the task is due. New work records the matching rule, owner and due time. Only the task’s owner can complete it, and they must still be an active account member. A teammate among the owners the task is currently with (the rule’s primary owners, or its fallback owners once the task has passed to them) can select Assign to me on the modular-source Page to take a task the rule assigned. Once someone has claimed a task, or an admin has assigned it, it stays with that person; only an admin can move it. If two people select Assign to me at the same time, the first one gets the task and the other is told someone else already owns it. Claiming or reassigning one task does not change the rule for future work. When the owner of a task leaves the account or loses the role the rule names, the task passes to the fallback owners. A fallback owner can take it with Assign to me straight away, and within a minute Apostra assigns it to the first active fallback owner on its own. A teammate in the primary owners can also take a claimed task once its owner has lost access. The modular-source Page and Pending Operations show the named owner, whether they are a fallback owner, and the due time. Media Buys shows the same due time and names the seller team as the owner. It does not show the operator’s user ID or name in its buyer-safe work summary. Ownership does not add the person to the Seller Account or grant source access. Status ownership can be configured, but it will not assign work until the status-confirmation task is available. These rules do not yet send source-task notifications, reminders or escalation messages.

Pause and resume a buy you booked by hand

A buy you booked by hand runs in your ad server, so only you can stop it or start it again. When the buyer pauses one, Apostra opens a PAUSE_UPSTREAM_BOOKING work item instead of refusing the pause; a resume opens RESUME_UPSTREAM_BOOKING. A buy you have not booked yet holds nothing in your ad server, so its pause takes effect on Apostra at once and opens no task. A buy you booked by hand shows as PENDING_APPROVAL to the buyer until you have booked it, synced its creative and its flight has started. From then it shows as ACTIVE until you upload the final report, which makes it COMPLETED. The buy keeps delivering until you complete the pause task, and stays paused until you complete the resume task. Complete it with the time you made the change: delivery.stoppedAt for a pause, delivery.resumedAt for a resume. The time must name its offset, such as 2026-11-26T16:40:00-05:00, because the buyer is shown it and it is the only record that delivery changed. The work queue and Murph both ask for the time in your own time zone and default to now, so you do not type the offset yourself. A time in the hour the clocks go back happens twice, so for one of those the work queue asks which you mean. Completing a pause task moves the buy to PAUSED at that time. Completing a resume task moves it to ACTIVE at that time, or back to PENDING_APPROVAL if its flight has not started yet. If the buy runs in more than one place, such as two sources you booked by hand, or one you booked by hand and one that pauses without a person, each hand-booked source gets its own task. The buy moves only once every part has made the change, at the time the last part did; until then the buyer reads it as requested. If you cannot make the change, decline the task with a reason instead: choose Can’t pause this (or Can’t resume this) in the work queue, tell Murph, or call save_work_item with status: "rejected" and the reason in reviewerNotes. The buy keeps the state it was in, and the buyer is shown what you write. Reading the task afterwards with search or get shows that reason in its reviewerNotes, so you or a colleague can see what the buyer was told. If the buyer asks for the opposite before you act, such as resuming a buy whose pause task is still open, Apostra withdraws the open task and says why on it: the task reads CANCELLED, and its task.withdrawnReason on search and get gives the reason. The source Page shows the same reason on the task, and offers no complete or decline action on it. A withdrawn task can no longer be completed or declined. If you had already made the change in your ad server, undo it. A pause on a buy that runs in more than one place happens only if every part makes it. If another seller declines it, or the buyer withdraws it before every part has stopped, the buy stays ACTIVE, so every part must keep delivering:
  • If your pause task is still open, Apostra withdraws it and says why on it.
  • If you already completed it, Apostra opens a RESUME_UPSTREAM_BOOKING task asking you to start delivery again. Complete it with delivery.resumedAt as usual. The buy already reads ACTIVE, so completing it does not change what the buyer sees. If you cannot restart delivery, decline it with a reason: Apostra operations is told and follows up with you, and the buyer is not shown your reason.
A part whose seller pauses without a person, such as one run by a sales agent, is sent update_media_buy with paused: false automatically. If that resume cannot be sent or applied, Apostra operations is told and follows up with the seller.

Plan a no-spend campaign test

After the source’s read-only discovery preview returns the products you expect, ask Apostra to plan a no-spend test campaign for that modular source. Planning checks that the exact source and trafficking module are approved for the protected no-spend path. If that approval is missing, the plan stops before confirmation and tells you to ask Apostra Support for source-specific approval. Do not unpause the storefront to work around it. Planning does not create a campaign, media buy, creative or approval. Review the source, advertiser, flight, budget and product selections before you confirm the test. The confirmed run uses debug execution so it cannot spend, and it does not activate the source, unpause the storefront, publish a Listing or change one. A follow-up is addressed by both sourceId and id, and a completion that names no source is refused. Saving the same completed result again returns unchanged, and a conflicting correction is refused rather than overwriting the recorded result.

If your plan changes

Downgrading to Basic does not cancel or delete a modular source’s lifecycle state. A held reservation keeps reducing available capacity until it expires or Apostra releases it because its buy failed or was cancelled. A booked reservation stays booked. Open follow-ups and pending reports keep their status and history. The downgrade stops new composition and hides pilot surfaces. It does not represent an upstream cancellation, finished human work or a finished report.

What V3 does not cover

V3 has no tool that ingests a feed, lists a modular source’s products, or searches ad-server selectors. Feed ingest goes through the modular_inventory_feed Page. Credential entry stays in the Page and the operator UI, and no credential passes through a model.