x402 Payment Transactions

Settle a payment

Changed on

Settles an x402 payment using the quote ID and a signed payment authorization. The payment signature can be provided via the PAYMENT-SIGNATURE header or the payment_signature body parameter. Settlement is idempotent — submitting the same quote ID multiple times returns the existing transaction.

post/x402/credit_account

Request

  • Base URL
    https://api.telnyx.com/v2
  • URL
    https://api.telnyx.com/v2/x402/credit_account
  • Auth
    HTTP bearer

Headers

PAYMENT-SIGNATUREstring

Signed payment authorization for the quote. Alternative to providing payment_signature in the request body.

Request body

idstring required

The quote ID to settle.

payment_signaturestring

Base64-encoded signed payment authorization (x402 PaymentPayload). Can alternatively be provided via the PAYMENT-SIGNATURE header.

Response

Payment already settled (idempotent response)

Changes