SettlementRecord
¶
Source code in docs_src/capo_wafv2/types/settlement_record.py
amount
instance-attribute
¶
amount: MonetizationAmountValue
The payment amount in the specified currency.
content_path
instance-attribute
¶
content_path: NotRequired[FilterString]
The content path that was accessed.
intent
instance-attribute
¶
intent: NotRequired[FilterString]
The declared intent of the AI bot request.
network
instance-attribute
¶
network: NotRequired[SettlementFilterString]
The blockchain network on which the settlement occurred.
organization
instance-attribute
¶
organization: NotRequired[FilterString]
The organization associated with the AI bot.
payer_address
instance-attribute
¶
payer_address: NotRequired[SettlementFilterString]
The blockchain wallet address of the paying AI agent.
request_id
instance-attribute
¶
request_id: NotRequired[SettlementFilterString]
The WAF request ID associated with this settlement.
request_timestamp
instance-attribute
¶
request_timestamp: NotRequired[Timestamp]
The timestamp of the original web request.
source_category
instance-attribute
¶
source_category: NotRequired[FilterString]
The category of the AI bot source.
source_name
instance-attribute
¶
source_name: NotRequired[FilterString]
The name of the AI bot that made the payment.
status
instance-attribute
¶
status: SettlementStatus
The status of the settlement. Possible values:
-
SETTLED- The payment was successfully settled on the blockchain and the transfer from the payer's wallet to the publisher's wallet is confirmed. TheTransactionIdfield contains the on-chain transaction hash. Content is served to the client. -
PENDING- The blockchain transaction has been submitted but not yet confirmed on-chain. This is a transient state that automatically resolves to eitherSETTLEDorFAILED. No action is required. While pending, content is not served and the API returns a 402 response. Clients can retry the request. -
FAILED- The payment settlement was attempted but failed. Possible causes include insufficient funds, an expired payment authorization, or a reverted blockchain transaction. ThefailureReasonfield contains a machine-readable error code. Content is not served. -
SERVICE_ERROR- Settlement could not be completed due to an internal service issue or an issue with the payment network. Content is not served. The client's payment authorization remains valid and the request can be retried. -
SKIPPED_ORIGIN_ERROR- The origin returned a non-2xx response, so settlement was intentionally skipped. The client is not charged. -
DUPLICATE- A prior request with the same payment payload has already been settled. This status typically appears when a previous attempt timed out but the payment was ultimately processed. The client is not charged again.
transaction_id
instance-attribute
¶
transaction_id: NotRequired[SettlementIdString]
The blockchain transaction identifier. You can use this to verify the transaction on a blockchain explorer.
wallet_address
instance-attribute
¶
wallet_address: NotRequired[SettlementFilterString]
Your receiving wallet address.
web_acl_arn
instance-attribute
¶
web_acl_arn: NotRequired[ResourceArn]
The ARN of the web ACL that processed the request.