Optionalstorage: BuyerAccountStorageOptionalrepair: (accountId: string, taskOptions?: TaskOptions) => Promise<readonly unknown[]>Lookup by seller-issued ID, partitioned by the registry's seller and caller.
Low-level: provision an account through sync_accounts and return the registry's record. This is
what ensure returned before AdCP 3.3; most callers want BuyerAccountRegistry.ensure, which
also routes to request_account and returns an AccountOutcome.
OptionaltaskOptions: TaskOptionsOptionalonTaskResult: (result: TaskResult<unknown>) => voidGet an account for a natural key at this seller (AdCP 3.3). Routes by capability: request_account
when the seller advertises account.requests, otherwise sync_accounts. Either way it resolves to an
AccountOutcome: ready, pending, ambiguous or rejected. Pending, ambiguous and rejected
are values, not errors; only a failure to process the call throws (AccountRequestError on the
request_account path, the typed account errors on sync_accounts).
Idempotent per (seller, caller, natural key): a repeat call returns the account, or the open request's
current state, and never opens a duplicate. currency and timezone join the key when it does not
carry them. Billing terms are sent only when an account is first requested.
Breaking in SDK 17 (AdCP 3.3): ensure used to resolve to the registry's ProvisionedAccount. That
call is now BuyerAccountRegistry.provision.
OptionaltaskOptions: TaskOptionsThe outcomes still waiting: open requests in review and accounts pending approval. Read from the registry; no network call. Use BuyerAccountRegistry.refresh to learn what moved.
Re-read open requests and accounts pending approval; resolve to the outcomes whose state moved. Call
it from a cron job or an account_request.changed webhook. One list_accounts read covers every
open request (request_ids); each account pending approval is re-read by its account_id.
OptionaltaskOptions: TaskOptionsChange an account's attributes through request_account (AdCP 3.3 account.requests). Resolves to
an AccountChangeOutcome: updated (same account_id, new revision, and effective_at for
money terms), separate_account or matched_existing (a different account; the registry is not
re-pointed until BuyerAccountRegistry.use), pending, or rejected.
billing, billing_entity, payment_terms) need options.revision, the
revision the change was approved against. The SDK never reads it for you, since that would defeat
the lost-update protection. Without it nothing is sent: AccountRequestError with code
ACCOUNT_REVISION_REQUIRED and dispatched: false.revision from list_accounts when omitted, and retry once on
CONFLICT when the fields being changed did not change concurrently.allowSeparateAccount defaults to false. A seller that would accept the change only on a new
account then rejects it, and the outcome's requiresNewAccount is true.Unknown attributes (ACCOUNT_CHANGE_INVALID) and sellers that do not advertise account.requests
(ACCOUNT_REQUESTS_UNSUPPORTED) are refused before dispatch. A failure to process the call throws
AccountRequestError. A pending change is not kept in the registry, which maps natural keys: keep
its request_id and read it back with BuyerAccountRegistry.changeStatus. A new change
request for the same account supersedes an open one.
OptionaltaskOptions: TaskOptionsThe current outcome of a change request, read through list_accounts request_ids. A request the
seller no longer knows is rejected with ACCOUNT_REQUEST_NOT_FOUND: send the change again.
OptionaltaskOptions: TaskOptionsPoint a natural key at accountId: account-scoped calls and new buys for key go to that account.
The explicit step after BuyerAccountRegistry.change returned separate_account or
matched_existing; the registry never re-points on its own. The account's status is read from
list_accounts unless you pass it, so the spend gate still holds a payment_required or pending
account. An account the caller cannot list is recorded as unknown and refused for spend until it
is listed.
OptionaltaskOptions: TaskOptionsOptionalobservationEpoch: numberOptionalexpectedRevision: numberAfter verifying account.status_changed, repair aliases by handle from the authoritative seller.
Optionaloptions: TaskOptionsBind reduced account keys to the buyer keys they came from, before a
request carrying them is sent to a seller on an older release. Each
reduced key serves one buyer key only. A key sent unreduced claims itself
(account and reduced equal), so a plain key and a reduced one can never
land on the same seller account in either order.
All-or-nothing: every claim is checked, against storage and against the other claims in the same request, before any is written. On a conflict nothing is written and the index and owner of the first conflicting claim are returned. A claim lost to a concurrent writer rolls back the claims this call already wrote.
The buyer key a reduced seller key was claimed for, if any.
The reduced key a buyer key reached an older seller with, if any.
Forget that account reached this seller under a reduced key. Call once
the account has moved to its full key: after a sync_accounts settings
update rekeys operator_unit in place, or after opening a new account
under the full key when the reduced fields (currency, timezone,
brand.countries) cannot change on an existing account. Until then the
client keeps addressing the seller account by its reduced key.
Capture before a seller request; observations older than a status repair are ignored.