/v1/sourcesCreate a source
Creates a new source payment instrument. Supply the source type and any type-specific details required by the selected payment flow, such as amount for single-use sources or redirect.return_url for redirect authentication. You can attach the source to a customer or provide an original_source when cloning an existing source.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Source creation parameters, including payment-method details, ownership information, and flow-specific options.
Provide type unless both customer and original_source are specified. flow must be one of code_verification, none, receiver, or redirect; when flow is redirect, redirect.return_url must be provided, and receiver parameters can be used only with the receiver flow. currency must be a three-letter currency code, and amount is required for single_use sources.