provider POST /v1/sources
@utdk/stripe /v1/sources
Shares a source
<p>Creates a new source object.</p>

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postsources
POST/v1/sources
<p>Creates a new source object.</p>

Input

Amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. Not supported for `receiver` type sources, where charge amount may not be specified until funds land.

Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) associated with the source. This is the currency for which the source will be chargeable once ready.

The `Customer` to whom the original source is attached to. Must be set when the original source is not a `Source` (e.g., `Card`).

Specifies which fields in the response should be expanded.

The authentication `flow` of the source to create. `flow` is one of `redirect`, `receiver`, `code_verification`, `none`. It is generally inferred unless a type supports multiple flows.

Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.

The source to share.

Information about the owner of the payment instrument that may be used or required by particular source types.

Optional parameters for the receiver flow. Can be set only if the source is a receiver (`flow` is `receiver`).

Parameters required for the redirect flow. Required if the source is authenticated by a redirect (`flow` is `redirect`).

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.

An arbitrary string to be displayed on your customer's statement. As an example, if your website is `RunClub` and the item you're charging for is a race ticket, you may want to specify a `statement_descriptor` of `RunClub 5K race ticket.` While many payment types will display this information, some may not display it at all.

An optional token used to create the source. When passed, token properties will override source parameters.

The `type` of the source to create. Required unless `customer` and `original_source` are specified (see the [Cloning card Sources](https://docs.stripe.com/sources/connect#cloning-card-sources) guide)

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postsources()