customers

Create customer payment method by external ID

Creates a new payment method for a customer using a Stripe confirmation token.

post/customers/external/{externalId}/payment-methods

Request

  • Base URL: https://api.agentpaid.io/api/v1
  • URL: https://api.agentpaid.io/api/v1/customers/external/{externalId}/payment-methods
  • Auth: HTTP bearer

Path parameters

externalIdstring required

The external ID of the customer

Request body

confirmationTokenstring required

Stripe confirmation token for the payment method

returnUrlstring required

URL to redirect to after payment method setup

metadataobject

Optional metadata to attach to the payment method

Response

Payment method created successfully

idstring

The payment method ID (typically from Stripe)

type'card' | 'us_bank_account' | 'sepa_debit'

The type of payment method

isDefaultboolean

Whether this is the customer's default payment method

createdAtstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.