network.attested.payment.initiate

procedurenetwork.attested

Shared protocol vocabulary

network.attested.* is defined upstream by attested.network. The drafts here are our proposed contributions; both brokers and point-of-sale services implement subsets of this namespace.

Broker-side checkout procedure. Creates a pending `network.attested.payment` record signed by the broker and returns a checkout URL plus a strongRef to the payment. Line item details are retained internally by the broker; they do not appear on the resulting record.

Input

NameTypeRequiredDescription
subjectstring (did)requiredDID of the payment recipient. Required by the broker so it knows whom to pay; the resulting `network.attested.payment` record only carries `subject` if the issuer opts in to publishing it.
itemsarray<#oneTime | #recurring>requiredLine items being paid for. Each entry is discriminated by `$type` as `#oneTime` or `#recurring`.
redirectUrlstring (uri)optionalURI the processor should redirect to after checkout completion or cancellation.

Output

NameTypeRequiredDescription
paymentcom.atproto.repo.strongRefrequiredStrongRef to the newly created `network.attested.payment` record.
checkoutUrlstring (uri)requiredProcessor-hosted checkout URL the payer should be redirected to.

Type: oneTime

NameTypeRequiredDescription
descriptionstringrequired
amountintegerrequiredLine total in the smallest unit of `currency` (PoS-side quantity is already multiplied in).(min: 0)
currencystringrequiredISO 4217 currency code.

Type: recurring

NameTypeRequiredDescription
descriptionstringrequired
amountintegerrequiredPer-period amount in the smallest unit of `currency`.(min: 0)
currencystringrequiredISO 4217 currency code.
intervalunionrequiredBilling cadence. Discriminated by `$type`: `#namedInterval` for the common cases (weekly / monthly / yearly), `#customInterval` for a custom number of days.
billingStartDatestring (datetime)optionalFirst billing period.

Type: namedInterval

NameTypeRequiredDescription
value"weekly" | "monthly" | "yearly"required

Type: customInterval

NameTypeRequiredDescription
daysintegerrequiredLength of one billing period in days.(min: 1)

Usage

This endpoint is part of the shared network.attested protocol vocabulary. Call it via a standard XrpcClient until @atiproto/agent exposes a dedicated namespace for it.