Skip to content

X402PaymentRequiredResponse

Defined in: src/x402/types.ts:145

The JSON body returned by a resource server alongside the “Payment Required” response (HTTP 402, or the transport equivalent).

accepts is an OR-list: the client picks one entry and produces a matching X402PaymentPayload.

Properties

accepts

readonly accepts: readonly X402PaymentRequirements[]

Defined in: src/x402/types.ts:149


error?

readonly optional error?: string

Defined in: src/x402/types.ts:147


extensions?

readonly optional extensions?: Record<string, unknown>

Defined in: src/x402/types.ts:150


resource

readonly resource: X402ResourceInfo

Defined in: src/x402/types.ts:148


x402Version

readonly x402Version: 2

Defined in: src/x402/types.ts:146