stripe
Module stripe
API
Definitions
ballerinax/stripe Ballerina library
Overview
This is a generated connector for Stripe API v1 OpenAPI specification.
Stripe offers payment processing software and application programming interfaces for e-commerce websites and mobile applications.
The Stripe API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create a Stripe account
- Obtain token
- Obtain API Key following this guide and provide obtained API Key as the token at HTTP client initialization.
- Configure required permissions when generating the API Key.
Quickstart
To use the Stripe connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
First, import the ballerinax/stripe
module into the Ballerina project.
import ballerinax/stripe;
Step 2: Create a new connector instance
Configure the connection using the API-Key obtained.
stripe:ClientConfig configuration = { auth: { token: "<API-Key>" } }; stripe:Client stripeClient = check new (configuration);
Step 3: Invoke connector operation
-
Now you can use the operations available within the connector. Note that they are in the form of remote operations.
Following is an example on how to create a new customer in your Stripe account using the connector.
Send an sms
stripe:V1CustomersBody newCustomer = { address: { city: "<Customer City>", country: "<Customer Country>" }, email: "<Customer Email>", name: "<Customer Name>" }; stripe:Customer postCustomers = check stripeClient->createCustomer(newCustomer);
-
Use
bal run
command to compile and run the Ballerina program.
Clients
stripe: Client
This is a generated connector for Stripe API v1 OpenAPI Specification. Stripe offers payment processing software and application programming interfaces for e-commerce websites and mobile applications. The Stripe API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Constructor
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Create a Stripe account and obtain API Key following this guide.
Provide obtained API Key as the token at connector initialization. Configure required permissions when generating the API Key.
init (ConnectionConfig config, string serviceUrl)
- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.stripe.com/" - URL of the target service
listCoupons
function listCoupons(CreatedDetails? created, string? endingBefore, int? 'limit, string? startingAfter) returns InlineResponse200|error
Returns a list of your coupons.
Parameters
- created CreatedDetails? (default ()) - A filter on the list, based on the object
created
field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
Return Type
- InlineResponse200|error - Successful response.
getCoupon
Retrieves the coupon with the given ID.
Parameters
- coupon string - Coupon Id
createCustomer
function createCustomer(V1CustomersBody payload) returns Customer|error
Creates a new customer object.
Parameters
- payload V1CustomersBody - Customer details
getCustomer
function getCustomer(string customer, string[]? expand) returns InlineResponse2001|error
Retrieves the details of an existing customer. You need only supply the unique customer identifier that was returned upon customer creation.
Parameters
- customer string - Customer Id
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
Return Type
- InlineResponse2001|error - Successful response.
updateCustomer
function updateCustomer(string customer, CustomersCustomerBody payload) returns Customer|error
Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the past_due
state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.
This request accepts mostly the same arguments as the customer creation call.
deleteCustomer
function deleteCustomer(string customer) returns DeletedCustomer|error
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
Parameters
- customer string - Customer Id
Return Type
- DeletedCustomer|error - Successful response.
listInvoices
function listInvoices(string? collectionMethod, Created? created, string? customer, DueDate? dueDate, string? endingBefore, string[]? expand, int? 'limit, string? startingAfter, string? status, string? subscription) returns InvoicesList|error
You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
Parameters
- collectionMethod string? (default ()) - The collection method of the invoice to retrieve. Either
charge_automatically
orsend_invoice
.
- created Created? (default ()) - A filter on the list based on the object created field. The value can be a string with an integer Unix timestamp, or it can be a dictionary
- customer string? (default ()) - Only return invoices for the customer specified by this customer ID.
- dueDate DueDate? (default ()) - A filter on the list based on the object due_date field. The value can be an integer Unix timestamp, or it can be a dictionary
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
- status string? (default ()) - The status of the invoice, one of
draft
,open
,paid
,uncollectible
, orvoid
. Learn more
- subscription string? (default ()) - Only return invoices for the subscription specified by this subscription ID.
Return Type
- InvoicesList|error - Successful response.
createInvoice
function createInvoice(V1InvoicesBody payload) returns Invoice|error
This endpoint creates a draft invoice for a given customer. The draft invoice created pulls in all pending invoice items on that customer, including prorations. The invoice remains a draft until you finalize the invoice, which allows you to pay or send the invoice to your customers.
Parameters
- payload V1InvoicesBody - Invoice details
getInvoice
Retrieves the invoice with the given ID.
Parameters
- invoice string - Invoice Id
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
updateInvoice
function updateInvoice(string invoice, InvoicesInvoiceBody payload) returns Invoice|error
Draft invoices are fully editable. Once an invoice is finalized,
monetary values, as well as collection_method
, become uneditable.
If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or automatically reconciling invoices, pass
auto_advance=false
.
deleteInvoice
function deleteInvoice(string invoice) returns DeletedInvoice|error
Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be voided.
Parameters
- invoice string - Invoice Id
Return Type
- DeletedInvoice|error - Successful response.
payInvoice
function payInvoice(string invoice, InvoicePayBody payload) returns Invoice|error
Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your subscriptions settings. However, if you’d like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.
sendInvoice
function sendInvoice(string invoice, InvoiceSendBody payload) returns Invoice|error
Stripe will automatically send invoices to customers according to your subscriptions settings. However, if you’d like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.
Requests made in test-mode result in no emails being sent, despite sending an invoice.sent
event.
voidInvoice
function voidInvoice(string invoice, InvoiceVoidBody payload) returns Invoice|error
Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to deletion, however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
markInvoiceUncollectable
function markInvoiceUncollectable(string invoice, InvoiceMarkUncollectibleBody payload) returns Invoice|error
Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
getInvoicesInvoiceLines
function getInvoicesInvoiceLines(string invoice, string? endingBefore, int? 'limit, string? startingAfter) returns InvoiceLinesList|error
When retrieving an invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
Parameters
- invoice string - Invoice Id
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
Return Type
- InvoiceLinesList|error - Successful response.
getInvoicesUpcoming
function getInvoicesUpcoming(AutomaticTaxParam1? automaticTax, string? coupon, string? customer, CustomerDetailsParam? customerDetails, Discounts? discounts, InvoiceItemPreviewParams[]? invoiceItems, string? schedule, string? subscription, SubscriptionBillingCycleAnchor? subscriptionBillingCycleAnchor, SubscriptionCancelAt? subscriptionCancelAt, boolean? subscriptionCancelAtPeriodEnd, boolean? subscriptionCancelNow, SubscriptionDefaultTaxRates? subscriptionDefaultTaxRates, GetInvoicesUpcomingRequestBody[]? subscriptionItems, string? subscriptionProrationBehavior, int? subscriptionProrationDate, int? subscriptionStartDate, SubscriptionTrialEnd? subscriptionTrialEnd, boolean? subscriptionTrialFromPlan) returns Invoice|error
At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer’s discount.
You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass a proration_date
parameter when doing the actual subscription update. The value passed in should be the same as the subscription_proration_date
returned on the upcoming invoice resource. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start]
is equal to the subscription_proration_date
on the upcoming invoice resource.
Parameters
- automaticTax AutomaticTaxParam1? (default ()) - Settings for automatic tax lookup for this invoice preview.
- coupon string? (default ()) - The code of the coupon to apply. If
subscription
orsubscription_items
is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer's subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string.
- customer string? (default ()) - The identifier of the customer whose upcoming invoice you'd like to retrieve.
- customerDetails CustomerDetailsParam? (default ()) - Details about the customer you want to invoice or overrides for an existing customer.
- discounts Discounts? (default ()) - The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use
coupon
instead.
- invoiceItems InvoiceItemPreviewParams[]? (default ()) - List of invoice items to add or update in the upcoming invoice preview.
- schedule string? (default ()) - The identifier of the unstarted schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
- subscription string? (default ()) - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a
subscription_items
is provided, you will preview creating a subscription with those items. If neithersubscription
norsubscription_items
is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
- subscriptionBillingCycleAnchor SubscriptionBillingCycleAnchor? (default ()) - For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is used to determine the date of the first full invoice, and, for plans with
month
oryear
intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set tonow
orunchanged
.
- subscriptionCancelAt SubscriptionCancelAt? (default ()) - Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using
proration_behavior
.
- subscriptionCancelAtPeriodEnd boolean? (default ()) - Boolean indicating whether this subscription should cancel at the end of the current period.
- subscriptionCancelNow boolean? (default ()) - This simulates the subscription being canceled or expired immediately.
- subscriptionDefaultTaxRates SubscriptionDefaultTaxRates? (default ()) - If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not have
tax_rates
set.
- subscriptionItems GetInvoicesUpcomingRequestBody[]? (default ()) - A list of up to 20 subscription items, each with an attached price.
- subscriptionProrationBehavior string? (default ()) - Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting
billing_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes. Valid values arecreate_prorations
,none
, oralways_invoice
. Passingcreate_prorations
will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, passalways_invoice
. Prorations can be disabled by passingnone
.
- subscriptionProrationDate int? (default ()) - If previewing an update to a subscription, and doing proration,
subscription_proration_date
forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period, and cannot be before the subscription was on its current plan. If set,subscription
, and one ofsubscription_items
, orsubscription_trial_end
are required. Also,subscription_proration_behavior
cannot be set to 'none'.
- subscriptionStartDate int? (default ()) - Date a subscription is intended to start (can be future or past)
- subscriptionTrialEnd SubscriptionTrialEnd? (default ()) - If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one of
subscription_items
orsubscription
is required.
- subscriptionTrialFromPlan boolean? (default ()) - Indicates if a plan's
trial_period_days
should be applied to the subscription. Settingsubscription_trial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withsubscription_trial_end
is not allowed.
getInvoicesUpcomingLines
function getInvoicesUpcomingLines(AutomaticTaxParam2? automaticTax, string? coupon, string? customer, CustomerDetailsParam1? customerDetails, Discounts1? discounts, string? endingBefore, InvoiceItemPreviewParams[]? invoiceItems, int? 'limit, string? schedule, string? startingAfter, string? subscription, SubscriptionBillingCycleAnchor1? subscriptionBillingCycleAnchor, SubscriptionCancelAt1? subscriptionCancelAt, boolean? subscriptionCancelAtPeriodEnd, boolean? subscriptionCancelNow, SubscriptionDefaultTaxRates1? subscriptionDefaultTaxRates, GetInvoicesUpcomingRequestBody[]? subscriptionItems, string? subscriptionProrationBehavior, int? subscriptionProrationDate, int? subscriptionStartDate, SubscriptionTrialEnd1? subscriptionTrialEnd, boolean? subscriptionTrialFromPlan) returns InvoiceLinesList|error
When retrieving an upcoming invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
Parameters
- automaticTax AutomaticTaxParam2? (default ()) - Settings for automatic tax lookup for this invoice preview.
- coupon string? (default ()) - The code of the coupon to apply. If
subscription
orsubscription_items
is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer's subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string.
- customer string? (default ()) - The identifier of the customer whose upcoming invoice you'd like to retrieve.
- customerDetails CustomerDetailsParam1? (default ()) - Details about the customer you want to invoice or overrides for an existing customer.
- discounts Discounts1? (default ()) - The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use
coupon
instead.
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- invoiceItems InvoiceItemPreviewParams[]? (default ()) - List of invoice items to add or update in the upcoming invoice preview.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- schedule string? (default ()) - The identifier of the unstarted schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
- subscription string? (default ()) - The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a
subscription_items
is provided, you will preview creating a subscription with those items. If neithersubscription
norsubscription_items
is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
- subscriptionBillingCycleAnchor SubscriptionBillingCycleAnchor1? (default ()) - For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is used to determine the date of the first full invoice, and, for plans with
month
oryear
intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set tonow
orunchanged
.
- subscriptionCancelAt SubscriptionCancelAt1? (default ()) - Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using
proration_behavior
.
- subscriptionCancelAtPeriodEnd boolean? (default ()) - Boolean indicating whether this subscription should cancel at the end of the current period.
- subscriptionCancelNow boolean? (default ()) - This simulates the subscription being canceled or expired immediately.
- subscriptionDefaultTaxRates SubscriptionDefaultTaxRates1? (default ()) - If provided, the invoice returned will preview updating or creating a subscription with these default tax rates. The default tax rates will apply to any line item that does not have
tax_rates
set.
- subscriptionItems GetInvoicesUpcomingRequestBody[]? (default ()) - A list of up to 20 subscription items, each with an attached price.
- subscriptionProrationBehavior string? (default ()) - Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting
billing_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes. Valid values arecreate_prorations
,none
, oralways_invoice
. Passingcreate_prorations
will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, passalways_invoice
. Prorations can be disabled by passingnone
.
- subscriptionProrationDate int? (default ()) - If previewing an update to a subscription, and doing proration,
subscription_proration_date
forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period, and cannot be before the subscription was on its current plan. If set,subscription
, and one ofsubscription_items
, orsubscription_trial_end
are required. Also,subscription_proration_behavior
cannot be set to 'none'.
- subscriptionStartDate int? (default ()) - Date a subscription is intended to start (can be future or past)
- subscriptionTrialEnd SubscriptionTrialEnd1? (default ()) - If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one of
subscription_items
orsubscription
is required.
- subscriptionTrialFromPlan boolean? (default ()) - Indicates if a plan's
trial_period_days
should be applied to the subscription. Settingsubscription_trial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withsubscription_trial_end
is not allowed.
Return Type
- InvoiceLinesList|error - Successful response.
listPaymentMethods
function listPaymentMethods(string customer, string 'type, string? endingBefore, string[]? expand, int? 'limit, string? startingAfter) returns PaymentFlowsPaymentMethodList|error
Returns a list of PaymentMethods for a given Customer
Parameters
- customer string - The ID of the customer whose PaymentMethods will be retrieved.
- 'type string - A required filter on the list, based on the object
type
field.
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
Return Type
- PaymentFlowsPaymentMethodList|error - Successful response.
createPaymentMethod
function createPaymentMethod(V1PaymentMethodsBody payload) returns PaymentMethod|error
Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.
Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
Parameters
- payload V1PaymentMethodsBody - Payment method details
Return Type
- PaymentMethod|error - Successful response.
getPaymentMethod
function getPaymentMethod(string paymentMethod, string[]? expand) returns PaymentMethod|error
Retrieves a PaymentMethod object.
Parameters
- paymentMethod string - Payment method Id
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
Return Type
- PaymentMethod|error - Successful response.
updatePaymentMethod
function updatePaymentMethod(string paymentMethod, PaymentMethodsPaymentMethodBody payload) returns PaymentMethod|error
Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
Parameters
- paymentMethod string - Payment method Id
- payload PaymentMethodsPaymentMethodBody - Payment method details
Return Type
- PaymentMethod|error - Successful response.
attachPaymentMethodtoCustomer
function attachPaymentMethodtoCustomer(string paymentMethod, PaymentMethodAttachBody payload) returns PaymentMethod|error
Attaches a PaymentMethod object to a Customer.
To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent
or a PaymentIntent with setup_future_usage.
These approaches will perform any necessary steps to ensure that the PaymentMethod can be used in a future payment. Using the
/v1/payment_methods/:id/attach
endpoint does not ensure that future payments can be made with the attached PaymentMethod.
See Optimizing cards for future payments for more information about setting up future payments.
To use this PaymentMethod as the default for invoice or subscription payments,
set invoice_settings.default_payment_method
,
on the Customer to the PaymentMethod’s ID.
Parameters
- paymentMethod string - Payment method Id
- payload PaymentMethodAttachBody - The ID of the customer to which to attach the PaymentMethod
Return Type
- PaymentMethod|error - Successful response.
detachPaymentMethodfromCustomer
function detachPaymentMethodfromCustomer(string paymentMethod, PaymentMethodDetachBody payload) returns PaymentMethod|error
Detaches a PaymentMethod object from a Customer.
Parameters
- paymentMethod string - Payment method Id
- payload PaymentMethodDetachBody - Additional details
Return Type
- PaymentMethod|error - Successful response.
createPrice
function createPrice(V1PricesBody payload) returns Price|error
Creates a new price for an existing product. The price can be recurring or one-time.
Parameters
- payload V1PricesBody - Price details
updatePrice
function updatePrice(string price, PricesPriceBody payload) returns Price|error
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.
createProduct
function createProduct(V1ProductsBody payload) returns Product|error
Creates a new product object.
Parameters
- payload V1ProductsBody - Product details
updateProduct
function updateProduct(string id, ProductsIdBody payload) returns Product|error
Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
updateSubscriptionItem
function updateSubscriptionItem(string item, SubscriptionItemsItemBody payload) returns SubscriptionItem|error
Updates the plan or quantity of an item on a current subscription.
Parameters
- item string - Subscription item Id
- payload SubscriptionItemsItemBody - Subscription item details
Return Type
- SubscriptionItem|error - Successful response.
createSubscriptionItemUsageRecord
function createSubscriptionItemUsageRecord(string subscriptionItem, SubscriptionItemUsageRecordsBody payload) returns UsageRecord|error
Creates a usage record for a specified subscription item and date, and fills it with a quantity.
Usage records provide quantity
information that Stripe uses to track how much a customer is using your service. With usage information and the pricing model set up by the metered billing plan, Stripe helps you send accurate invoices to your customers.
The default calculation for usage is to add up all the quantity
values of the usage records within a billing period. You can change this default behavior with the billing plan’s aggregate_usage
parameter. When there is more than one usage record with the same timestamp, Stripe adds the quantity
values together. In most cases, this is the desired resolution, however, you can change this behavior with the action
parameter.
The default pricing model for metered billing is per-unit pricing. For finer granularity, you can configure metered billing to have a tiered pricing model.
Parameters
- subscriptionItem string - Subscription item Id
- payload SubscriptionItemUsageRecordsBody - Usage record details
Return Type
- UsageRecord|error - Successful response.
listSubscriptions
function listSubscriptions(string? collectionMethod, Created1? created, CurrentPeriodEnd? currentPeriodEnd, CurrentPeriodStart? currentPeriodStart, string? customer, string? endingBefore, string[]? expand, int? 'limit, string? price, string? startingAfter, string? status) returns InlineResponse2002|error
By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled
.
Parameters
- collectionMethod string? (default ()) - The collection method of the subscriptions to retrieve. Either
charge_automatically
orsend_invoice
.
- created Created1? (default ()) - Time at which the object was created. Measured in seconds since the Unix epoch
- currentPeriodEnd CurrentPeriodEnd? (default ()) - A filter on the list based on the object current_period_end field. The value can be a string with an integer Unix timestamp, or it can be a dictionary
- currentPeriodStart CurrentPeriodStart? (default ()) - A filter on the list based on the object current_period_start field. The value can be a string with an integer Unix timestamp, or it can be a dictionary
- customer string? (default ()) - The ID of the customer whose subscriptions will be retrieved.
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- price string? (default ()) - Filter for subscriptions that contain this recurring price ID.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
- status string? (default ()) - The status of the subscriptions to retrieve. Passing in a value of
canceled
will return all canceled subscriptions, including those belonging to deleted customers. Passended
to find subscriptions that are canceled and subscriptions that are expired due to incomplete payment. Passing in a value ofall
will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.
Return Type
- InlineResponse2002|error - Successful response.
createSubscriptions
function createSubscriptions(V1SubscriptionsBody payload) returns Subscription|error
Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions.
Parameters
- payload V1SubscriptionsBody - Subscription details
Return Type
- Subscription|error - Successful response.
getSubscription
function getSubscription(string subscriptionExposedId, string[]? expand) returns Subscription|error
Retrieves the subscription with the given ID.
Parameters
- subscriptionExposedId string - Subscription Id
- expand string[]? (default ()) - Specifies which fields in the response should be expanded.
Return Type
- Subscription|error - Successful response.
updateSubscription
function updateSubscription(string subscriptionExposedId, SubscriptionsSubscriptionExposedIdBody payload) returns Subscription|error
Updates an existing subscription on a customer to match the specified parameters. When changing plans or quantities, we will optionally prorate the price we charge next month to make up for any price changes. To preview how the proration will be calculated, use the upcoming invoice endpoint.
Parameters
- subscriptionExposedId string - Subscription Id
- payload SubscriptionsSubscriptionExposedIdBody - Subscription details
Return Type
- Subscription|error - Successful response.
deleteSubscription
function deleteSubscription(string subscriptionExposedId, boolean? invoiceNow, boolean? prorate) returns Subscription|error
Cancels a customer’s subscription immediately. The customer will not be charged again for the subscription.
Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.
By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
Parameters
- subscriptionExposedId string - subscription Id
- invoiceNow boolean? (default ()) - Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items.
- prorate boolean? (default ()) - Will generate a proration invoice item that credits remaining unused time until the subscription period end.
Return Type
- Subscription|error - Successful response.
listSubscriptionSchedules
function listSubscriptionSchedules(CreatedDetails? canceledAt, CreatedDetails? completedAt, CreatedDetails? created, string? customer, string? endingBefore, int? 'limit, CreatedDetails? releasedAt, boolean? scheduled, string? startingAfter) returns InlineResponse2003|error
Retrieves the list of your subscription schedules.
Parameters
- canceledAt CreatedDetails? (default ()) - Only return subscription schedules that were created canceled the given date interval.
- completedAt CreatedDetails? (default ()) - Only return subscription schedules that completed during the given date interval.
- created CreatedDetails? (default ()) - Only return subscription schedules that were created during the given date interval.
- customer string? (default ()) - Only return subscription schedules for the given customer.
- endingBefore string? (default ()) - A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list.
- 'limit int? (default ()) - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- releasedAt CreatedDetails? (default ()) - Only return subscription schedules that were released during the given date interval.
- scheduled boolean? (default ()) - Only return subscription schedules that have not started yet.
- startingAfter string? (default ()) - A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
Return Type
- InlineResponse2003|error - Successful response.
createSubscriptionSchedule
function createSubscriptionSchedule(V1SubscriptionSchedulesBody payload) returns SubscriptionSchedule|error
Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.
Parameters
- payload V1SubscriptionSchedulesBody - Subscription details
Return Type
- SubscriptionSchedule|error - Successful response.
getSubscriptionSchedule
function getSubscriptionSchedule(string schedule) returns SubscriptionSchedule|error
Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.
Parameters
- schedule string - Subscription schedule Id
Return Type
- SubscriptionSchedule|error - Successful response.
updateSubscriptionSchedule
function updateSubscriptionSchedule(string schedule, SubscriptionSchedulesScheduleBody payload) returns SubscriptionSchedule|error
Updates an existing subscription schedule.
Parameters
- schedule string - Subscription schedule Id
- payload SubscriptionSchedulesScheduleBody - Subscription schedule details
Return Type
- SubscriptionSchedule|error - Successful response.
cancelSubscriptionSchedule
function cancelSubscriptionSchedule(string schedule, ScheduleCancelBody payload) returns SubscriptionSchedule|error
Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started
or active
.
Parameters
- schedule string - Subscription schedule Id
- payload ScheduleCancelBody - Subscription schedule details
Return Type
- SubscriptionSchedule|error - Successful response.
releaseSubscriptionSchedule
function releaseSubscriptionSchedule(string schedule, ScheduleReleaseBody payload) returns SubscriptionSchedule|error
Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started
or active
. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription
property and set the subscription’s ID to the released_subscription
property.
Parameters
- schedule string - Subscription schedule Id
- payload ScheduleReleaseBody - Subscription schedule details
Return Type
- SubscriptionSchedule|error - Successful response.
Records
stripe: Account
This is an object representing a Stripe account. You can retrieve it to see properties on the account like its current e-mail address or if the account is enabled yet to make live charges.
Some properties, marked below, are available only to platforms that want to create and manage Express or Custom accounts.
Fields
- business_profile AccountBusinessProfile? - Business information about the account.
- business_type string? - The business type.
- capabilities AccountCapabilities? -
- charges_enabled boolean? - Whether the account can create live charges.
- company LegalEntityCompany? -
- controller AccountController? -
- country string? - The account's country.
- created int? - Time at which the object was created. Measured in seconds since the Unix epoch.
- default_currency string? - Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country.
- details_submitted boolean? - Whether account details have been submitted. Standard accounts cannot receive payouts before this is true.
- email string? - An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.
- external_accounts ExternalAccountList? - External accounts (bank accounts and debit cards) currently attached to this account
- id string - Unique identifier for the object.
- individual Person? - This is an object representing a person associated with a Stripe account. A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps. Related guide: Handling Identity Verification with the API.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payouts_enabled boolean? - Whether Stripe can send payouts to this account.
- requirements AccountRequirements? -
- settings AccountSettings? - Options for customizing how the account functions within Stripe.
- tos_acceptance AccountTosAcceptance? -
- 'type string? - The Stripe account type. Can be
standard
,express
, orcustom
.
stripe: AccountBacsDebitPaymentsSettings
Fields
- display_name string? - The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this will appear on the mandate, and as the statement descriptor.
stripe: AccountBrandingSettings
Fields
- icon string|File?? - (ID of a file upload) An icon for the account. Must be square and at least 128px x 128px.
- logo string|File?? - (ID of a file upload) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
- primary_color string? - A CSS hex color value representing the primary branding color for this account
- secondary_color string? - A CSS hex color value representing the secondary branding color for this account
stripe: AccountBusinessProfile
Fields
- mcc string? - The merchant category code for the account. MCCs are used to classify businesses based on the goods or services they provide.
- name string? - The customer-facing business name.
- product_description string? - Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
- support_address Address? - A publicly available mailing address for sending support issues to.
- support_email string? - A publicly available email address for sending support issues to.
- support_phone string? - A publicly available phone number to call with support issues.
- support_url string? - A publicly available website for handling support issues.
- url string? - The business's publicly available website.
stripe: AccountCapabilities
Fields
- acss_debit_payments string? - The status of the ACSS Direct Debits payments capability of the account, or whether the account can directly process ACSS Direct Debits charges.
- afterpay_clearpay_payments string? - The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
- au_becs_debit_payments string? - The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
- bacs_debit_payments string? - The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
- bancontact_payments string? - The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
- boleto_payments string? - The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
- card_issuing string? - The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
- card_payments string? - The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
- cartes_bancaires_payments string? - The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
- eps_payments string? - The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
- fpx_payments string? - The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
- giropay_payments string? - The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
- grabpay_payments string? - The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
- ideal_payments string? - The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
- jcb_payments string? - The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
- legacy_payments string? - The status of the legacy payments capability of the account.
- oxxo_payments string? - The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
- p24_payments string? - The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
- sepa_debit_payments string? - The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
- sofort_payments string? - The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
- tax_reporting_us_1099_k string? - The status of the tax reporting 1099-K (US) capability of the account.
- tax_reporting_us_1099_misc string? - The status of the tax reporting 1099-MISC (US) capability of the account.
- transfers string? - The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
stripe: AccountCapabilityRequirements
Fields
- current_deadline int? - Date by which the fields in
currently_due
must be collected to keep the capability enabled for the account. These fields may disable the capability sooner if the next threshold is reached before they are collected.
- currently_due AccountcapabilityrequirementsCurrentlydueItemsString[] - Fields that need to be collected to keep the capability enabled. If not collected by
current_deadline
, these fields appear inpast_due
as well, and the capability is disabled.
- disabled_reason string? - If the capability is disabled, this string describes why. Can be
requirements.past_due
,requirements.pending_verification
,listed
,platform_paused
,rejected.fraud
,rejected.listed
,rejected.terms_of_service
,rejected.other
,under_review
, orother
.rejected.unsupported_business
means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service: If you believe that the rejection is in error, please contact support@stripe.com for assistance.
- errors AccountRequirementsError[] - Fields that are
currently_due
and need to be collected again because validation or verification failed.
- eventually_due AccountcapabilityrequirementsEventuallydueItemsString[] - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in
currently_due
as well, andcurrent_deadline
becomes set.
- past_due AccountcapabilityrequirementsPastdueItemsString[] - Fields that weren't collected by
current_deadline
. These fields need to be collected to enable the capability on the account.
- pending_verification AccountcapabilityrequirementsPendingverificationItemsString[] - Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to
eventually_due
,currently_due
, orpast_due
.
stripe: AccountCardIssuingSettings
Fields
- tos_acceptance CardIssuingAccountTermsOfService? -
stripe: AccountCardPaymentsSettings
Fields
- decline_on AccountDeclineChargeOn? -
- statement_descriptor_prefix string? - The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic
statement_descriptor
specified on the charge.statement_descriptor_prefix
is useful for maximizing descriptor space for the dynamic portion.
stripe: AccountController
Fields
- is_controller boolean? -
true
if the Connect application retrieving the resource controls the account and can therefore exercise platform controls. Otherwise, this field is null.
- 'type string? - The controller type. Can be
application
, if a Connect application controls the account, oraccount
, if the account controls itself.
stripe: AccountDashboardSettings
Fields
- display_name string? - The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.
- timezone string? - The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the IANA Time Zone Database.
stripe: AccountDeclineChargeOn
Fields
- avs_failure boolean - Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
- cvc_failure boolean - Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
stripe: AccountLink
Account Links are the means by which a Connect platform grants a connected account permission to access Stripe-hosted applications, such as Connect Onboarding.
Related guide: Connect Onboarding.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- expires_at int - The timestamp at which this account link will expire.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- url string - The URL for the account link.
stripe: AccountPaymentsSettings
Fields
- statement_descriptor string? - The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic
statement_descriptor
specified on the charge.
- statement_descriptor_kana string? - The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
- statement_descriptor_kanji string? - The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
stripe: AccountPayoutSettings
Fields
- debit_negative_balances boolean - A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See our Understanding Connect Account Balances documentation for details. Default value is
true
for Express accounts andfalse
for Custom accounts.
- schedule TransferSchedule -
- statement_descriptor string? - The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
stripe: AccountRequirements
Fields
- current_deadline int? - Date by which the fields in
currently_due
must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.
- currently_due AccountrequirementsCurrentlydueItemsString[]? - Fields that need to be collected to keep the account enabled. If not collected by
current_deadline
, these fields appear inpast_due
as well, and the account is disabled.
- disabled_reason string? - If the account is disabled, this string describes why. Can be
requirements.past_due
,requirements.pending_verification
,listed
,platform_paused
,rejected.fraud
,rejected.listed
,rejected.terms_of_service
,rejected.other
,under_review
, orother
.
- errors AccountRequirementsError[]? - Fields that are
currently_due
and need to be collected again because validation or verification failed.
- eventually_due AccountrequirementsEventuallydueItemsString[]? - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in
currently_due
as well, andcurrent_deadline
becomes set.
- past_due AccountrequirementsPastdueItemsString[]? - Fields that weren't collected by
current_deadline
. These fields need to be collected to enable the account.
- pending_verification AccountrequirementsPendingverificationItemsString[]? - Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to
eventually_due
,currently_due
, orpast_due
.
stripe: AccountRequirementsError
Fields
- code string - The code for the type of error.
- reason string - An informative message that indicates the error type and provides additional details about the error.
- requirement string - The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
stripe: AccountSepaDebitPaymentsSettings
Fields
- creditor_id string? - SEPA creditor identifier that identifies the company making the payment.
stripe: AccountSettings
Fields
- bacs_debit_payments AccountBacsDebitPaymentsSettings? -
- branding AccountBrandingSettings -
- card_issuing AccountCardIssuingSettings? -
- card_payments AccountCardPaymentsSettings -
- dashboard AccountDashboardSettings -
- payments AccountPaymentsSettings -
- payouts AccountPayoutSettings? -
- sepa_debit_payments AccountSepaDebitPaymentsSettings? -
stripe: AccountTosAcceptance
Fields
- date int? - The Unix timestamp marking when the account representative accepted their service agreement
- ip string? - The IP address from which the account representative accepted their service agreement
- service_agreement string? - The user's service agreement type
- user_agent string? - The user agent of the browser from which the account representative accepted their service agreement
stripe: AddInvoiceItemEntry
Fields
- price string? -
- price_data OneTimePriceData? -
- quantity int? -
- tax_rates TaxRateArray|string?? -
stripe: AddInvoiceItemEntry1
Fields
- price string? -
- price_data OneTimePriceData? -
- quantity int? -
- tax_rates TaxratesItemsString[]|string?? -
stripe: AdditionalProperties
stripe: Address
Fields
- city string? - City, district, suburb, town, or village.
- country string? - Two-letter country code (ISO 3166-1 alpha-2).
- line1 string? - Address line 1 (e.g., street, PO Box, or company name).
- line2 string? - Address line 2 (e.g., apartment, suite, unit, or building).
- postal_code string? - ZIP or postal code.
- state string? - State, county, province, or region.
stripe: AlipayAccount
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- customer string|Customer|DeletedCustomer?? - The ID of the customer associated with this Alipay Account.
- fingerprint string - Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_amount int? - If the Alipay account object is not reusable, the exact amount that you can create a charge for.
- payment_currency string? - If the Alipay account object is not reusable, the exact currency that you can create a charge for.
- reusable boolean - True if you can create multiple payments using this account. If the account is reusable, then you can freely choose the amount of each payment.
- used boolean - Whether this Alipay account object has ever been used for a payment.
- username string - The username for the Alipay account.
stripe: ApiErrors
Fields
- charge string? - For card errors, the ID of the failed charge.
- code string? - For some errors that could be handled programmatically, a short string indicating the error code reported.
- decline_code string? - For card errors resulting from a card issuer decline, a short string indicating the card issuer's reason for the decline if they provide one.
- doc_url string? - A URL to more information about the error code reported.
- message string? - A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
- param string? - If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
- payment_intent PaymentIntent? - A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session. A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge. Related guide: Payment Intents API.
- payment_method PaymentMethod? - PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments or saved to Customer objects to store instrument details for future payments. Related guides: Payment Methods and More Payment Scenarios.
- payment_method_type string? - If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
- setup_intent SetupIntent? - A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow. Create a SetupIntent as soon as you're ready to collect your customer's payment credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid. The SetupIntent then transitions through multiple statuses as it guides you through the setup process. Successful SetupIntents result in payment credentials that are optimized for future payments. For example, cardholders in certain regions may need to be run through Strong Customer Authentication at the time of payment method collection in order to streamline later off-session payments. If the SetupIntent is used with a Customer, upon success, it will automatically attach the resulting payment method to that Customer. We recommend using SetupIntents or setup_future_usage on PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods. By using SetupIntents, you ensure that your customers experience the minimum set of required friction, even as regulations change over time. Related guide: Setup Intents API.
- 'source BankAccount|Card|Source?? - The source object for errors returned on a request involving a source.
- 'type string - The type of error returned. One of
api_error
,card_error
,idempotency_error
, orinvalid_request_error
stripe: ApmsSourcesSourceList
The customer's payment sources, if any.
Fields
- data (AlipayAccount|BankAccount|BitcoinReceiver|Card|Source?)[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: ApplePayDomain
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- domain_name string -
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: Application
Fields
- id string - Unique identifier for the object.
- name string? - The name of the application.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: ApplicationFee
Fields
- amount int - Amount earned, in %s.
- amount_refunded int - Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued)
- application string|Application? - ID of the Connect application that earned the fee.
- balance_transaction string|BalanceTransaction?? - Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- refunded boolean - Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
- refunds FeeRefundList - A list of refunds that have been applied to the fee.
stripe: AutomaticTax
Fields
- enabled boolean - Whether Stripe automatically computes tax on this invoice.
- status string? - The status of the most recent automated tax calculation for this invoice.
stripe: AutomaticTaxConfig
Automatic tax settings for this subscription.
Fields
- enabled boolean - Enabled
stripe: AutomaticTaxConfig1
Automatic tax settings for this subscription.
Fields
- enabled boolean -
stripe: AutomaticTaxConfig2
Default settings for automatic tax computation
Fields
- enabled boolean - Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription
stripe: AutomaticTaxConfig3
Fields
- enabled boolean -
stripe: AutomaticTaxParam
Settings for automatic tax lookup for this invoice.
Fields
- enabled boolean -
stripe: AutomaticTaxParam1
Fields
- enabled boolean -
stripe: AutomaticTaxParam2
Fields
- enabled boolean -
stripe: Balance
This is an object representing your Stripe balance. You can retrieve it to see the balance currently on your Stripe account.
You can also retrieve the balance history, which contains a list of transactions that contributed to the balance (charges, payouts, and so forth).
The available and pending amounts for each currency are broken down further by payment source types.
Related guide: Understanding Connect Account Balances.
Fields
- available BalanceAmount[] - Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API. The available balance for each currency and payment type can be found in the
source_types
property.
- connect_reserved BalanceAmount[]? - Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the
source_types
property.
- instant_available BalanceAmount[]? - Funds that can be paid out using Instant Payouts.
- issuing BalanceDetail? -
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- pending BalanceAmount[] - Funds that are not yet available in the balance, due to the 7-day rolling pay cycle. The pending balance for each currency, and for each payment type, can be found in the
source_types
property.
stripe: BalanceAmount
Fields
- amount int - Balance amount.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- source_types BalanceAmountBySourceType? -
stripe: BalanceAmountBySourceType
Fields
- bank_account int? - Amount for bank account.
- card int? - Amount for card.
- fpx int? - Amount for FPX.
stripe: BalanceDetail
Fields
- available BalanceAmount[] - Funds that are available for use.
stripe: BalanceTransaction
Balance transactions represent funds moving through your Stripe account. They're created for every type of transaction that comes into or flows out of your Stripe account balance.
Related guide: Balance Transaction Types.
Fields
- amount int - Gross amount of the transaction, in %s.
- available_on int - The date the transaction's net funds will become available in the Stripe balance.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- exchange_rate decimal? - The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then the
amount
in currency A, timesexchange_rate
, would be theamount
in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent'samount
would be1000
andcurrency
would beeur
. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction'samount
would be1234
,currency
would beusd
, andexchange_rate
would be1.234
.
- fee int - Fees (in %s) paid for this transaction.
- fee_details Fee[] - Detailed breakdown of fees (in %s) paid for this transaction.
- id string - Unique identifier for the object.
- net int - Net amount of the transaction, in %s.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- reporting_category string - Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
- 'source string|ApplicationFee|Charge|ConnectCollectionTransfer|Dispute|FeeRefund|IssuingAuthorization|IssuingDispute|IssuingTransaction|Payout|PlatformTaxFee|Refund|ReserveTransaction|TaxDeductedAtSource|Topup|Transfer|TransferReversal?? - The Stripe object to which this transaction is related.
- status string - If the transaction's net funds are available in the Stripe balance yet. Either
available
orpending
.
- 'type string - Transaction type:
adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to considerreporting_category
instead.
stripe: BancontactInvoicePaymentMethodOptionsParam
Fields
- preferred_language string? -
stripe: BankAccount
These bank accounts are payment methods on Customer
objects.
On the other hand External Accounts are transfer
destinations on Account
objects for Custom accounts.
They can be bank accounts or debit cards as well, and are documented in the links above.
Related guide: Bank Debits and Transfers.
Fields
- account_holder_name string? - The name of the person or business that owns the bank account.
- account_holder_type string? - The type of entity that holds the account. This can be either
individual
orcompany
.
- account_type string? - The bank account type. This can only be
checking
orsavings
in most countries. In Japan, this can only befutsu
ortoza
.
- available_payout_methods string[]? - A set of available payout methods for this bank account. Only values from this set should be passed as the
method
when creating a payout.
- bank_name string? - Name of the bank associated with the routing number (e.g.,
WELLS FARGO
).
- country string - Two-letter ISO code representing the country the bank account is located in.
- currency string - Three-letter ISO code for the currency paid out to the bank account.
- customer string|Customer|DeletedCustomer?? - The ID of the customer that the bank account is associated with.
- default_for_currency boolean? - Whether this bank account is the default external account for its currency.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- id string - Unique identifier for the object.
- last4 string - The last four digits of the bank account number.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- routing_number string? - The routing transit number for the bank account.
- status string - For bank accounts, possible values are
new
,validated
,verified
,verification_failed
, orerrored
. A bank account that hasn't had any activity or validation performed isnew
. If Stripe can determine that the bank account exists, its status will bevalidated
. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will beverified
. If the verification failed for any reason, such as microdeposit failure, the status will beverification_failed
. If a transfer sent to this bank account fails, we'll set the status toerrored
and will not continue to send transfers until the bank details are updated. For external accounts, possible values arenew
anderrored
. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set toerrored
and transfers are stopped until account details are updated.
stripe: BillingDetails
Fields
- address Address? - Billing address.
- email string? - Email address.
- name string? - Full name.
- phone string? - Billing phone number (including extension).
stripe: BillingDetailsAddress
Fields
- city string? -
- country string? -
- line1 string? -
- line2 string? -
- postal_code string? -
- state string? -
stripe: BillingDetailsInnerParams
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
Fields
- address BillingDetailsAddress|string?? -
- email string? -
- name string? -
- phone string? -
stripe: BillingPortalConfiguration
A portal configuration describes the functionality and behavior of a portal session.
Fields
- active boolean - Whether the configuration is active and can be used to create portal sessions.
- application string? - ID of the Connect Application that created the configuration.
- business_profile PortalBusinessProfile -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- features PortalFeatures -
- id string - Unique identifier for the object.
- is_default boolean - Whether the configuration is the default. If
true
, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- updated int - Time at which the object was last updated. Measured in seconds since the Unix epoch.
stripe: BillingPortalSession
The Billing customer portal is a Stripe-hosted UI for subscription and billing management.
A portal configuration describes the functionality and features that you want to provide to your customers through the portal.
A portal session describes the instantiation of the customer portal for a particular customer. By visiting the session's URL, the customer can manage their subscriptions and billing details. For security reasons, sessions are short-lived and will expire if the customer does not visit the URL. Create sessions on-demand when customers intend to manage their subscriptions and billing details.
Learn more in the product overview and integration guide.
Fields
- configuration string|BillingPortalConfiguration? - The configuration used by this session, describing the features available.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- customer string - The ID of the customer for this session.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- locale string? - The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s
preferred_locales
or browser’s locale is used.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string? - The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this
on_behalf_of
account appear in the portal. For more information, see the docs. Use the Accounts API to modify theon_behalf_of
account's branding settings, which the portal displays.
- return_url string - The URL to redirect customers to when they click on the portal's link to return to your website.
- url string - The short-lived URL of the session that gives customers access to the customer portal.
stripe: BillingThresholdParams
Fields
- amount_gte int? -
- reset_billing_cycle_anchor boolean? -
stripe: BillingThresholds
Fields
- usage_gte int -
stripe: BitcoinReceiver
Fields
- active boolean - True when this bitcoin receiver has received a non-zero amount of bitcoin.
- amount int - The amount of
currency
that you are collecting as payment.
- amount_received int - The amount of
currency
to whichbitcoin_amount_received
has been converted.
- bitcoin_amount int - The amount of bitcoin that the customer should send to fill the receiver. The
bitcoin_amount
is denominated in Satoshi: there are 10^8 Satoshi in one bitcoin.
- bitcoin_amount_received int - The amount of bitcoin that has been sent by the customer to this receiver.
- bitcoin_uri string - This URI can be displayed to the customer as a clickable link (to activate their bitcoin client) or as a QR code (for mobile wallets).
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO code for the currency to which the bitcoin will be converted.
- customer string? - The customer ID of the bitcoin receiver.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- email string? - The customer's email address, set by the API call that creates the receiver.
- filled boolean - This flag is initially false and updates to true when the customer sends the
bitcoin_amount
to this receiver.
- id string - Unique identifier for the object.
- inbound_address string - A bitcoin address that is specific to this receiver. The customer can send bitcoin to this address to fill the receiver.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment string? - The ID of the payment created from the receiver, if any. Hidden when viewing the receiver with a publishable key.
- refund_address string? - The refund address of this bitcoin receiver.
- transactions BitcoinTransactionList? - A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
- uncaptured_funds boolean - This receiver contains uncaptured funds that can be used for a payment or refunded.
- used_for_payment boolean? - Indicate if this source is used for payment.
stripe: BitcoinTransaction
Fields
- amount int - The amount of
currency
that the transaction was converted to in real-time.
- bitcoin_amount int - The amount of bitcoin contained in the transaction.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO code for the currency to which this transaction was converted.
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- receiver string - The receiver to which this transaction was sent.
stripe: BitcoinTransactionList
A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
Fields
- data BitcoinTransaction[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: Capability
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities.
Fields
- id string - The identifier for the capability.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- requested boolean - Whether the capability has been requested.
- requested_at int? - Time at which the capability was requested. Measured in seconds since the Unix epoch.
- requirements AccountCapabilityRequirements? -
- status string - The status of the capability. Can be
active
,inactive
,pending
, orunrequested
.
stripe: Card
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.
Related guide: Card Payments with Sources.
Fields
- address_city string? - City/District/Suburb/Town/Village.
- address_country string? - Billing address country, if provided when creating card.
- address_line1 string? - Address line 1 (Street address/PO Box/Company name).
- address_line1_check string? - If
address_line1
was provided, results of the check:pass
,fail
,unavailable
, orunchecked
.
- address_line2 string? - Address line 2 (Apartment/Suite/Unit/Building).
- address_state string? - State/County/Province/Region.
- address_zip string? - ZIP or postal code.
- address_zip_check string? - If
address_zip
was provided, results of the check:pass
,fail
,unavailable
, orunchecked
.
- available_payout_methods string[]? - A set of available payout methods for this card. Only values from this set should be passed as the
method
when creating a payout.
- brand string - Card brand. Can be
American Express
,Diners Club
,Discover
,JCB
,MasterCard
,UnionPay
,Visa
, orUnknown
.
- country string? - Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
- currency string? - Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
- customer string|Customer|DeletedCustomer?? - The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
- cvc_check string? - If a CVC was provided, results of the check:
pass
,fail
,unavailable
, orunchecked
. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see Check if a card is valid without a charge.
- default_for_currency boolean? - Whether this card is the default external account for its currency.
- dynamic_last4 string? - (For tokenized numbers only.) The last four digits of the device account number.
- exp_month int - Two-digit number representing the card's expiration month.
- exp_year int - Four-digit number representing the card's expiration year.
- fingerprint string? - Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
- funding string - Card funding type. Can be
credit
,debit
,prepaid
, orunknown
.
- id string - Unique identifier for the object.
- last4 string - The last four digits of the card.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string? - Cardholder name.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- tokenization_method string? - If the card number is tokenized, this is the method that was used. Can be
android_pay
(includes Google Pay),apple_pay
,masterpass
,visa_checkout
, or null.
stripe: CardDetailsParams
Fields
- cvc string? -
- exp_month int -
- exp_year int -
- number string -
stripe: CardGeneratedFromPaymentMethodDetails
Fields
- card_present PaymentMethodDetailsCardPresent? -
- 'type string - The type of payment method transaction-specific details from the transaction that generated this
card
payment method. Alwayscard_present
.
stripe: CardInvoicePaymentMethodOptionsParam
Fields
- request_three_d_secure string? -
stripe: CardIssuingAccountTermsOfService
Fields
- date int? - The Unix timestamp marking when the account representative accepted the service agreement.
- ip string? - The IP address from which the account representative accepted the service agreement.
- user_agent string? - The user agent of the browser from which the account representative accepted the service agreement.
stripe: CardList
Fields
- data Card[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: CardMandatePaymentMethodDetails
stripe: Charge
To charge a credit or a debit card, you create a Charge
object. You can
retrieve and refund individual charges as well as list all charges. Charges
are identified by a unique, random ID.
Related guide: Accept a payment with the Charges API.
Fields
- amount int - Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
- amount_captured int - Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made).
- amount_refunded int - Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued).
- application string|Application?? - ID of the Connect application that created the charge.
- application_fee string|ApplicationFee?? - The application fee (if any) for the charge. See the Connect documentation for details.
- application_fee_amount int? - The amount of the application fee (if any) requested for the charge. See the Connect documentation for details.
- balance_transaction string|BalanceTransaction?? - ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).
- billing_details BillingDetails -
- calculated_statement_descriptor string? - The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
- captured boolean - If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer?? - ID of the customer this charge is for if one exists.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- disputed boolean - Whether the charge has been disputed.
- failure_code string? - Error code explaining reason for charge failure if available (see the errors section for a list of codes).
- failure_message string? - Message to user further explaining reason for charge failure if available.
- fraud_details ChargeFraudDetails? - Information on fraud assessments for the charge.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string|Account?? - The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the Connect documentation for details.
- outcome ChargeOutcome? - Details about whether the payment was accepted, and why. See understanding declines for details.
- paid boolean -
true
if the charge succeeded, or was successfully authorized for later capture.
- payment_intent string|PaymentIntent?? - ID of the PaymentIntent associated with this charge, if one exists.
- payment_method string? - ID of the payment method used in this charge.
- payment_method_details PaymentMethodDetails? - Details about the payment method at the time of the transaction.
- receipt_email string? - This is the email address that the receipt for this charge was sent to.
- receipt_number string? - This is the transaction number that appears on email receipts sent for this charge. This attribute will be
null
until a receipt has been sent.
- receipt_url string? - This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
- refunded boolean - Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
- refunds RefundList - A list of refunds that have been applied to the charge.
- shipping Shipping? - Shipping information for the charge.
- source_transfer string|Transfer?? - The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.
- statement_descriptor string? - For card charges, use
statement_descriptor_suffix
instead. Otherwise, you can use this value as the complete description of a charge on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- statement_descriptor_suffix string? - Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- status string - The status of the payment is either
succeeded
,pending
, orfailed
.
- transfer_data ChargeTransferData? - An optional dictionary including the account to automatically transfer to as part of a destination charge. See the Connect documentation for details.
- transfer_group string? - A string that identifies this transaction as part of a group. See the Connect documentation for details.
stripe: ChargeFraudDetails
Fields
- stripe_report string? - Assessments from Stripe. If set, the value is
fraudulent
.
- user_report string? - Assessments reported by you. If set, possible values of are
safe
andfraudulent
.
stripe: ChargeOutcome
Fields
- network_status string? - Possible values are
approved_by_network
,declined_by_network
,not_sent_to_network
, andreversed_after_approval
. The valuereversed_after_approval
indicates the payment was blocked by Stripe after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
- reason string? - An enumerated value providing a more detailed explanation of the outcome's
type
. Charges blocked by Radar's default block rule have the valuehighest_risk_level
. Charges placed in review by Radar's default review rule have the valueelevated_risk_level
. Charges authorized, blocked, or placed in review by custom rules have the valuerule
. See understanding declines for more details.
- risk_level string? - Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are
normal
,elevated
,highest
. For non-card payments, and card-based payments predating the public assignment of risk levels, this field will have the valuenot_assessed
. In the event of an error in the evaluation, this field will have the valueunknown
. This field is only available with Radar.
- risk_score int? - Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated payments are between 0 and 100. For non-card payments, card-based payments predating the public assignment of risk scores, or in the event of an error during evaluation, this field will not be present. This field is only available with Radar for Fraud Teams.
- seller_message string? - A human-readable description of the outcome type and reason, designed for you (the recipient of the payment), not your customer.
- 'type string - Possible values are
authorized
,manual_review
,issuer_declined
,blocked
, andinvalid
. See understanding declines and Radar reviews for details.
stripe: ChargeTransferData
Fields
- amount int? - The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
stripe: CheckoutAcssDebitMandateOptions
Fields
- custom_mandate_url string? - A URL for custom mandate text
- interval_description string? - Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
- payment_schedule string? - Payment schedule for the mandate.
- transaction_type string? - Transaction type of the mandate.
stripe: CheckoutAcssDebitPaymentMethodOptions
Fields
- currency string? - Currency supported by the bank account. Returned when the Session is in
setup
mode.
- mandate_options CheckoutAcssDebitMandateOptions? -
- verification_method string? - Bank account verification method.
stripe: CheckoutSession
A Checkout Session represents your customer's session as they pay for one-time purchases or subscriptions through Checkout. We recommend creating a new Session each time your customer attempts to pay.
Once payment is successful, the Checkout Session will contain a reference to the Customer, and either the successful PaymentIntent or an active Subscription.
You can create a Checkout Session on your server and pass its ID to the client to begin Checkout.
Related guide: Checkout Server Quickstart.
Fields
- allow_promotion_codes boolean? - Enables user redeemable promotion codes.
- amount_subtotal int? - Total of all items before discounts or taxes are applied.
- amount_total int? - Total of all items after discounts and taxes are applied.
- automatic_tax PaymentPagesCheckoutSessionAutomaticTax -
- billing_address_collection string? - Describes whether Checkout should collect the customer's billing address.
- cancel_url string - The URL the customer will be directed to if they decide to cancel payment and return to your website.
- client_reference_id string? - A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
- currency string? - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer?? - The ID of the customer for this Session.
For Checkout Sessions in
payment
orsubscription
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
- customer_details PaymentPagesCheckoutSessionCustomerDetails? - The customer details including the customer's tax exempt status and the customer's tax IDs. Only present on Sessions in
payment
orsubscription
mode.
- customer_email string? - If provided, this value will be used when the Customer object is created.
If not provided, customers will be asked to enter their email address.
Use this parameter to prefill customer data if you already have an email
on file. To access information about the customer once the payment flow is
complete, use the
customer
attribute.
- id string - Unique identifier for the object. Used to pass to
redirectToCheckout
in Stripe.js.
- line_items PaymentPagesCheckoutSessionListLineItems? - The line items purchased by the customer.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- locale string? - The IETF language tag of the locale Checkout is displayed in. If blank or
auto
, the browser's locale is used.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- mode string - The mode of the Checkout Session.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_intent string|PaymentIntent?? - The ID of the PaymentIntent for Checkout Sessions in
payment
mode.
- payment_method_options CheckoutSessionPaymentMethodOptions? - Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
- payment_method_types CheckoutsessionPaymentmethodtypesItemsString[] - A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
- payment_status string - The payment status of the Checkout Session, one of
paid
,unpaid
, orno_payment_required
. You can use this value to decide when to fulfill your customer's order.
- setup_intent string|SetupIntent?? - The ID of the SetupIntent for Checkout Sessions in
setup
mode.
- shipping Shipping? - Shipping information for this Checkout Session.
- shipping_address_collection PaymentPagesPaymentPageResourcesShippingAddressCollection? - When set, provides configuration for Checkout to collect a shipping address from a customer.
- submit_type string? - Describes the type of transaction being performed by Checkout in order to customize
relevant text on the page, such as the submit button.
submit_type
can only be specified on Checkout Sessions inpayment
mode, but not Checkout Sessions insubscription
orsetup
mode.
- subscription string|Subscription?? - The ID of the subscription for Checkout Sessions in
subscription
mode.
- success_url string - The URL the customer will be directed to after the payment or subscription creation is successful.
- tax_id_collection PaymentPagesCheckoutSessionTaxIdCollection? -
- total_details PaymentPagesCheckoutSessionTotalDetails? - Tax and discount details for the computed total amount.
- url string? - The URL to the Checkout Session.
stripe: CheckoutSessionPaymentMethodOptions
Fields
- acss_debit CheckoutAcssDebitPaymentMethodOptions? -
- boleto PaymentMethodOptionsBoleto? -
- oxxo PaymentMethodOptionsOxxo? -
stripe: ClientHttp1Settings
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy ProxyConfig? - Proxy server related options
stripe: ConfigurationItemParams
Fields
- billing_thresholds ItemBillingThresholdsParam|string?? -
- price string? -
- price_data RecurringPriceData1? -
- quantity int? -
- tax_rates TaxratesItemsString[]|string?? -
stripe: ConnectCollectionTransfer
Fields
- amount int - Amount transferred, in %s.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|CredentialsConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings? - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings? - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded
/x-forwarded
header
- poolConfig PoolConfiguration? - Configurations associated with request pooling
- cache CacheConfig? - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding
) header
- circuitBreaker CircuitBreakerConfig? - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig RetryConfig? - Configurations associated with retrying
- responseLimits ResponseLimitConfigs? - Configurations associated with inbound response size limits
- secureSocket ClientSecureSocket? - SSL/TLS-related options
- proxy ProxyConfig? - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
stripe: CountrySpec
Stripe needs to collect certain pieces of information about each account created. These requirements can differ depending on the account's country. The Country Specs API makes these rules available to your integration.
You can also view the information from this API call as an online guide.
Fields
- default_currency string - The default currency for this country. This applies to both payment methods and bank accounts.
- id string - Unique identifier for the object. Represented as the ISO country code for this country.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- supported_bank_account_currencies record {} - Currencies that can be accepted in the specific country (for transfers).
- supported_payment_currencies CountryspecSupportedpaymentcurrenciesItemsString[] - Currencies that can be accepted in the specified country (for payments).
- supported_payment_methods CountryspecSupportedpaymentmethodsItemsString[] - Payment methods available in the specified country. You may need to enable some payment methods (e.g., ACH) on your account before they appear in this list. The
stripe
payment method refers to charging through your platform.
- supported_transfer_countries CountryspecSupportedtransfercountriesItemsString[] - Countries that can accept transfers from the specified country.
- verification_fields CountrySpecVerificationFields -
stripe: CountrySpecVerificationFieldDetails
Fields
- additional CountryspecverificationfielddetailsAdditionalItemsString[] - Additional fields which are only required for some users.
- minimum CountryspecverificationfielddetailsMinimumItemsString[] - Fields which every account must eventually provide.
stripe: CountrySpecVerificationFields
Fields
- company CountrySpecVerificationFieldDetails -
- individual CountrySpecVerificationFieldDetails -
stripe: Coupon
A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to invoices or orders. Coupons do not work with conventional one-off charges.
Fields
- amount_off int? - Amount (in the
currency
specified) that will be taken off the subtotal of any invoices for this customer.
- applies_to CouponAppliesTo? - Contains information about what this coupon applies to
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string? - If
amount_off
has been set, the three-letter ISO code for the currency of the amount to take off.
- duration string - One of
forever
,once
, andrepeating
. Describes how long a customer who applies this coupon will get the discount.
- duration_in_months int? - If
duration
isrepeating
, the number of months the coupon applies. Null if couponduration
isforever
oronce
.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- max_redemptions int? - Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string? - Name of the coupon displayed to customers on for instance invoices or receipts.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- percent_off decimal? - Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead.
- redeem_by int? - Date after which the coupon can no longer be redeemed.
- times_redeemed int - Number of times this coupon has been applied to a customer.
- valid boolean - Taking account of the above properties, whether this coupon can still be applied to a customer.
stripe: CouponAppliesTo
Contains information about what this coupon applies to
Fields
- products CouponappliestoProductsItemsString[] - A list of product IDs this coupon applies to
stripe: CreatedFilterOptions
Fields
- gt int? -
- gte int? -
- lt int? -
- lte int? -
stripe: CreditNote
Issue a credit note to adjust an invoice's amount after the invoice is finalized.
Related guide: Credit Notes.
Fields
- amount int - The integer amount in %s representing the total amount of the credit note, including tax.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer? - ID of the customer.
- customer_balance_transaction string|CustomerBalanceTransaction?? - Customer balance transaction related to this credit note.
- discount_amount int - The integer amount in %s representing the total amount of discount that was credited.
- discount_amounts DiscountsResourceDiscountAmount[] - The aggregate amounts calculated per discount for all line items.
- id string - Unique identifier for the object.
- lines CreditNoteLinesList - Line items that make up the credit note
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- memo string? - Customer-facing text that appears on the credit note PDF.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- number string - A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- out_of_band_amount int? - Amount that was credited outside of Stripe.
- pdf string - The link to download the PDF of the credit note.
- reason string? - Reason for issuing this credit note, one of
duplicate
,fraudulent
,order_change
, orproduct_unsatisfactory
- status string - Status of this credit note, one of
issued
orvoid
. Learn more about voiding credit notes.
- subtotal int - The integer amount in %s representing the amount of the credit note, excluding tax and invoice level discounts.
- tax_amounts CreditNoteTaxAmount[] - The aggregate amounts calculated per tax rate for all line items.
- total int - The integer amount in %s representing the total amount of the credit note, including tax and all discount.
- 'type string - Type of this credit note, one of
pre_payment
orpost_payment
. Apre_payment
credit note means it was issued when the invoice was open. Apost_payment
credit note means it was issued when the invoice was paid.
- voided_at int? - The time that the credit note was voided.
stripe: CreditNoteLineItem
Fields
- amount int - The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
- description string? - Description of the item being credited.
- discount_amount int - The integer amount in %s representing the discount being credited for this line item.
- discount_amounts DiscountsResourceDiscountAmount[] - The amount of discount calculated per discount for this line item
- id string - Unique identifier for the object.
- invoice_line_item string? - ID of the invoice line item being credited
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- quantity int? - The number of units of product being credited.
- tax_amounts CreditNoteTaxAmount[] - The amount of tax calculated per tax rate for this line item
- tax_rates TaxRate[] - The tax rates which apply to the line item.
- 'type string - The type of the credit note line item, one of
invoice_line_item
orcustom_line_item
. When the type isinvoice_line_item
there is an additionalinvoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice.
- unit_amount int? - The cost of each unit of product being credited.
- unit_amount_decimal string? - Same as
unit_amount
, but contains a decimal value with at most 12 decimal places.
stripe: CreditNoteLinesList
Line items that make up the credit note
Fields
- data CreditNoteLineItem[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: CreditNoteTaxAmount
Fields
- amount int - The amount, in %s, of the tax.
- inclusive boolean - Whether this tax amount is inclusive or exclusive.
stripe: Customer
Customer
objects allow you to perform recurring charges, and to track
multiple charges, that are associated with the same customer. The API allows
you to create, delete, and update your customers. You can retrieve individual
customers as well as a list of all your customers.
Related guide: Save a card during payment.
Fields
- address Address? - The customer's address.
- balance int? - Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string? - Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
- default_source string|AlipayAccount|BankAccount|BitcoinReceiver|Card|Source?? - ID of the default payment source for the customer. If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method field instead.
- delinquent boolean? - When the customer's latest invoice is billed by charging automatically,
delinquent
istrue
if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice,delinquent
istrue
if the invoice isn't paid by its due date. If an invoice is marked uncollectible by dunning,delinquent
doesn't get reset tofalse
.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- discount Discount? - Describes the current discount active on the customer, if there is one.
- email string? - The customer's email address.
- id string - Unique identifier for the object.
- invoice_prefix string? - The prefix for the customer used to generate unique invoice numbers.
- invoice_settings InvoiceSettingCustomerSetting? -
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string? - The customer's full name or business name.
- next_invoice_sequence int? - The suffix of the customer's next invoice number, e.g., 0001.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- phone string? - The customer's phone number.
- preferred_locales CustomerPreferredlocalesItemsString[]? - The customer's preferred locales (languages), ordered by preference.
- shipping Shipping? - Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
- sources ApmsSourcesSourceList? - The customer's payment sources, if any.
- subscriptions SubscriptionList? - The customer's current subscriptions, if any.
- tax CustomerTax? -
- tax_exempt string? - Describes the customer's tax exemption status. One of
none
,exempt
, orreverse
. When set toreverse
, invoice and receipt PDFs include the text "Reverse charge".
- tax_ids TaxIDsList? - The customer's tax IDs.
stripe: CustomerAcceptance
Fields
- accepted_at int? - The time at which the customer accepted the Mandate.
- offline OfflineAcceptance? -
- online OnlineAcceptance? -
- 'type string - The type of customer acceptance information included with the Mandate. One of
online
oroffline
.
stripe: CustomerAddressWithName
Fields
- address OptionalFieldsAddress -
- name string -
- phone string? -
stripe: CustomerAdresss
Fields
- city string? -
- country string? -
- line1 string? -
- line2 string? -
- postal_code string? -
- state string? -
stripe: CustomerBalanceTransaction
Each customer has a balance
value,
which denotes a debit or credit that's automatically applied to their next invoice upon finalization.
You may modify the value directly by using the update customer API,
or by creating a Customer Balance Transaction, which increments or decrements the customer's balance
by the specified amount
.
Related guide: Customer Balance to learn more.
Fields
- amount int - The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's
balance
.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- credit_note string|CreditNote?? - The ID of the credit note (if any) related to the transaction.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- ending_balance int - The customer's
balance
after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'type string - Transaction type:
adjustment
,applied_to_invoice
,credit_note
,initial
,invoice_too_large
,invoice_too_small
,unspent_receiver_credit
, orunapplied_from_invoice
. See the Customer Balance page to learn more about transaction types.
stripe: CustomerBankAccountDetails
Fields
- account_holder_name string? -
- account_holder_type string? -
- account_number string -
- country string -
- currency string? -
- 'object string? -
- routing_number string? -
stripe: CustomerCardDetails
Fields
- address_city string? -
- address_country string? -
- address_line1 string? -
- address_line2 string? -
- address_state string? -
- address_zip string? -
- cvc string? -
- exp_month int -
- exp_year int -
- metadata record {}? -
- name string? -
- number string -
- 'object string? -
stripe: CustomerDetailsParam
Fields
- address CustomerAdresss|string?? -
- shipping CustomerAddressWithName|string?? -
- tax TaxParam1? -
- tax_exempt string? -
- tax_ids DataParams[]? -
stripe: CustomerDetailsParam1
Fields
- address CustomerAdresss|string?? -
- shipping CustomerAddressWithName|string?? -
- tax TaxParam1? -
- tax_exempt string? -
- tax_ids DataParams[]? -
stripe: CustomerParam
Default invoice settings for this customer.
Fields
- default_payment_method string? -
- footer string? -
stripe: CustomerParam1
Default invoice settings for this customer.
Fields
- custom_fields InvoiceSettingsCustomFields|string?? -
- default_payment_method string? -
- footer string? -
stripe: CustomersCustomerBody
Fields
- address CustomerAdresss|string?? - The customer's address.
- balance int? - An integer amount in %s that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
- bank_account CustomerBankAccountDetails|string?? - Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
- card CustomerCardDetails|string?? - A token, like the ones returned by Stripe.js.
- coupon string? -
- default_alipay_account string? - ID of Alipay account to make the customer's new default for invoice payments.
- default_bank_account string? - ID of bank account to make the customer's new default for invoice payments.
- default_card string? - ID of card to make the customer's new default for invoice payments.
- default_source string? - If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method parameter. Provide the ID of a payment source already attached to this customer to make it this customer's default payment source. If you want to add a new payment source and make it the default, see the source property.
- description string? - An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
- email string? - Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters.
- expand CustomerscustomerbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- invoice_prefix string? - The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
- invoice_settings CustomerParam1? - Default invoice settings for this customer.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- name string? - The customer's full name or business name.
- next_invoice_sequence int? - The sequence to be used on the customer's next invoice. Defaults to 1.
- phone string? - The customer's phone number.
- preferred_locales CustomerscustomerbodyPreferredlocalesItemsString[]? - Customer's preferred languages, ordered by preference.
- promotion_code string? - The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
- shipping CustomerShippingAddress|string?? - The customer's shipping information. Appears on invoices emailed to this customer.
- 'source string? -
- tax TaxParam? - Tax details about the customer.
- tax_exempt string? - The customer's tax exemption. One of
none
,exempt
, orreverse
.
- trial_end string|int?? - Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value
now
can be provided to end the customer's trial immediately. Can be at most two years frombilling_cycle_anchor
.
stripe: CustomerShippingAddress
Fields
- address OptionalFieldsAddress -
- name string -
- phone string? -
stripe: CustomerTax
Fields
- automatic_tax string - Surfaces if automatic tax computation is possible given the current customer location information.
- ip_address string? - A recent IP address of the customer used for tax reporting and tax location inference.
- location CustomerTaxLocation? - The customer's location as identified by Stripe Tax.
stripe: CustomerTaxLocation
Fields
- country string - The customer's country as identified by Stripe Tax.
- 'source string - The data source used to infer the customer's location.
- state string? - The customer's state, county, province, or region as identified by Stripe Tax.
stripe: CustomFieldParams
Fields
- name string -
- value string -
stripe: CustomfieldsItemsObject
Fields
- name string -
- value string -
stripe: DataParams
Fields
- 'type string -
- value string -
stripe: DefaultSettingsParams
Object representing the subscription schedule's default settings.
Fields
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner’s Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage.
- automatic_tax AutomaticTaxConfig2? - Default settings for automatic tax computation
- billing_cycle_anchor string? - Can be set to phase_start to set the anchor to the start of the phase or automatic to automatically change it if needed. Cannot be set to phase_start if this phase specifies a trial
- billing_thresholds BillingThresholdParams|string?? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds
- collection_method string? - Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults to charge_automatically on creation
- default_payment_method string? - ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer’s invoice settings
- invoice_settings SubscriptionSchedulesParam? - All invoices will be billed using the specified settings
- transfer_data TransferDataSpecs|string?? - The data with which to automatically create a Transfer for each of the associated subscription’s invoices
stripe: DefaultSettingsParams1
Object representing the subscription schedule's default settings.
Fields
- application_fee_percent decimal? -
- automatic_tax AutomaticTaxConfig3? -
- billing_cycle_anchor string? -
- billing_thresholds BillingThresholdParams|string?? -
- collection_method string? -
- default_payment_method string? -
- invoice_settings SubscriptionSchedulesParam1? -
- transfer_data TransferDataSpecs|string?? -
stripe: DeletedAccount
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedAlipayAccount
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedApplePayDomain
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedBankAccount
Fields
- currency string? - Three-letter ISO code for the currency paid out to the bank account.
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedBitcoinReceiver
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedCard
Fields
- currency string? - Three-letter ISO code for the currency paid out to the bank account.
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedCoupon
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedCustomer
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedDiscount
Fields
- checkout_session string? - The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
- customer string|Customer|DeletedCustomer?? - The ID of the customer associated with this discount.
- deleted boolean - Always true for a deleted object
- id string - The ID of the discount object. Discounts cannot be fetched by ID. Use
expand[]=discounts
in API calls to expand discount IDs in an array.
- invoice string? - The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
- invoice_item string? - The invoice item
id
(or invoice line itemid
for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- promotion_code string|PromotionCode?? - The promotion code applied to create this discount.
- 'start int - Date that the coupon was applied.
- subscription string? - The subscription that this coupon is applied to, if it is applied to a particular subscription.
stripe: DeletedInvoice
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedInvoiceitem
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedPerson
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedPlan
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedPrice
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedProduct
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedRadarValueList
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedRadarValueListItem
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedRecipient
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedSku
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedSubscriptionItem
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedTaxId
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedTerminalLocation
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedTerminalReader
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeletedWebhookEndpoint
Fields
- deleted boolean - Always true for a deleted object
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: DeliveryEstimate
Fields
- date string? - If
type
is"exact"
,date
will be the expected delivery date in the format YYYY-MM-DD.
- earliest string? - If
type
is"range"
,earliest
will be be the earliest delivery date in the format YYYY-MM-DD.
- latest string? - If
type
is"range"
,latest
will be the latest delivery date in the format YYYY-MM-DD.
- 'type string - The type of estimate. Must be either
"range"
or"exact"
.
stripe: Discount
A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end.
Related guide: Applying Discounts to Subscriptions.
Fields
- checkout_session string? - The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
- customer string|Customer|DeletedCustomer?? - The ID of the customer associated with this discount.
- end int? - If the coupon has a duration of
repeating
, the date that this discount will end. If the coupon has a duration ofonce
orforever
, this attribute will be null.
- id string - The ID of the discount object. Discounts cannot be fetched by ID. Use
expand[]=discounts
in API calls to expand discount IDs in an array.
- invoice string? - The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
- invoice_item string? - The invoice item
id
(or invoice line itemid
for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- promotion_code string|PromotionCode?? - The promotion code applied to create this discount.
- 'start int - Date that the coupon was applied.
- subscription string? - The subscription that this coupon is applied to, if it is applied to a particular subscription.
stripe: DiscountsDataParam1
Fields
- coupon string? -
- discount string? -
stripe: DiscountsResourceDiscountAmount
Fields
- amount int - The amount, in %s, of the discount.
- discount string|Discount|DeletedDiscount? - The discount that was applied to get this discount amount.
stripe: Dispute
A dispute occurs when a customer questions your charge with their card issuer. When this happens, you're given the opportunity to respond to the dispute with evidence that shows that the charge is legitimate. You can find more information about the dispute process in our Disputes and Fraud documentation.
Related guide: Disputes and Fraud.
Fields
- amount int - Disputed amount. Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).
- balance_transactions BalanceTransaction[] - List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- evidence DisputeEvidence -
- evidence_details DisputeEvidenceDetails -
- id string - Unique identifier for the object.
- is_charge_refundable boolean - If true, it is still possible to refund the disputed payment. Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_intent string|PaymentIntent?? - ID of the PaymentIntent that was disputed.
- reason string - Reason given by cardholder for dispute. Possible values are
bank_cannot_process
,check_returned
,credit_not_processed
,customer_initiated
,debit_not_authorized
,duplicate
,fraudulent
,general
,incorrect_account_details
,insufficient_funds
,product_not_received
,product_unacceptable
,subscription_canceled
, orunrecognized
. Read more about dispute reasons.
- status string - Current status of dispute. Possible values are
warning_needs_response
,warning_under_review
,warning_closed
,needs_response
,under_review
,charge_refunded
,won
, orlost
.
stripe: DisputeEvidence
Fields
- access_activity_log string? - Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.
- billing_address string? - The billing address provided by the customer.
- cancellation_policy string|File?? - (ID of a file upload) Your subscription cancellation policy, as shown to the customer.
- cancellation_policy_disclosure string? - An explanation of how and when the customer was shown your refund policy prior to purchase.
- cancellation_rebuttal string? - A justification for why the customer's subscription was not canceled.
- customer_communication string|File?? - (ID of a file upload) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service.
- customer_email_address string? - The email address of the customer.
- customer_name string? - The name of the customer.
- customer_purchase_ip string? - The IP address that the customer used when making the purchase.
- customer_signature string|File?? - (ID of a file upload) A relevant document or contract showing the customer's signature.
- duplicate_charge_documentation string|File?? - (ID of a file upload) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate.
- duplicate_charge_explanation string? - An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.
- duplicate_charge_id string? - The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
- product_description string? - A description of the product or service that was sold.
- receipt string|File?? - (ID of a file upload) Any receipt or message sent to the customer notifying them of the charge.
- refund_policy string|File?? - (ID of a file upload) Your refund policy, as shown to the customer.
- refund_policy_disclosure string? - Documentation demonstrating that the customer was shown your refund policy prior to purchase.
- refund_refusal_explanation string? - A justification for why the customer is not entitled to a refund.
- service_date string? - The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
- service_documentation string|File?? - (ID of a file upload) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement.
- shipping_address string? - The address to which a physical product was shipped. You should try to include as complete address information as possible.
- shipping_carrier string? - The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.
- shipping_date string? - The date on which a physical product began its route to the shipping address, in a clear human-readable format.
- shipping_documentation string|File?? - (ID of a file upload) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible.
- shipping_tracking_number string? - The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
- uncategorized_file string|File?? - (ID of a file upload) Any additional evidence or statements.
- uncategorized_text string? - Any additional evidence or statements.
stripe: DisputeEvidenceDetails
Fields
- due_by int? - Date by which evidence must be submitted in order to successfully challenge dispute. Will be null if the customer's bank or credit card company doesn't allow a response for this particular dispute.
- has_evidence boolean - Whether evidence has been staged for this dispute.
- past_due boolean - Whether the last evidence submission was submitted past the due date. Defaults to
false
if no evidence submissions have occurred. Iftrue
, then delivery of the latest evidence is not guaranteed.
- submission_count int - The number of times evidence has been submitted. Typically, you may only submit evidence once.
stripe: EphemeralKey
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- expires int - Time at which the key will expire. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- secret string? - The key's secret. You can use this value to make authorized requests to the Stripe API.
stripe: Error
An error response from the Stripe API
Fields
- 'error ApiErrors -
stripe: Event
Events are our way of letting you know when something interesting happens in
your account. When an interesting event occurs, we create a new Event
object. For example, when a charge succeeds, we create a charge.succeeded
event; and when an invoice payment attempt fails, we create an
invoice.payment_failed
event. Note that many API requests may cause multiple
events to be created. For example, if you create a new subscription for a
customer, you will receive both a customer.subscription.created
event and a
charge.succeeded
event.
Events occur when the state of another API resource changes. The state of that
resource at the time of the change is embedded in the event's data field. For
example, a charge.succeeded
event will contain a charge, and an
invoice.payment_failed
event will contain an invoice.
As with other API resources, you can use endpoints to retrieve an
individual event or a list of events
from the API. We also have a separate
webhooks system for sending the
Event
objects directly to an endpoint on your server. Webhooks are managed
in your
account settings,
and our Using Webhooks guide will help you get set up.
When using Connect, you can also receive notifications of
events that occur in connected accounts. For these events, there will be an
additional account
attribute in the received Event
object.
NOTE: Right now, access to events through the Retrieve Event API is guaranteed only for 30 days.
Fields
- account string? - The connected account that originated the event.
- api_version string? - The Stripe API version used to render
data
. Note: This property is populated only for events on or after October 31, 2014.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- data NotificationEventData -
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- pending_webhooks int - Number of webhooks that have yet to be successfully delivered (i.e., to return a 20x response) to the URLs you've specified.
- request NotificationEventRequest? - Information on the API request that instigated the event.
- 'type string - Description of the event (e.g.,
invoice.created
orcharge.refunded
).
stripe: ExchangeRate
Exchange Rate
objects allow you to determine the rates that Stripe is
currently using to convert from one currency to another. Since this number is
variable throughout the day, there are various reasons why you might want to
know the current rate (for example, to dynamically price an item for a user
with a default payment in a foreign currency).
If you want a guarantee that the charge is made with a certain exchange rate
you expect is current, you can pass in exchange_rate
to charges endpoints.
If the value is no longer up to date, the charge won't go through. Please
refer to our Exchange Rates API guide for more
details.
Fields
- id string - Unique identifier for the object. Represented as the three-letter ISO currency code in lowercase.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- rates record {} - Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.
stripe: ExternalAccountList
External accounts (bank accounts and debit cards) currently attached to this account
Fields
- data (BankAccount|Card?)[] - The list contains all external accounts that have been attached to the Stripe account. These may be bank accounts or cards.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: Fee
Fields
- amount int - Amount of the fee, in cents.
- application string? - ID of the Connect application that earned the fee.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- 'type string - Type of the fee, one of:
application_fee
,stripe_fee
ortax
.
stripe: FeeRefund
Application Fee Refund
objects allow you to refund an application fee that
has previously been created but not yet refunded. Funds will be refunded to
the Stripe account from which the fee was originally collected.
Related guide: Refunding Application Fees.
Fields
- amount int - Amount, in %s.
- balance_transaction string|BalanceTransaction?? - Balance transaction that describes the impact on your account balance.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- fee string|ApplicationFee? - ID of the application fee that was refunded.
- id string - Unique identifier for the object.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: FeeRefundList
A list of refunds that have been applied to the fee.
Fields
- data FeeRefund[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: File
This is an object representing a file hosted on Stripe's servers. The file may have been uploaded by yourself using the create file request (for example, when uploading dispute evidence) or it may have been created by Stripe (for example, the results of a Sigma scheduled query).
Related guide: File Upload Guide.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- expires_at int? - The time at which the file expires and is no longer available in epoch seconds.
- filename string? - A filename for the file, suitable for saving to a filesystem.
- id string - Unique identifier for the object.
- links FileFileLinkList? - A list of file links that point at this file.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- size int - The size in bytes of the file object.
- title string? - A user friendly title for the document.
- 'type string? - The type of the file returned (e.g.,
csv
,pdf
,jpg
, orpng
).
- url string? - The URL from which the file can be downloaded using your live secret API key.
stripe: FileFileLinkList
A list of file links that point at this file.
Fields
- data FileLink[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: FileLink
To share the contents of a File
object with non-Stripe users, you can
create a FileLink
. FileLink
s contain a URL that can be used to
retrieve the contents of the file without authentication.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- expired boolean - Whether this link is already expired.
- expires_at int? - Time at which the link expires.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- url string? - The publicly accessible URL to download the file.
stripe: FinancialReportingFinanceReportRunRunParameters
Fields
- columns FinancialreportingfinancereportrunrunparametersColumnsItemsString[]? - The set of output columns requested for inclusion in the report run.
- connected_account string? - Connected account ID by which to filter the report run.
- currency string? - Currency of objects to be included in the report run.
- interval_end int? - Ending timestamp of data to be included in the report run (exclusive).
- interval_start int? - Starting timestamp of data to be included in the report run.
- payout string? - Payout ID by which to filter the report run.
- reporting_category string? - Category of balance transactions to be included in the report run.
- timezone string? - Defaults to
Etc/UTC
. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the IANA Time Zone Database. Has no effect oninterval_start
orinterval_end
.
stripe: GelatoDataDocumentReportDateOfBirth
Point in Time
Fields
- day int? - Numerical day between 1 and 31.
- month int? - Numerical month between 1 and 12.
- year int? - The four-digit year.
stripe: GelatoDataDocumentReportExpirationDate
Point in Time
Fields
- day int? - Numerical day between 1 and 31.
- month int? - Numerical month between 1 and 12.
- year int? - The four-digit year.
stripe: GelatoDataDocumentReportIssuedDate
Point in Time
Fields
- day int? - Numerical day between 1 and 31.
- month int? - Numerical month between 1 and 12.
- year int? - The four-digit year.
stripe: GelatoDataIdNumberReportDate
Point in Time
Fields
- day int? - Numerical day between 1 and 31.
- month int? - Numerical month between 1 and 12.
- year int? - The four-digit year.
stripe: GelatoDataVerifiedOutputsDate
Point in Time
Fields
- day int? - Numerical day between 1 and 31.
- month int? - Numerical month between 1 and 12.
- year int? - The four-digit year.
stripe: GelatoDocumentReport
Result from a document check
Fields
- address Address? - Address as it appears in the document.
- dob GelatoDataDocumentReportDateOfBirth? - Date of birth as it appears in the document.
- 'error GelatoDocumentReportError? - Details on the verification error. Present when status is
unverified
.
- expiration_date GelatoDataDocumentReportExpirationDate? - Expiration date of the document.
- files GelatodocumentreportFilesItemsString[]? - Array of File ids containing images for this document.
- first_name string? - First name as it appears in the document.
- issued_date GelatoDataDocumentReportIssuedDate? - Issued date of the document.
- issuing_country string? - Issuing country of the document.
- last_name string? - Last name as it appears in the document.
- number string? - Document ID number.
- status string - Status of this
document
check.
- 'type string? - Type of the document.
stripe: GelatoDocumentReportError
Fields
- code string? - A short machine-readable string giving the reason for the verification failure.
- reason string? - A human-readable message giving the reason for the failure. These messages can be shown to your users.
stripe: GelatoIdNumberReport
Result from an id_number check
Fields
- dob GelatoDataIdNumberReportDate? - Date of birth.
- 'error GelatoIdNumberReportError? - Details on the verification error. Present when status is
unverified
.
- first_name string? - First name.
- id_number string? - ID number.
- id_number_type string? - Type of ID number.
- last_name string? - Last name.
- status string - Status of this
id_number
check.
stripe: GelatoIdNumberReportError
Fields
- code string? - A short machine-readable string giving the reason for the verification failure.
- reason string? - A human-readable message giving the reason for the failure. These messages can be shown to your users.
stripe: GelatoReportDocumentOptions
Fields
- allowed_types string[]? - Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
- require_id_number boolean? - Collect an ID number and perform an ID number check with the document’s extracted name and date of birth.
- require_live_capture boolean? - Disable image uploads, identity document images have to be captured using the device’s camera.
- require_matching_selfie boolean? - Capture a face image and perform a selfie check comparing a photo ID and a picture of your user’s face. Learn more.
stripe: GelatoReportIdNumberOptions
stripe: GelatoSelfieReport
Result from a selfie check
Fields
- 'error GelatoSelfieReportError? - Details on the verification error. Present when status is
unverified
.
- status string - Status of this
selfie
check.
stripe: GelatoSelfieReportError
Fields
- code string? - A short machine-readable string giving the reason for the verification failure.
- reason string? - A human-readable message giving the reason for the failure. These messages can be shown to your users.
stripe: GelatoSessionDocumentOptions
Fields
- allowed_types string[]? - Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
- require_id_number boolean? - Collect an ID number and perform an ID number check with the document’s extracted name and date of birth.
- require_live_capture boolean? - Disable image uploads, identity document images have to be captured using the device’s camera.
- require_matching_selfie boolean? - Capture a face image and perform a selfie check comparing a photo ID and a picture of your user’s face. Learn more.
stripe: GelatoSessionIdNumberOptions
stripe: GelatoSessionLastError
Shows last VerificationSession error
Fields
- code string? - A short machine-readable string giving the reason for the verification or user-session failure.
- reason string? - A message that explains the reason for verification or user-session failure.
stripe: GelatoVerificationReportOptions
Fields
- document GelatoReportDocumentOptions? -
- id_number GelatoReportIdNumberOptions? -
stripe: GelatoVerificationSessionOptions
Fields
- document GelatoSessionDocumentOptions? -
- id_number GelatoSessionIdNumberOptions? -
stripe: GelatoVerifiedOutputs
Fields
- address Address? - The user's verified address.
- dob GelatoDataVerifiedOutputsDate? - The user’s verified date of birth.
- first_name string? - The user's verified first name.
- id_number string? - The user's verified id number.
- id_number_type string? - The user's verified id number type.
- last_name string? - The user's verified last name.
stripe: GetInvoicesUpcomingRequestBody
Fields
- billing_thresholds ItemBillingThresholdsParam|string?? -
- clear_usage boolean? -
- deleted boolean? -
- id string? -
- metadata record {}|string?? -
- price string? -
- price_data RecurringPriceData1? -
- quantity int? -
- tax_rates TaxratesItemsString[]|string?? -
stripe: IdentityVerificationReport
A VerificationReport is the result of an attempt to collect and verify data from a user.
The collection of verification checks performed is determined from the type
and options
parameters used. You can find the result of each verification check performed in the
appropriate sub-resource: document
, id_number
, selfie
.
Each VerificationReport contains a copy of any data collected by the user as well as reference IDs which can be used to access collected images through the FileUpload API. To configure and create VerificationReports, use the VerificationSession API.
Related guides: Accessing verification results.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- document GelatoDocumentReport? - Result from a document check
- id string - Unique identifier for the object.
- id_number GelatoIdNumberReport? - Result from an id_number check
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- options GelatoVerificationReportOptions -
- selfie GelatoSelfieReport? - Result from a selfie check
- 'type string - Type of report.
- verification_session string? - ID of the VerificationSession that created this report.
stripe: IdentityVerificationSession
A VerificationSession guides you through the process of collecting and verifying the identities of your users. It contains details about the type of verification, such as what verification check to perform. Only create one VerificationSession for each verification in your system.
A VerificationSession transitions through multiple statuses throughout its lifetime as it progresses through the verification flow. The VerificationSession contains the user’s verified data after verification checks are complete.
Related guide: The Verification Sessions API
Fields
- client_secret string? - The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- last_error GelatoSessionLastError? - If present, this property tells you the last error encountered when processing the verification.
- last_verification_report string|IdentityVerificationReport?? - ID of the most recent VerificationReport. Learn more about accessing detailed verification results.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- options GelatoVerificationSessionOptions -
- redaction VerificationSessionRedaction? - Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
- status string - Status of this VerificationSession. Learn more about the lifecycle of sessions.
- 'type string - The type of verification check to be performed.
- url string? - The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe.
- verified_outputs GelatoVerifiedOutputs? - The user’s verified data.
stripe: InlineProductParams
These fields can be used to create a new product that this price will belong to.
Fields
- active boolean? - Whether the product is currently available for purchase. Defaults to true.
- id string? - The ID of the product that this price will belong to.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata
- name string - The product’s name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions
- statement_descriptor string? - An arbitrary string to be displayed on your customer’s credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all
- tax_code string? - A tax code ID
- unit_label string? - A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions
stripe: InlineResponse200
Fields
- data Coupon[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: InlineResponse2002
Fields
- data Subscription[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: InlineResponse2003
Fields
- data SubscriptionSchedule[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: Invoice
Invoices are statements of amounts owed by a customer, and are either generated one-off, or generated periodically from a subscription.
They contain invoice items, and proration adjustments that may be caused by subscription upgrades/downgrades (if necessary).
If your invoice is configured to be billed through automatic charges, Stripe automatically finalizes your invoice and attempts payment. Note that finalizing the invoice, when automatic, does not happen immediately as the invoice is created. Stripe waits until one hour after the last webhook was successfully sent (or the last webhook timed out after failing). If you (and the platforms you may have connected to) have no webhooks configured, Stripe waits one hour after creation to finalize the invoice.
If your invoice is configured to be billed by sending an email, then based on your email settings, Stripe will email the invoice to your customer and await payment. These emails can contain a link to a hosted page to pay the invoice.
Stripe applies any customer credit on the account before determining the amount due for the invoice (i.e., the amount that will be actually charged). If the amount due for the invoice is less than Stripe's minimum allowed charge per currency, the invoice is automatically marked paid, and we add the amount due to the customer's credit balance which is applied to the next invoice.
More details on the customer's credit balance are here.
Related guide: Send Invoices to Customers.
Fields
- account_country string? - The country of the business associated with this invoice, most often the business creating the invoice.
- account_name string? - The public name of the business associated with this invoice, most often the business creating the invoice.
- account_tax_ids (string|TaxId|DeletedTaxId?)[]? - The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- amount_due int - Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the
amount_due
may be 0. If there is a positivestarting_balance
for the invoice (the customer owes money), theamount_due
will also take that into account. The charge that gets generated for the invoice will be for the amount specified inamount_due
.
- amount_paid int - The amount, in %s, that was paid.
- amount_remaining int - The amount remaining, in %s, that is due.
- application_fee_amount int? - The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.
- attempt_count int - Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.
- attempted boolean - Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the
invoice.created
webhook, for example, so you might not want to display that invoice as unpaid to your users.
- auto_advance boolean? - Controls whether Stripe will perform automatic collection of the invoice. When
false
, the invoice's state will not automatically advance without an explicit action.
- automatic_tax AutomaticTax -
- billing_reason string? - Indicates the reason why the invoice was created.
subscription_cycle
indicates an invoice created by a subscription advancing into a new period.subscription_create
indicates an invoice created due to creating a subscription.subscription_update
indicates an invoice created due to updating a subscription.subscription
is set for all old invoices to indicate either a change to a subscription or a period advancement.manual
is set for all invoices unrelated to a subscription (for example: created via the invoice editor). Theupcoming
value is reserved for simulated invoices per the upcoming invoice endpoint.subscription_threshold
indicates an invoice created due to a billing threshold being reached.
- collection_method string - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- custom_fields InvoiceSettingCustomField[]? - Custom fields displayed on the invoice.
- customer string|Customer|DeletedCustomer?? - The ID of the customer who will be billed.
- customer_address Address? - The customer's address. Until the invoice is finalized, this field will equal
customer.address
. Once the invoice is finalized, this field will no longer be updated.
- customer_email string? - The customer's email. Until the invoice is finalized, this field will equal
customer.email
. Once the invoice is finalized, this field will no longer be updated.
- customer_name string? - The customer's name. Until the invoice is finalized, this field will equal
customer.name
. Once the invoice is finalized, this field will no longer be updated.
- customer_phone string? - The customer's phone number. Until the invoice is finalized, this field will equal
customer.phone
. Once the invoice is finalized, this field will no longer be updated.
- customer_shipping Shipping? - The customer's shipping information. Until the invoice is finalized, this field will equal
customer.shipping
. Once the invoice is finalized, this field will no longer be updated.
- customer_tax_exempt string? - The customer's tax exempt status. Until the invoice is finalized, this field will equal
customer.tax_exempt
. Once the invoice is finalized, this field will no longer be updated.
- customer_tax_ids InvoicesResourceInvoiceTaxId[]? - The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as
customer.tax_ids
. Once the invoice is finalized, this field will no longer be updated.
- default_payment_method string|PaymentMethod?? - ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
- default_source string|AlipayAccount|BankAccount|BitcoinReceiver|Card|Source?? - ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- default_tax_rates TaxRate[] - The tax rates applied to this invoice, if any.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
- discount Discount? - Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.
- discounts (string|Discount|DeletedDiscount?)[]? - The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use
expand[]=discounts
to expand each discount.
- due_date int? - The date on which payment for this invoice is due. This value will be
null
for invoices wherecollection_method=charge_automatically
.
- ending_balance int? - Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
- footer string? - Footer displayed on the invoice.
- hosted_invoice_url string? - The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
- id string? - Unique identifier for the object.
- invoice_pdf string? - The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
- last_finalization_error ApiErrors? - The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
- lines Invoicelineslist1 - The individual line items that make up the invoice.
lines
is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- next_payment_attempt int? - The time at which payment will next be attempted. This value will be
null
for invoices wherecollection_method=send_invoice
.
- number string? - A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string|Account?? - The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
- paid boolean - Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.
- payment_intent string|PaymentIntent?? - The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.
- payment_settings InvoicesPaymentSettings -
- period_end int - End of the usage period during which invoice items were added to this invoice.
- period_start int - Start of the usage period during which invoice items were added to this invoice.
- post_payment_credit_notes_amount int - Total amount of all post-payment credit notes issued for this invoice.
- pre_payment_credit_notes_amount int - Total amount of all pre-payment credit notes issued for this invoice.
- receipt_number string? - This is the transaction number that appears on email receipts sent for this invoice.
- starting_balance int - Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance.
- statement_descriptor string? - Extra information about an invoice for the customer's credit card statement.
- status string? - The status of the invoice, one of
draft
,open
,paid
,uncollectible
, orvoid
. Learn more
- status_transitions InvoicesStatusTransitions -
- subscription string|Subscription?? - The subscription that this invoice was prepared for, if any.
- subscription_proration_date int? - Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
- subtotal int - Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
- tax int? - The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.
- threshold_reason InvoiceThresholdReason? -
- total int - Total after discounts and taxes.
- total_discount_amounts DiscountsResourceDiscountAmount[]? - The aggregate amounts calculated per discount across all line items.
- total_tax_amounts InvoiceTaxAmount[] - The aggregate amounts calculated per tax rate for all line items.
- transfer_data InvoiceTransferData? - The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to for the invoice.
- webhooks_delivered_at int? - Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
stripe: Invoiceitem
Sometimes you want to add a charge or credit to a customer, but actually charge or credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.
Related guide: Subscription Invoices.
Fields
- amount int - Amount (in the
currency
specified) of the invoice item. This should always be equal tounit_amount * quantity
.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer? - The ID of the customer who will be billed when this invoice item is billed.
- date int - Time at which the object was created. Measured in seconds since the Unix epoch.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- discountable boolean - If true, discounts will apply to this invoice item. Always false for prorations.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- period InvoiceLineItemPeriod -
- price Price? - The price of the invoice item.
- proration boolean - Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
- quantity int - Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
- subscription string|Subscription?? - The subscription that this invoice item has been created for, if any.
- subscription_item string? - The subscription item that this invoice item has been created for, if any.
- tax_rates TaxRate[]? - The tax rates which apply to the invoice item. When set, the
default_tax_rates
on the invoice do not apply to this invoice item.
- unit_amount int? - Unit amount (in the
currency
specified) of the invoice item.
- unit_amount_decimal string? - Same as
unit_amount
, but contains a decimal value with at most 12 decimal places.
stripe: InvoiceItemPreviewParams
Fields
- amount int? -
- currency string? -
- description string? -
- discountable boolean? -
- discounts DiscountsDataParam|string?? -
- invoiceitem string? -
- metadata record {}|string?? -
- period Period1? -
- price string? -
- price_data OneTimePriceData? -
- quantity int? -
- tax_rates TaxratesItemsString[]|string?? -
- unit_amount int? -
- unit_amount_decimal string? -
stripe: InvoiceItemThresholdReason
Fields
- line_item_ids InvoiceitemthresholdreasonLineitemidsItemsString[] - The IDs of the line items that triggered the threshold invoice.
- usage_gte int - The quantity threshold boundary that applied to the given line item.
stripe: InvoiceLineItemPeriod
Fields
- end int - End of the line item's billing period
- 'start int - Start of the line item's billing period
stripe: InvoiceLinesList
Fields
- data LineItem[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: Invoicelineslist1
The individual line items that make up the invoice. lines
is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.
Fields
- data LineItem[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: InvoiceMarkUncollectibleBody
Fields
- expand InvoicemarkuncollectiblebodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
stripe: InvoicePayBody
Fields
- expand InvoicepaybodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- forgive boolean? - In cases where the source used to pay the invoice has insufficient funds, passing
forgive=true
controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due. Passingforgive=false
will fail the charge if the source hasn't been pre-funded with the right amount. An example for this case is with ACH Credit Transfers and wires: if the amount wired is less than the amount due by a small amount, you might want to forgive the difference. Defaults tofalse
.
- off_session boolean? - Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to
true
(off-session).
- paid_out_of_band boolean? - Boolean representing whether an invoice is paid outside of Stripe. This will result in no charge being made. Defaults to
false
.
- payment_method string? - A PaymentMethod to be charged. The PaymentMethod must be the ID of a PaymentMethod belonging to the customer associated with the invoice being paid.
- 'source string? - A payment source to be charged. The source must be the ID of a source belonging to the customer associated with the invoice being paid.
stripe: InvoicePaymentMethodOptionsBancontact
Fields
- preferred_language string - Preferred language of the Bancontact authorization page that the customer is redirected to.
stripe: InvoicePaymentMethodOptionsCard
Fields
- request_three_d_secure string? - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.
stripe: InvoiceSendBody
Fields
- expand InvoicesendbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
stripe: InvoiceSettingCustomerSetting
Fields
- custom_fields InvoiceSettingCustomField[]? - Default custom fields to be displayed on invoices for this customer.
- default_payment_method string|PaymentMethod?? - ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
- footer string? - Default footer to be displayed on invoices for this customer.
stripe: InvoiceSettingCustomField
Fields
- name string - The name of the custom field.
- value string - The value of the custom field.
stripe: InvoiceSettingQuoteSetting
Fields
- days_until_due int? - Number of days within which a customer must pay invoices generated by this quote. This value will be
null
for quotes wherecollection_method=charge_automatically
.
stripe: InvoiceSettingSubscriptionScheduleSetting
Fields
- days_until_due int? - Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be
null
for subscription schedules wherebilling=charge_automatically
.
stripe: InvoicesInvoiceBody
Fields
- account_tax_ids AccounttaxidsItemsString[]|string?? - The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- application_fee_amount int? - A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation.
- auto_advance boolean? - Controls whether Stripe will perform automatic collection of the invoice.
- automatic_tax AutomaticTaxParam? - Settings for automatic tax lookup for this invoice.
- collection_method string? - Either
charge_automatically
orsend_invoice
. This field can be updated only ondraft
invoices.
- custom_fields InvoiceSettingsCustomFields|string?? - A list of up to 4 custom fields to be displayed on the invoice. If a value for
custom_fields
is specified, the list specified will replace the existing custom field list on this invoice. Pass an empty string to remove previously-defined fields.
- days_until_due int? - The number of days from which the invoice is created until it is due. Only valid for invoices where
collection_method=send_invoice
. This field can only be updated ondraft
invoices.
- default_payment_method string? - ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
- default_source string? - ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- default_tax_rates DefaulttaxratesItemsString[]|string?? - The tax rates that will apply to any line item that does not have
tax_rates
set. Pass an empty string to remove previously-defined tax rates.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
- discounts DiscountsDataParam|string?? - The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts.
- due_date int? - The date on which payment for this invoice is due. Only valid for invoices where
collection_method=send_invoice
. This field can only be updated ondraft
invoices.
- expand InvoicesinvoicebodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- footer string? - Footer to be displayed on the invoice.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- on_behalf_of string|string?? - The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
- payment_settings PaymentSettings? - Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
- statement_descriptor string? - Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default
statement_descriptor
will be set to the first subscription item's product'sstatement_descriptor
.
- transfer_data DiscountsDataParam|string?? - If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge. This will be unset if you POST an empty value.
stripe: InvoicesList
Fields
- data Invoice[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: InvoicesPaymentMethodOptions
Fields
- bancontact InvoicePaymentMethodOptionsBancontact? - If paying by
bancontact
, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
- card InvoicePaymentMethodOptionsCard? - If paying by
card
, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
stripe: InvoicesPaymentSettings
Fields
- payment_method_options InvoicesPaymentMethodOptions? - Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
- payment_method_types string[]? - The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
stripe: InvoicesResourceInvoiceTaxId
Fields
- 'type string - The type of the tax ID, one of
eu_vat
,br_cnpj
,br_cpf
,gb_vat
,nz_gst
,au_abn
,au_arn
,in_gst
,no_vat
,za_vat
,ch_vat
,mx_rfc
,sg_uen
,ru_inn
,ru_kpp
,ca_bn
,hk_br
,es_cif
,tw_vat
,th_vat
,jp_cn
,jp_rn
,li_uid
,my_itn
,us_ein
,kr_brn
,ca_qst
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,my_sst
,sg_gst
,ae_trn
,cl_tin
,sa_vat
,id_npwp
,my_frp
,il_vat
, orunknown
- value string? - The value of the tax ID.
stripe: InvoicesStatusTransitions
Fields
- finalized_at int? - The time that the invoice draft was finalized.
- marked_uncollectible_at int? - The time that the invoice was marked uncollectible.
- paid_at int? - The time that the invoice was paid.
- voided_at int? - The time that the invoice was voided.
stripe: InvoiceTaxAmount
Fields
- amount int - The amount, in %s, of the tax.
- inclusive boolean - Whether this tax amount is inclusive or exclusive.
stripe: InvoiceThresholdReason
Fields
- amount_gte int? - The total invoice amount threshold boundary if it triggered the threshold invoice.
- item_reasons InvoiceItemThresholdReason[] - Indicates which line items triggered a threshold invoice.
stripe: InvoiceTransferData
Fields
- amount int? - The amount in %s that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination.
stripe: InvoiceVoidBody
Fields
- expand InvoicevoidbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
stripe: IssuerFraudRecord
This resource has been renamed to Early Fraud Warning and will be removed in a future API version.
Fields
- actionable boolean - An IFR is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an IFR, in order to avoid receiving a dispute later.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- fraud_type string - The type of fraud labelled by the issuer. One of
card_never_received
,fraudulent_card_application
,made_with_counterfeit_card
,made_with_lost_card
,made_with_stolen_card
,misc
,unauthorized_use_of_card
.
- has_liability_shift boolean - If true, the associated charge is subject to liability shift.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- post_date int - The timestamp at which the card issuer posted the issuer fraud record.
stripe: IssuingAuthorization
When an issued card is used to make a purchase, an Issuing Authorization
object is created. Authorizations must be approved for the
purchase to be completed successfully.
Related guide: Issued Card Authorizations.
Fields
- amount int - The total amount that was authorized or rejected. This amount is in the card's currency and in the smallest currency unit.
- amount_details IssuingAuthorizationAmountDetails? - Detailed breakdown of amount components. These amounts are denominated in
currency
and in the smallest currency unit.
- approved boolean - Whether the authorization has been approved.
- authorization_method string - How the card details were provided.
- balance_transactions BalanceTransaction[] - List of balance transactions associated with this authorization.
- card IssuingCard - You can create physical or virtual cards that are issued to cardholders.
- cardholder string|IssuingCardholder?? - The cardholder to whom this authorization belongs.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- merchant_amount int - The total amount that was authorized or rejected. This amount is in the
merchant_currency
and in the smallest currency unit.
- merchant_currency string - The currency that was presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.
- merchant_data IssuingAuthorizationMerchantData -
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- pending_request IssuingAuthorizationPendingRequest? - The pending authorization request. This field will only be non-null during an
issuing_authorization.request
webhook.
- request_history IssuingAuthorizationRequest[] - History of every time
pending_request
was approved/denied, either by you directly or by Stripe (e.g. based on yourspending_controls
). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization.
- status string - The current status of the authorization in its lifecycle.
- transactions IssuingTransaction[] - List of transactions associated with this authorization.
- verification_data IssuingAuthorizationVerificationData -
- wallet string? - The digital wallet used for this authorization. One of
apple_pay
,google_pay
, orsamsung_pay
.
stripe: IssuingAuthorizationAmountDetails
Fields
- atm_fee int? - The fee charged by the ATM for the cash withdrawal.
stripe: IssuingAuthorizationMerchantData
Fields
- category string - A categorization of the seller's type of business. See our merchant categories guide for a list of possible values.
- category_code string - The merchant category code for the seller’s business
- city string? - City where the seller is located
- country string? - Country where the seller is located
- name string? - Name of the seller
- network_id string - Identifier assigned to the seller by the card brand
- postal_code string? - Postal code where the seller is located
- state string? - State where the seller is located
stripe: IssuingAuthorizationPendingRequest
Fields
- amount int - The additional amount Stripe will hold if the authorization is approved, in the card's currency and in the smallest currency unit.
- amount_details IssuingAuthorizationAmountDetails? - Detailed breakdown of amount components. These amounts are denominated in
currency
and in the smallest currency unit.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- merchant_amount int - The amount the merchant is requesting to be authorized in the
merchant_currency
. The amount is in the smallest currency unit.
- merchant_currency string - The local currency the merchant is requesting to authorize.
stripe: IssuingAuthorizationRequest
Fields
- amount int - The
pending_request.amount
at the time of the request, presented in your card's currency and in the smallest currency unit. Stripe held this amount from your account to fund the authorization if the request was approved.
- amount_details IssuingAuthorizationAmountDetails? - Detailed breakdown of amount components. These amounts are denominated in
currency
and in the smallest currency unit.
- approved boolean - Whether this request was approved.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- merchant_amount int - The
pending_request.merchant_amount
at the time of the request, presented in themerchant_currency
and in the smallest currency unit.
- merchant_currency string - The currency that was collected by the merchant and presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.
- reason string - The reason for the approval or decline.
stripe: IssuingAuthorizationVerificationData
Fields
- address_line1_check string - Whether the cardholder provided an address first line and if it matched the cardholder’s
billing.address.line1
.
- address_postal_code_check string - Whether the cardholder provided a postal code and if it matched the cardholder’s
billing.address.postal_code
.
- cvc_check string - Whether the cardholder provided a CVC and if it matched Stripe’s record.
- expiry_check string - Whether the cardholder provided an expiry date and if it matched Stripe’s record.
stripe: IssuingCard
You can create physical or virtual cards that are issued to cardholders.
Fields
- brand string - The brand of the card.
- cancellation_reason string? - The reason why the card was canceled.
- cardholder IssuingCardholder - An Issuing
Cardholder
object represents an individual or business entity who is issued cards. Related guide: How to create a Cardholder
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- cvc string? - The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the
expand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
- exp_month int - The expiration month of the card.
- exp_year int - The expiration year of the card.
- id string - Unique identifier for the object.
- last4 string - The last 4 digits of the card number.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- number string? - The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the
expand
parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- replaced_by string|IssuingCard?? - The latest card that replaces this card, if any.
- replacement_for string|IssuingCard?? - The card this card replaces, if any.
- replacement_reason string? - The reason why the previous card needed to be replaced.
- shipping IssuingCardShipping? - Where and how the card will be shipped.
- spending_controls IssuingCardAuthorizationControls -
- status string - Whether authorizations can be approved on this card.
- 'type string - The type of the card.
stripe: IssuingCardAuthorizationControls
Fields
- allowed_categories string[]? - Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set with
blocked_categories
.
- blocked_categories string[]? - Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set with
allowed_categories
.
- spending_limits IssuingCardSpendingLimit[]? - Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its
replacement_for
card and that card'sreplacement_for
card, up the chain).
- spending_limits_currency string? - Currency of the amounts within
spending_limits
. Always the same as the currency of the card.
stripe: IssuingCardholder
An Issuing Cardholder
object represents an individual or business entity who is issued cards.
Related guide: How to create a Cardholder
Fields
- billing IssuingCardholderAddress - The cardholder’s billing information
- company IssuingCardholderCompany? - Additional information about a
company
cardholder.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- email string? - The cardholder's email address.
- id string - Unique identifier for the object.
- individual IssuingCardholderIndividual? - Additional information about an
individual
cardholder.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string - The cardholder's name. This will be printed on cards issued to them.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- phone_number string? - The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the 3D Secure documentation for more details.
- requirements IssuingCardholderRequirements -
- spending_controls IssuingCardholderAuthorizationControls? - Rules that control spending across this cardholder's cards. Refer to our documentation for more details.
- status string - Specifies whether to permit authorizations on this cardholder's cards.
- 'type string - One of
individual
orcompany
.
stripe: IssuingCardholderAddress
The cardholder’s billing information
Fields
- address Address -
stripe: IssuingCardholderAuthorizationControls
Fields
- allowed_categories string[]? - Array of strings containing categories of authorizations to allow. All other categories will be blocked. Cannot be set with
blocked_categories
.
- blocked_categories string[]? - Array of strings containing categories of authorizations to decline. All other categories will be allowed. Cannot be set with
allowed_categories
.
- spending_limits IssuingCardholderSpendingLimit[]? - Limit spending with amount-based rules that apply across this cardholder's cards.
- spending_limits_currency string? - Currency of the amounts within
spending_limits
.
stripe: IssuingCardholderCompany
Fields
- tax_id_provided boolean - Whether the company's business ID number was provided.
stripe: IssuingCardholderIdDocument
Fields
- back string|File?? - The back of a document returned by a file upload with a
purpose
value ofidentity_document
.
- front string|File?? - The front of a document returned by a file upload with a
purpose
value ofidentity_document
.
stripe: IssuingCardholderIndividual
Fields
- dob IssuingCardholderIndividualDob? - The date of birth of this cardholder.
- first_name string - The first name of this cardholder.
- last_name string - The last name of this cardholder.
- verification IssuingCardholderVerification? - Government-issued ID document for this cardholder.
stripe: IssuingCardholderIndividualDob
Fields
- day int? - The day of birth, between 1 and 31.
- month int? - The month of birth, between 1 and 12.
- year int? - The four-digit year of birth.
stripe: IssuingCardholderRequirements
Fields
- disabled_reason string? - If
disabled_reason
is present, all cards will decline authorizations withcardholder_verification_required
reason.
- past_due string[]? - Array of fields that need to be collected in order to verify and re-enable the cardholder.
stripe: IssuingCardholderSpendingLimit
Fields
- amount int - Maximum amount allowed to spend per interval.
- categories string[]? - Array of strings containing categories this limit applies to. Omitting this field will apply the limit to all categories.
- interval string - Interval (or event) to which the amount applies.
stripe: IssuingCardholderVerification
Fields
- document IssuingCardholderIdDocument? - An identifying document, either a passport or local ID card.
stripe: IssuingCardShipping
Fields
- address Address -
- carrier string? - The delivery company that shipped a card.
- eta int? - A unix timestamp representing a best estimate of when the card will be delivered.
- name string - Recipient name.
- 'service string - Shipment service, such as
standard
orexpress
.
- status string? - The delivery status of the card.
- tracking_number string? - A tracking number for a card shipment.
- tracking_url string? - A link to the shipping carrier's site where you can view detailed information about a card shipment.
- 'type string - Packaging options.
stripe: IssuingCardSpendingLimit
Fields
- amount int - Maximum amount allowed to spend per interval.
- categories string[]? - Array of strings containing categories this limit applies to. Omitting this field will apply the limit to all categories.
- interval string - Interval (or event) to which the amount applies.
stripe: IssuingDispute
As a card issuer, you can dispute transactions that the cardholder does not recognize, suspects to be fraudulent, or has other issues with.
Related guide: Disputing Transactions
Fields
- amount int - Disputed amount. Usually the amount of the
transaction
, but can differ (usually because of currency fluctuation).
- balance_transactions BalanceTransaction[]? - List of balance transactions associated with the dispute.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - The currency the
transaction
was made in.
- evidence IssuingDisputeEvidence - Evidence for the dispute. Evidence contains exactly two non-null fields: the reason for the dispute and the associated evidence field for the selected reason
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- status string - Current status of the dispute.
- 'transaction string|IssuingTransaction? - The transaction being disputed.
stripe: IssuingDisputeCanceledEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- canceled_at int? - Date when order was canceled.
- cancellation_policy_provided boolean? - Whether the cardholder was provided with a cancellation policy.
- cancellation_reason string? - Reason for canceling the order.
- expected_at int? - Date when the cardholder expected to receive the product.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- product_description string? - Description of the merchandise or service that was purchased.
- product_type string? - Whether the product was a merchandise or service.
- return_status string? - Result of cardholder's attempt to return the product.
- returned_at int? - Date when the product was returned or attempted to be returned.
stripe: IssuingDisputeDuplicateEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- card_statement string|File?? - (ID of a file upload) Copy of the card statement showing that the product had already been paid for.
- cash_receipt string|File?? - (ID of a file upload) Copy of the receipt showing that the product had been paid for in cash.
- check_image string|File?? - (ID of a file upload) Image of the front and back of the check that was used to pay for the product.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- original_transaction string? - Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
stripe: IssuingDisputeEvidence
Evidence for the dispute. Evidence contains exactly two non-null fields: the reason for the dispute and the associated evidence field for the selected reason
Fields
- canceled IssuingDisputeCanceledEvidence? -
- duplicate IssuingDisputeDuplicateEvidence? -
- fraudulent IssuingDisputeFraudulentEvidence? -
- merchandise_not_as_described IssuingDisputeMerchandiseNotAsDescribedEvidence? -
- not_received IssuingDisputeNotReceivedEvidence? -
- other IssuingDisputeOtherEvidence? -
- reason string - The reason for filing the dispute. Its value will match the field containing the evidence.
- service_not_as_described IssuingDisputeServiceNotAsDescribedEvidence? -
stripe: IssuingDisputeFraudulentEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
stripe: IssuingDisputeMerchandiseNotAsDescribedEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- received_at int? - Date when the product was received.
- return_description string? - Description of the cardholder's attempt to return the product.
- return_status string? - Result of cardholder's attempt to return the product.
- returned_at int? - Date when the product was returned or attempted to be returned.
stripe: IssuingDisputeNotReceivedEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- expected_at int? - Date when the cardholder expected to receive the product.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- product_description string? - Description of the merchandise or service that was purchased.
- product_type string? - Whether the product was a merchandise or service.
stripe: IssuingDisputeOtherEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- product_description string? - Description of the merchandise or service that was purchased.
- product_type string? - Whether the product was a merchandise or service.
stripe: IssuingDisputeServiceNotAsDescribedEvidence
Fields
- additional_documentation string|File?? - (ID of a file upload) Additional documentation supporting the dispute.
- canceled_at int? - Date when order was canceled.
- cancellation_reason string? - Reason for canceling the order.
- explanation string? - Explanation of why the cardholder is disputing this transaction.
- received_at int? - Date when the product was received.
stripe: IssuingSettlement
When a non-stripe BIN is used, any use of an issued card must be settled directly with the card network. The net amount owed is represented by an Issuing Settlement
object.
Fields
- bin string - The Bank Identification Number reflecting this settlement record.
- clearing_date int - The date that the transactions are cleared and posted to user's accounts.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- interchange_fees int - The total interchange received as reimbursement for the transactions.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- net_total int - The total net amount required to settle with the network.
- network string - The card network for this settlement report. One of ["visa"]
- network_fees int - The total amount of fees owed to the network.
- network_settlement_identifier string - The Settlement Identification Number assigned by the network.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- settlement_service string - One of
international
oruk_national_net
.
- transaction_count int - The total number of transactions reflected in this settlement.
- transaction_volume int - The total transaction amount reflected in this settlement.
stripe: IssuingTransaction
Any use of an issued card that results in funds entering or leaving
your Stripe account, such as a completed purchase or refund, is represented by an Issuing
Transaction
object.
Related guide: Issued Card Transactions.
Fields
- amount int - The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
- amount_details IssuingTransactionAmountDetails? - Detailed breakdown of amount components. These amounts are denominated in
currency
and in the smallest currency unit.
- authorization string|IssuingAuthorization?? - The
Authorization
object that led to this transaction.
- balance_transaction string|BalanceTransaction?? - ID of the balance transaction associated with this transaction.
- card string|IssuingCard? - The card used to make this transaction.
- cardholder string|IssuingCardholder?? - The cardholder to whom this transaction belongs.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- dispute string|IssuingDispute?? - If you've disputed the transaction, the ID of the dispute.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- merchant_amount int - The amount that the merchant will receive, denominated in
merchant_currency
and in the smallest currency unit. It will be different fromamount
if the merchant is taking payment in a different currency.
- merchant_currency string - The currency with which the merchant is taking payment.
- merchant_data IssuingAuthorizationMerchantData -
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- purchase_details IssuingTransactionPurchaseDetails? - Additional purchase information that is optionally provided by the merchant.
- 'type string - The nature of the transaction.
- wallet string? - The digital wallet used for this transaction. One of
apple_pay
,google_pay
, orsamsung_pay
.
stripe: IssuingTransactionAmountDetails
Fields
- atm_fee int? - The fee charged by the ATM for the cash withdrawal.
stripe: IssuingTransactionFlightData
Fields
- departure_at int? - The time that the flight departed.
- passenger_name string? - The name of the passenger.
- refundable boolean? - Whether the ticket is refundable.
- segments IssuingTransactionFlightDataLeg[]? - The legs of the trip.
- travel_agency string? - The travel agency that issued the ticket.
stripe: IssuingTransactionFlightDataLeg
Fields
- arrival_airport_code string? - The three-letter IATA airport code of the flight's destination.
- carrier string? - The airline carrier code.
- departure_airport_code string? - The three-letter IATA airport code that the flight departed from.
- flight_number string? - The flight number.
- service_class string? - The flight's service class.
- stopover_allowed boolean? - Whether a stopover is allowed on this flight.
stripe: IssuingTransactionFuelData
Fields
- 'type string - The type of fuel that was purchased. One of
diesel
,unleaded_plus
,unleaded_regular
,unleaded_super
, orother
.
- unit string - The units for
volume_decimal
. One ofus_gallon
orliter
.
- unit_cost_decimal string - The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
- volume_decimal string? - The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
stripe: IssuingTransactionLodgingData
Fields
- check_in_at int? - The time of checking into the lodging.
- nights int? - The number of nights stayed at the lodging.
stripe: IssuingTransactionPurchaseDetails
Fields
- flight IssuingTransactionFlightData? - Information about the flight that was purchased with this transaction.
- fuel IssuingTransactionFuelData? - Information about fuel that was purchased with this transaction.
- lodging IssuingTransactionLodgingData? - Information about lodging that was purchased with this transaction.
- receipt IssuingTransactionReceiptData[]? - The line items in the purchase.
- reference string? - A merchant-specific order number.
stripe: IssuingTransactionReceiptData
Fields
- description string? - The description of the item. The maximum length of this field is 26 characters.
- quantity decimal? - The quantity of the item.
- total int? - The total for this line item in cents.
- unit_cost int? - The unit cost of the item in cents.
stripe: Item
A line item.
Fields
- amount_subtotal int - Total before any discounts or taxes are applied.
- amount_total int - Total after discounts and taxes.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string - An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
- discounts LineItemsDiscountAmount[]? - The discounts applied to the line item.
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- price Price? - The price used to generate the line item.
- quantity int? - The quantity of products being purchased.
- taxes LineItemsTaxAmount[]? - The taxes applied to the line item.
stripe: ItemBillingThresholdsParam
Fields
- usage_gte int -
stripe: LegalEntityCompany
Fields
- address Address? -
- address_kana LegalEntityJapanAddress? - The Kana variation of the company's primary address (Japan only).
- address_kanji LegalEntityJapanAddress? - The Kanji variation of the company's primary address (Japan only).
- directors_provided boolean? - Whether the company's directors have been provided. This Boolean will be
true
if you've manually indicated that all directors are provided via thedirectors_provided
parameter.
- executives_provided boolean? - Whether the company's executives have been provided. This Boolean will be
true
if you've manually indicated that all executives are provided via theexecutives_provided
parameter, or if Stripe determined that sufficient executives were provided.
- name string? - The company's legal name.
- name_kana string? - The Kana variation of the company's legal name (Japan only).
- name_kanji string? - The Kanji variation of the company's legal name (Japan only).
- owners_provided boolean? - Whether the company's owners have been provided. This Boolean will be
true
if you've manually indicated that all owners are provided via theowners_provided
parameter, or if Stripe determined that sufficient owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding thepercent_ownership
of each owner together).
- phone string? - The company's phone number (used for verification).
- structure string? - The category identifying the legal structure of the company or legal entity. See Business structure for more details.
- tax_id_provided boolean? - Whether the company's business ID number was provided.
- tax_id_registrar string? - The jurisdiction in which the
tax_id
is registered (Germany-based companies only).
- vat_id_provided boolean? - Whether the company's business VAT number was provided.
- verification LegalEntityCompanyVerification? - Information on the verification state of the company.
stripe: LegalEntityCompanyVerification
Fields
- document LegalEntityCompanyVerificationDocument -
stripe: LegalEntityCompanyVerificationDocument
Fields
- back string|File?? - The back of a document returned by a file upload with a
purpose
value ofadditional_verification
.
- details string? - A user-displayable string describing the verification state of this document.
- details_code string? - One of
document_corrupt
,document_expired
,document_failed_copy
,document_failed_greyscale
,document_failed_other
,document_failed_test_mode
,document_fraudulent
,document_incomplete
,document_invalid
,document_manipulated
,document_not_readable
,document_not_uploaded
,document_type_not_supported
, ordocument_too_large
. A machine-readable code specifying the verification state for this document.
- front string|File?? - The front of a document returned by a file upload with a
purpose
value ofadditional_verification
.
stripe: LegalEntityDob
Fields
- day int? - The day of birth, between 1 and 31.
- month int? - The month of birth, between 1 and 12.
- year int? - The four-digit year of birth.
stripe: LegalEntityJapanAddress
Fields
- city string? - City/Ward.
- country string? - Two-letter country code (ISO 3166-1 alpha-2).
- line1 string? - Block/Building number.
- line2 string? - Building details.
- postal_code string? - ZIP or postal code.
- state string? - Prefecture.
- town string? - Town/cho-me.
stripe: LegalEntityPersonVerification
Fields
- additional_document LegalEntityPersonVerificationDocument? - A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
- details string? - A user-displayable string describing the verification state for the person. For example, this may say "Provided identity information could not be verified".
- details_code string? - One of
document_address_mismatch
,document_dob_mismatch
,document_duplicate_type
,document_id_number_mismatch
,document_name_mismatch
,document_nationality_mismatch
,failed_keyed_identity
, orfailed_other
. A machine-readable code specifying the verification state for the person.
- document LegalEntityPersonVerificationDocument? -
- status string - The state of verification for the person. Possible values are
unverified
,pending
, orverified
.
stripe: LegalEntityPersonVerificationDocument
Fields
- back string|File?? - The back of an ID returned by a file upload with a
purpose
value ofidentity_document
.
- details string? - A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read".
- details_code string? - One of
document_corrupt
,document_country_not_supported
,document_expired
,document_failed_copy
,document_failed_other
,document_failed_test_mode
,document_fraudulent
,document_failed_greyscale
,document_incomplete
,document_invalid
,document_manipulated
,document_missing_back
,document_missing_front
,document_not_readable
,document_not_uploaded
,document_photo_mismatch
,document_too_large
, ordocument_type_not_supported
. A machine-readable code specifying the verification state for this document.
- front string|File?? - The front of an ID returned by a file upload with a
purpose
value ofidentity_document
.
stripe: LineItem
Fields
- amount int - The amount, in %s.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- discount_amounts DiscountsResourceDiscountAmount[]? - The amount of discount calculated per discount for this line item.
- discountable boolean - If true, discounts will apply to this line item. Always false for prorations.
- id string - Unique identifier for the object.
- invoice_item string? - The ID of the invoice item associated with this line item if any.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with
type=subscription
this will reflect the metadata of the subscription that caused the line item to be created.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- period InvoiceLineItemPeriod -
- price Price? - The price of the line item.
- proration boolean - Whether this is a proration.
- quantity int? - The quantity of the subscription, if the line item is a subscription or a proration.
- subscription string? - The subscription that the invoice item pertains to, if any.
- subscription_item string? - The subscription item that generated this invoice item. Left empty if the line item is not an explicit result of a subscription.
- tax_amounts InvoiceTaxAmount[]? - The amount of tax calculated per tax rate for this line item
- tax_rates TaxRate[]? - The tax rates which apply to the line item.
- 'type string - A string identifying the type of the source of this line item, either an
invoiceitem
or asubscription
.
stripe: LineItemsDiscountAmount
Fields
- amount int - The amount discounted.
- discount Discount - A discount represents the actual application of a coupon to a particular customer. It contains information about when the discount began and when it will end. Related guide: Applying Discounts to Subscriptions.
stripe: LineItemsTaxAmount
Fields
- amount int - Amount of tax applied for this rate.
- rate TaxRate - Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax. Related guide: Tax Rates.
stripe: LoginLink
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- url string - The URL for the login link.
stripe: Mandate
A Mandate is a record of the permission a customer has given you to debit their payment method.
Fields
- customer_acceptance CustomerAcceptance -
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- multi_use MandateMultiUse? -
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_method string|PaymentMethod? - ID of the payment method associated with this mandate.
- payment_method_details MandatePaymentMethodDetails -
- single_use MandateSingleUse? -
- status string - The status of the mandate, which indicates whether it can be used to initiate a payment.
- 'type string - The type of the mandate.
stripe: MandateAcssDebit
Fields
- interval_description string? - Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
- payment_schedule string - Payment schedule for the mandate.
- transaction_type string - Transaction type of the mandate.
stripe: MandateAuBecsDebit
Fields
- url string - The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
stripe: MandateBacsDebit
Fields
- network_status string - The status of the mandate on the Bacs network. Can be one of
pending
,revoked
,refused
, oraccepted
.
- reference string - The unique reference identifying the mandate on the Bacs network.
- url string - The URL that will contain the mandate that the customer has signed.
stripe: MandateMultiUse
stripe: MandatePaymentMethodDetails
Fields
- acss_debit MandateAcssDebit? -
- au_becs_debit MandateAuBecsDebit? -
- bacs_debit MandateBacsDebit? -
- card CardMandatePaymentMethodDetails? -
- sepa_debit MandateSepaDebit? -
- 'type string - The type of the payment method associated with this mandate. An additional hash is included on
payment_method_details
with a name matching this value. It contains mandate information specific to the payment method.
stripe: MandateSepaDebit
Fields
- reference string - The unique reference of the mandate.
- url string - The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively.
stripe: MandateSingleUse
Fields
- amount int - On a single use mandate, the amount of the payment.
- currency string - On a single use mandate, the currency of the payment.
stripe: Networks
Fields
- available NetworksAvailableItemsString[] - All available networks for the card.
- preferred string? - The preferred network for the card.
stripe: NotificationEventData
Fields
- 'object record {} - Object containing the API resource relevant to the event. For example, an
invoice.created
event will have a full invoice object as the value of the object key.
- previous_attributes record {}? - Object containing the names of the attributes that have changed, and their previous values (sent along only with *.updated events).
stripe: NotificationEventRequest
Fields
- idempotency_key string? - The idempotency key transmitted during the request, if any. Note: This property is populated only for events on or after May 23, 2017.
stripe: OfflineAcceptance
stripe: OneTimePriceData
Fields
- currency string -
- product string -
- tax_behavior string? -
- unit_amount int? -
- unit_amount_decimal string? -
stripe: OnlineAcceptance
Fields
- ip_address string? - The IP address from which the Mandate was accepted by the customer.
- user_agent string? - The user agent of the browser from which the Mandate was accepted by the customer.
stripe: OptionalFieldsAddress
Fields
- city string? -
- country string? -
- line1 string? -
- line2 string? -
- postal_code string? -
- state string? -
stripe: Order
Order objects are created to handle end customers' purchases of previously defined products. You can create, retrieve, and pay individual orders, as well as list all orders. Orders are identified by a unique, random ID.
Related guide: Tax, Shipping, and Inventory.
Fields
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
- amount_returned int? - The total amount that was returned to the customer.
- application string? - ID of the Connect Application that created the order.
- application_fee int? - A fee in cents that will be applied to the order and transferred to the application owner’s Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer?? - The customer used for the order.
- email string? - The email address of the customer placing the order.
- external_coupon_code string? - External coupon code to load for this order.
- id string - Unique identifier for the object.
- items OrderItem[] - List of items constituting the order. An order can have up to 25 items.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'returns OrdersResourceOrderReturnList? - A list of returns that have taken place for this order.
- selected_shipping_method string? - The shipping method that is currently selected for this order, if any. If present, it is equal to one of the
id
s of shipping methods in theshipping_methods
array. At order creation time, if there are multiple shipping methods, Stripe will automatically selected the first method.
- shipping Shipping? - The shipping address for the order. Present if the order is for goods to be shipped.
- shipping_methods ShippingMethod[]? - A list of supported shipping methods for this order. The desired shipping method can be specified either by updating the order, or when paying it.
- status string - Current order status. One of
created
,paid
,canceled
,fulfilled
, orreturned
. More details in the Orders Guide.
- status_transitions StatusTransitions? - The timestamps at which the order status was updated.
- updated int? - Time at which the object was last updated. Measured in seconds since the Unix epoch.
- upstream_id string? - The user's order ID if it is different from the Stripe order ID.
stripe: OrderItem
A representation of the constituent items of any given order. Can be used to represent SKUs, shipping costs, or taxes owed on the order.
Related guide: Orders.
Fields
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string - Description of the line item, meant to be displayable to the user (e.g.,
"Express shipping"
).
- 'object string - String representing the object's type. Objects of the same type share the same value.
- quantity int? - A positive integer representing the number of instances of
parent
that are included in this order item. Applicable/present only iftype
issku
.
- 'type string - The type of line item. One of
sku
,tax
,shipping
, ordiscount
.
stripe: OrderReturn
A return represents the full or partial return of a number of order items. Returns always belong to an order, and may optionally contain a refund.
Related guide: Handling Returns.
Fields
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- items OrderItem[] - The items included in this order return.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: OrdersResourceOrderReturnList
A list of returns that have taken place for this order.
Fields
- data OrderReturn[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: PackageDimensions
Fields
- height decimal - Height, in inches.
- length decimal - Length, in inches.
- weight decimal - Weight, in ounces.
- width decimal - Width, in inches.
stripe: PackageDimensionsSpecs
The dimensions of this product for shipping purposes.
Fields
- height decimal -
- length decimal -
- weight decimal -
- width decimal -
stripe: PackageDimentionsSpecs
Fields
- height decimal -
- length decimal -
- weight decimal -
- width decimal -
stripe: Param
If this is an au_becs_debit
PaymentMethod, this hash contains details about the bank account.
Fields
- account_number string - The account number for the bank account
- bsb_number string - Bank-State-Branch number of the bank account
stripe: Param1
If this is a bacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
Fields
- account_number string? -
- sort_code string? -
stripe: Param2
If this is a boleto
PaymentMethod, this hash contains details about the Boleto payment method.
Fields
- tax_id string -
stripe: Param3
If this is an eps
PaymentMethod, this hash contains details about the EPS payment method.
Fields
- bank string? -
stripe: Param4
If this is an fpx
PaymentMethod, this hash contains details about the FPX payment method.
Fields
- bank string -
stripe: Param5
If this is an ideal
PaymentMethod, this hash contains details about the iDEAL payment method.
Fields
- bank string? -
stripe: Param6
If this is a p24
PaymentMethod, this hash contains details about the P24 payment method.
Fields
- bank string? -
stripe: Param7
If this is a sepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account.
Fields
- iban string -
stripe: Param8
If this is a sofort
PaymentMethod, this hash contains details about the SOFORT payment method.
Fields
- country string -
stripe: PaymentFlowsPaymentIntentResourceChargeList
Charges that were created by this PaymentIntent, if any.
Fields
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: PaymentFlowsPaymentMethodList
Fields
- data PaymentMethod[] -
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: PaymentFlowsPrivatePaymentMethodsAlipay
stripe: PaymentFlowsPrivatePaymentMethodsAlipayDetails
Fields
- fingerprint string? - Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same.
- transaction_id string? - Transaction ID of this particular Alipay transaction.
stripe: PaymentIntent
A PaymentIntent guides you through the process of collecting a payment from your customer. We recommend that you create exactly one PaymentIntent for each order or customer session in your system. You can reference the PaymentIntent later to see the history of payment attempts for a particular session.
A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.
Related guide: Payment Intents API.
Fields
- amount int - Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
- amount_capturable int? - Amount that can be captured from this PaymentIntent.
- amount_received int? - Amount that was collected by this PaymentIntent.
- application string|Application?? - ID of the Connect application that created the PaymentIntent.
- application_fee_amount int? - The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents use case for connected accounts.
- canceled_at int? - Populated when
status
iscanceled
, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
- cancellation_reason string? - Reason for cancellation of this PaymentIntent, either user-provided (
duplicate
,fraudulent
,requested_by_customer
, orabandoned
) or generated by Stripe internally (failed_invoice
,void_invoice
, orautomatic
).
- capture_method string - Controls when the funds will be captured from the customer's account.
- charges PaymentFlowsPaymentIntentResourceChargeList? - Charges that were created by this PaymentIntent, if any.
- client_secret string? - The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
The client secret can be used to complete a payment from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to accept a payment and learn about how
client_secret
should be handled.
- confirmation_method string -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer?? - ID of the Customer this PaymentIntent belongs to, if one exists. Payment methods attached to other Customers cannot be used with this PaymentIntent. If present in combination with setup_future_usage, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- id string - Unique identifier for the object.
- last_payment_error ApiErrors? - The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. For more information, see the documentation.
- next_action PaymentIntentNextAction? - If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string|Account?? - The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents use case for connected accounts for details.
- payment_method string|PaymentMethod?? - ID of the payment method used in this PaymentIntent.
- payment_method_options PaymentIntentPaymentMethodOptions? - Payment-method-specific configuration for this PaymentIntent.
- payment_method_types PaymentintentPaymentmethodtypesItemsString[] - The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
- receipt_email string? - Email address that the receipt for the resulting payment will be sent to. If
receipt_email
is specified for a payment in live mode, a receipt will be sent regardless of your email settings.
- setup_future_usage string? - Indicates that you intend to make future payments with this PaymentIntent's payment method.
Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses
setup_future_usage
to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
- shipping Shipping? - Shipping information for this PaymentIntent.
- statement_descriptor string? - For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- statement_descriptor_suffix string? - Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- transfer_data TransferData? - The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents use case for connected accounts for details.
- transfer_group string? - A string that identifies the resulting payment as part of a group. See the PaymentIntents use case for connected accounts for details.
stripe: PaymentIntentNextAction
Fields
- alipay_handle_redirect PaymentIntentNextActionAlipayHandleRedirect? -
- boleto_display_details PaymentIntentNextActionBoleto? -
- oxxo_display_details PaymentIntentNextActionDisplayOxxoDetails? -
- redirect_to_url PaymentIntentNextActionRedirectToUrl? -
- 'type string - Type of the next action to perform, one of
redirect_to_url
,use_stripe_sdk
,alipay_handle_redirect
, oroxxo_display_details
.
- use_stripe_sdk record {}? - When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
- verify_with_microdeposits PaymentIntentNextActionVerifyWithMicrodeposits? -
- wechat_pay_display_qr_code PaymentIntentNextActionWechatPayDisplayQrCode? -
- wechat_pay_redirect_to_android_app PaymentIntentNextActionWechatPayRedirectToAndroidApp? -
- wechat_pay_redirect_to_ios_app PaymentIntentNextActionWechatPayRedirectToIosApp? -
stripe: PaymentIntentNextActionAlipayHandleRedirect
Fields
- native_data string? - The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App.
- native_url string? - The native URL you must redirect your customer to in order to authenticate the payment in an iOS App.
- return_url string? - If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
- url string? - The URL you must redirect your customer to in order to authenticate the payment.
stripe: PaymentIntentNextActionBoleto
Fields
- expires_at int? - The timestamp after which the boleto expires.
- hosted_voucher_url string? - The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher.
- number string? - The boleto number.
- pdf string? - The URL to the downloadable boleto voucher PDF.
stripe: PaymentIntentNextActionDisplayOxxoDetails
Fields
- expires_after int? - The timestamp after which the OXXO voucher expires.
- hosted_voucher_url string? - The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher.
- number string? - OXXO reference number.
stripe: PaymentIntentNextActionRedirectToUrl
Fields
- return_url string? - If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
- url string? - The URL you must redirect your customer to in order to authenticate the payment.
stripe: PaymentIntentNextActionVerifyWithMicrodeposits
Fields
- arrival_date int - The timestamp when the microdeposits are expected to land.
- hosted_verification_url string - The URL for the hosted verification page, which allows customers to verify their bank account.
stripe: PaymentIntentNextActionWechatPayDisplayQrCode
Fields
- data string - The data being used to generate QR code
- image_data_url string - The base64 image data for a pre-generated QR code
stripe: PaymentIntentNextActionWechatPayRedirectToAndroidApp
Fields
- app_id string - app_id is the APP ID registered on WeChat open platform
- nonce_str string - nonce_str is a random string
- package string - package is static value
- partner_id string - an unique merchant ID assigned by Wechat Pay
- prepay_id string - an unique trading ID assigned by Wechat Pay
- sign string - A signature
- timestamp string - Specifies the current time in epoch format
stripe: PaymentIntentNextActionWechatPayRedirectToIosApp
Fields
- native_url string - An universal link that redirect to Wechat Pay APP
stripe: PaymentIntentPaymentMethodOptions
Fields
- acss_debit PaymentIntentPaymentMethodOptionsAcssDebit? -
- afterpay_clearpay PaymentMethodOptionsAfterpayClearpay? -
- alipay PaymentMethodOptionsAlipay? -
- bancontact PaymentMethodOptionsBancontact? -
- boleto PaymentMethodOptionsBoleto? -
- card_present PaymentMethodOptionsCardPresent? -
- ideal PaymentMethodOptionsIdeal? -
- oxxo PaymentMethodOptionsOxxo? -
- p24 PaymentMethodOptionsP24? -
- sepa_debit PaymentIntentPaymentMethodOptionsSepaDebit? -
- sofort PaymentMethodOptionsSofort? -
- wechat_pay PaymentMethodOptionsWechatPay? -
stripe: PaymentIntentPaymentMethodOptionsAcssDebit
Fields
- mandate_options PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit? -
- verification_method string? - Bank account verification method.
stripe: PaymentIntentPaymentMethodOptionsCard
Fields
- installments PaymentMethodOptionsCardInstallments? - Installment details for this payment (Mexico only). For more information, see the installments integration guide.
- network string? - Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
- request_three_d_secure string? - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include:
automatic
orany
. If not provided, defaults toautomatic
. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.
stripe: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
Fields
- custom_mandate_url string? - A URL for custom mandate text
- interval_description string? - Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
- payment_schedule string? - Payment schedule for the mandate.
- transaction_type string? - Transaction type of the mandate.
stripe: PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit
stripe: PaymentIntentPaymentMethodOptionsSepaDebit
Fields
- mandate_options PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit? -
stripe: PaymentMethod
PaymentMethod objects represent your customer's payment instruments. They can be used with PaymentIntents to collect payments or saved to Customer objects to store instrument details for future payments.
Related guides: Payment Methods and More Payment Scenarios.
Fields
- acss_debit PaymentMethodAcssDebit? -
- afterpay_clearpay PaymentMethodAfterpayClearpay? -
- alipay PaymentFlowsPrivatePaymentMethodsAlipay? -
- au_becs_debit PaymentMethodAuBecsDebit? -
- bacs_debit PaymentMethodBacsDebit? -
- bancontact PaymentMethodBancontact? -
- billing_details BillingDetails -
- boleto PaymentMethodBoleto? -
- card PaymentMethodCard? -
- card_present PaymentMethodCardPresent? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- eps PaymentMethodEps? -
- fpx PaymentMethodFpx? -
- giropay PaymentMethodGiropay? -
- grabpay PaymentMethodGrabpay? -
- id string - Unique identifier for the object.
- ideal PaymentMethodIdeal? -
- interac_present PaymentMethodInteracPresent? -
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- oxxo PaymentMethodOxxo? -
- p24 PaymentMethodP24? -
- sepa_debit PaymentMethodSepaDebit? -
- sofort PaymentMethodSofort? -
- 'type string - The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
- wechat_pay PaymentMethodWechatPay? -
stripe: PaymentMethodAcssDebit
Fields
- bank_name string? - Name of the bank associated with the bank account.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- institution_number string? - Institution number of the bank account.
- last4 string? - Last four digits of the bank account number.
- transit_number string? - Transit number of the bank account.
stripe: PaymentMethodAfterpayClearpay
stripe: PaymentMethodAttachBody
Fields
- customer string - The ID of the customer to which to attach the PaymentMethod.
- expand PaymentmethodattachbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
stripe: PaymentMethodAuBecsDebit
Fields
- bsb_number string? - Six-digit number identifying bank and branch associated with this bank account.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four digits of the bank account number.
stripe: PaymentMethodBacsDebit
Fields
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four digits of the bank account number.
- sort_code string? - Sort code of the bank account. (e.g.,
10-20-30
)
stripe: PaymentMethodBancontact
stripe: PaymentMethodBoleto
Fields
- tax_id string - Uniquely identifies the customer tax id (CNPJ or CPF)
stripe: PaymentMethodCard
Fields
- brand string - Card brand. Can be
amex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- checks PaymentMethodCardChecks? - Checks on Card address and CVC if provided.
- country string? - Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
- exp_month int - Two-digit number representing the card's expiration month.
- exp_year int - Four-digit number representing the card's expiration year.
- fingerprint string? - Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
- funding string - Card funding type. Can be
credit
,debit
,prepaid
, orunknown
.
- generated_from PaymentMethodCardGeneratedCard? - Details of the original PaymentMethod that created this object.
- last4 string - The last four digits of the card.
- networks Networks? - Contains information about card networks that can be used to process the payment.
- three_d_secure_usage ThreeDSecureUsage? - Contains details on how this Card maybe be used for 3D Secure authentication.
- wallet PaymentMethodCardWallet? - If this Card is part of a card wallet, this contains the details of the card wallet.
stripe: PaymentMethodCardChecks
Fields
- address_line1_check string? - If a address line1 was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
- address_postal_code_check string? - If a address postal code was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
- cvc_check string? - If a CVC was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
stripe: PaymentMethodCardGeneratedCard
Fields
- charge string? - The charge that created this object.
- payment_method_details CardGeneratedFromPaymentMethodDetails? - Transaction-specific details of the payment method used in the payment.
- setup_attempt string|SetupAttempt?? - The ID of the SetupAttempt that generated this PaymentMethod, if any.
stripe: PaymentMethodCardPresent
stripe: PaymentMethodCardWallet
Fields
- amex_express_checkout PaymentMethodCardWalletAmexExpressCheckout? -
- apple_pay PaymentMethodCardWalletApplePay? -
- dynamic_last4 string? - (For tokenized numbers only.) The last four digits of the device account number.
- google_pay PaymentMethodCardWalletGooglePay? -
- masterpass PaymentMethodCardWalletMasterpass? -
- samsung_pay PaymentMethodCardWalletSamsungPay? -
- 'type string - The type of the card wallet, one of
amex_express_checkout
,apple_pay
,google_pay
,masterpass
,samsung_pay
, orvisa_checkout
. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
- visa_checkout PaymentMethodCardWalletVisaCheckout? -
stripe: PaymentMethodCardWalletAmexExpressCheckout
stripe: PaymentMethodCardWalletApplePay
stripe: PaymentMethodCardWalletGooglePay
stripe: PaymentMethodCardWalletMasterpass
Fields
- billing_address Address? - Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- email string? - Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- name string? - Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- shipping_address Address? - Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodCardWalletSamsungPay
stripe: PaymentMethodCardWalletVisaCheckout
Fields
- billing_address Address? - Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- email string? - Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- name string? - Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- shipping_address Address? - Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetachBody
Fields
- expand PaymentmethoddetachbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
stripe: PaymentMethodDetails
Fields
- ach_credit_transfer PaymentMethodDetailsAchCreditTransfer? -
- ach_debit PaymentMethodDetailsAchDebit? -
- acss_debit PaymentMethodDetailsAcssDebit? -
- afterpay_clearpay PaymentMethodDetailsAfterpayClearpay? -
- au_becs_debit PaymentMethodDetailsAuBecsDebit? -
- bacs_debit PaymentMethodDetailsBacsDebit? -
- bancontact PaymentMethodDetailsBancontact? -
- boleto PaymentMethodDetailsBoleto? -
- card PaymentMethodDetailsCard? -
- card_present PaymentMethodDetailsCardPresent? -
- eps PaymentMethodDetailsEps? -
- fpx PaymentMethodDetailsFpx? -
- giropay PaymentMethodDetailsGiropay? -
- grabpay PaymentMethodDetailsGrabpay? -
- ideal PaymentMethodDetailsIdeal? -
- interac_present PaymentMethodDetailsInteracPresent? -
- klarna PaymentMethodDetailsKlarna? -
- multibanco PaymentMethodDetailsMultibanco? -
- oxxo PaymentMethodDetailsOxxo? -
- p24 PaymentMethodDetailsP24? -
- sepa_debit PaymentMethodDetailsSepaDebit? -
- sofort PaymentMethodDetailsSofort? -
- stripe_account PaymentMethodDetailsStripeAccount? -
- 'type string - The type of transaction-specific details of the payment method used in the payment, one of
ach_credit_transfer
,ach_debit
,acss_debit
,alipay
,au_becs_debit
,bancontact
,card
,card_present
,eps
,giropay
,ideal
,klarna
,multibanco
,p24
,sepa_debit
,sofort
,stripe_account
, orwechat
. An additional hash is included onpayment_method_details
with a name matching this value. It contains information specific to the payment method.
- wechat PaymentMethodDetailsWechat? -
- wechat_pay PaymentMethodDetailsWechatPay? -
stripe: PaymentMethodDetailsAchCreditTransfer
Fields
- account_number string? - Account number to transfer funds to.
- bank_name string? - Name of the bank associated with the routing number.
- routing_number string? - Routing transit number for the bank account to transfer funds to.
- swift_code string? - SWIFT code of the bank associated with the routing number.
stripe: PaymentMethodDetailsAchDebit
Fields
- account_holder_type string? - Type of entity that holds the account. This can be either
individual
orcompany
.
- bank_name string? - Name of the bank associated with the bank account.
- country string? - Two-letter ISO code representing the country the bank account is located in.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four digits of the bank account number.
- routing_number string? - Routing transit number of the bank account.
stripe: PaymentMethodDetailsAcssDebit
Fields
- bank_name string? - Name of the bank associated with the bank account.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- institution_number string? - Institution number of the bank account
- last4 string? - Last four digits of the bank account number.
- mandate string? - ID of the mandate used to make this payment.
- transit_number string? - Transit number of the bank account.
stripe: PaymentMethodDetailsAfterpayClearpay
Fields
- reference string? - Order identifier shown to the merchant in Afterpay’s online portal.
stripe: PaymentMethodDetailsAuBecsDebit
Fields
- bsb_number string? - Bank-State-Branch number of the bank account.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four digits of the bank account number.
- mandate string? - ID of the mandate used to make this payment.
stripe: PaymentMethodDetailsBacsDebit
Fields
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four digits of the bank account number.
- mandate string? - ID of the mandate used to make this payment.
- sort_code string? - Sort code of the bank account. (e.g.,
10-20-30
)
stripe: PaymentMethodDetailsBancontact
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- bank_name string? - Name of the bank associated with the bank account.
- bic string? - Bank Identifier Code of the bank associated with the bank account.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
- iban_last4 string? - Last four characters of the IBAN.
- preferred_language string? - Preferred language of the Bancontact authorization page that the customer is redirected to.
Can be one of
en
,de
,fr
, ornl
- verified_name string? - Owner's verified full name. Values are verified or provided by Bancontact directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetailsBoleto
Fields
- tax_id string - Uniquely identifies this customer tax_id (CNPJ or CPF)
stripe: PaymentMethodDetailsCard
Fields
- brand string? - Card brand. Can be
amex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- checks PaymentMethodDetailsCardChecks? - Check results by Card networks on Card address and CVC at time of payment.
- country string? - Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
- exp_month int - Two-digit number representing the card's expiration month.
- exp_year int - Four-digit number representing the card's expiration year.
- fingerprint string? - Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
- funding string? - Card funding type. Can be
credit
,debit
,prepaid
, orunknown
.
- installments PaymentMethodDetailsCardInstallments? - Installment details for this payment (Mexico only). For more information, see the installments integration guide.
- last4 string? - The last four digits of the card.
- network string? - Identifies which network this charge was processed on. Can be
amex
,cartes_bancaires
,diners
,discover
,interac
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- three_d_secure ThreeDSecureDetails? - Populated if this transaction used 3D Secure authentication.
- wallet PaymentMethodDetailsCardWallet? - If this Card is part of a card wallet, this contains the details of the card wallet.
stripe: PaymentMethodDetailsCardChecks
Fields
- address_line1_check string? - If a address line1 was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
- address_postal_code_check string? - If a address postal code was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
- cvc_check string? - If a CVC was provided, results of the check, one of
pass
,fail
,unavailable
, orunchecked
.
stripe: PaymentMethodDetailsCardInstallments
Fields
- plan PaymentMethodDetailsCardInstallmentsPlan? - Installment plan selected for the payment.
stripe: PaymentMethodDetailsCardInstallmentsPlan
Fields
- count int? - For
fixed_count
installment plans, this is the number of installment payments your customer will make to their credit card.
- interval string? - For
fixed_count
installment plans, this is the interval between installment payments your customer will make to their credit card. One ofmonth
.
- 'type string - Type of installment plan, one of
fixed_count
.
stripe: PaymentMethodDetailsCardPresent
Fields
- brand string? - Card brand. Can be
amex
,diners
,discover
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- country string? - Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
- emv_auth_data string? - Authorization response cryptogram.
- exp_month int - Two-digit number representing the card's expiration month.
- exp_year int - Four-digit number representing the card's expiration year.
- fingerprint string? - Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
- funding string? - Card funding type. Can be
credit
,debit
,prepaid
, orunknown
.
- generated_card string? - ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
- last4 string? - The last four digits of the card.
- network string? - Identifies which network this charge was processed on. Can be
amex
,cartes_bancaires
,diners
,discover
,interac
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- read_method string? - How card details were read in this transaction.
- receipt PaymentMethodDetailsCardPresentReceipt? - A collection of fields required to be displayed on receipts. Only required for EMV transactions.
stripe: PaymentMethodDetailsCardPresentReceipt
Fields
- account_type string? - The type of account being debited or credited
- application_cryptogram string? - EMV tag 9F26, cryptogram generated by the integrated circuit chip.
- application_preferred_name string? - Mnenomic of the Application Identifier.
- authorization_code string? - Identifier for this transaction.
- authorization_response_code string? - EMV tag 8A. A code returned by the card issuer.
- cardholder_verification_method string? - How the cardholder verified ownership of the card.
- dedicated_file_name string? - EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
- terminal_verification_results string? - The outcome of a series of EMV functions performed by the card reader.
- transaction_status_information string? - An indication of various EMV functions performed during the transaction.
stripe: PaymentMethodDetailsCardWallet
Fields
- amex_express_checkout PaymentMethodDetailsCardWalletAmexExpressCheckout? -
- apple_pay PaymentMethodDetailsCardWalletApplePay? -
- dynamic_last4 string? - (For tokenized numbers only.) The last four digits of the device account number.
- google_pay PaymentMethodDetailsCardWalletGooglePay? -
- masterpass PaymentMethodDetailsCardWalletMasterpass? -
- samsung_pay PaymentMethodDetailsCardWalletSamsungPay? -
- 'type string - The type of the card wallet, one of
amex_express_checkout
,apple_pay
,google_pay
,masterpass
,samsung_pay
, orvisa_checkout
. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
- visa_checkout PaymentMethodDetailsCardWalletVisaCheckout? -
stripe: PaymentMethodDetailsCardWalletAmexExpressCheckout
stripe: PaymentMethodDetailsCardWalletApplePay
stripe: PaymentMethodDetailsCardWalletGooglePay
stripe: PaymentMethodDetailsCardWalletMasterpass
Fields
- billing_address Address? - Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- email string? - Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- name string? - Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- shipping_address Address? - Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetailsCardWalletSamsungPay
stripe: PaymentMethodDetailsCardWalletVisaCheckout
Fields
- billing_address Address? - Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- email string? - Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- name string? - Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
- shipping_address Address? - Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetailsEps
Fields
- bank string? - The customer's bank. Should be one of
arzte_und_apotheker_bank
,austrian_anadi_bank_ag
,bank_austria
,bankhaus_carl_spangler
,bankhaus_schelhammer_und_schattera_ag
,bawag_psk_ag
,bks_bank_ag
,brull_kallmus_bank_ag
,btv_vier_lander_bank
,capital_bank_grawe_gruppe_ag
,dolomitenbank
,easybank_ag
,erste_bank_und_sparkassen
,hypo_alpeadriabank_international_ag
,hypo_noe_lb_fur_niederosterreich_u_wien
,hypo_oberosterreich_salzburg_steiermark
,hypo_tirol_bank_ag
,hypo_vorarlberg_bank_ag
,hypo_bank_burgenland_aktiengesellschaft
,marchfelder_bank
,oberbank_ag
,raiffeisen_bankengruppe_osterreich
,schoellerbank_ag
,sparda_bank_wien
,volksbank_gruppe
,volkskreditbank_ag
, orvr_bank_braunau
.
- verified_name string? - Owner's verified full name. Values are verified or provided by EPS directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. EPS rarely provides this information so the attribute is usually empty.
stripe: PaymentMethodDetailsFpx
Fields
- bank string - The customer's bank. Can be one of
affin_bank
,alliance_bank
,ambank
,bank_islam
,bank_muamalat
,bank_rakyat
,bsn
,cimb
,hong_leong_bank
,hsbc
,kfh
,maybank2u
,ocbc
,public_bank
,rhb
,standard_chartered
,uob
,deutsche_bank
,maybank2e
, orpb_enterprise
.
- transaction_id string? - Unique transaction id generated by FPX for every request from the merchant
stripe: PaymentMethodDetailsGiropay
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- bank_name string? - Name of the bank associated with the bank account.
- bic string? - Bank Identifier Code of the bank associated with the bank account.
- verified_name string? - Owner's verified full name. Values are verified or provided by Giropay directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Giropay rarely provides this information so the attribute is usually empty.
stripe: PaymentMethodDetailsGrabpay
Fields
- transaction_id string? - Unique transaction id generated by GrabPay
stripe: PaymentMethodDetailsIdeal
Fields
- bank string? - The customer's bank. Can be one of
abn_amro
,asn_bank
,bunq
,handelsbanken
,ing
,knab
,moneyou
,rabobank
,regiobank
,revolut
,sns_bank
,triodos_bank
, orvan_lanschot
.
- bic string? - The Bank Identifier Code of the customer's bank.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
- iban_last4 string? - Last four characters of the IBAN.
- verified_name string? - Owner's verified full name. Values are verified or provided by iDEAL directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetailsInteracPresent
Fields
- brand string? - Card brand. Can be
interac
,mastercard
orvisa
.
- country string? - Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
- emv_auth_data string? - Authorization response cryptogram.
- exp_month int - Two-digit number representing the card's expiration month.
- exp_year int - Four-digit number representing the card's expiration year.
- fingerprint string? - Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
- funding string? - Card funding type. Can be
credit
,debit
,prepaid
, orunknown
.
- generated_card string? - ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
- last4 string? - The last four digits of the card.
- network string? - Identifies which network this charge was processed on. Can be
amex
,cartes_bancaires
,diners
,discover
,interac
,jcb
,mastercard
,unionpay
,visa
, orunknown
.
- preferred_locales PaymentmethoddetailsinteracpresentPreferredlocalesItemsString[]? - EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
- read_method string? - How card details were read in this transaction.
- receipt PaymentMethodDetailsInteracPresentReceipt? - A collection of fields required to be displayed on receipts. Only required for EMV transactions.
stripe: PaymentMethodDetailsInteracPresentReceipt
Fields
- account_type string? - The type of account being debited or credited
- application_cryptogram string? - EMV tag 9F26, cryptogram generated by the integrated circuit chip.
- application_preferred_name string? - Mnenomic of the Application Identifier.
- authorization_code string? - Identifier for this transaction.
- authorization_response_code string? - EMV tag 8A. A code returned by the card issuer.
- cardholder_verification_method string? - How the cardholder verified ownership of the card.
- dedicated_file_name string? - EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
- terminal_verification_results string? - The outcome of a series of EMV functions performed by the card reader.
- transaction_status_information string? - An indication of various EMV functions performed during the transaction.
stripe: PaymentMethodDetailsKlarna
stripe: PaymentMethodDetailsMultibanco
Fields
- entity string? - Entity number associated with this Multibanco payment.
- reference string? - Reference number associated with this Multibanco payment.
stripe: PaymentMethodDetailsOxxo
Fields
- number string? - OXXO reference number
stripe: PaymentMethodDetailsP24
Fields
- bank string? - The customer's bank. Can be one of
ing
,citi_handlowy
,tmobile_usbugi_bankowe
,plus_bank
,etransfer_pocztowy24
,banki_spbdzielcze
,bank_nowy_bfg_sa
,getin_bank
,blik
,noble_pay
,ideabank
,envelobank
,santander_przelew24
,nest_przelew
,mbank_mtransfer
,inteligo
,pbac_z_ipko
,bnp_paribas
,credit_agricole
,toyota_bank
,bank_pekao_sa
,volkswagen_bank
,bank_millennium
,alior_bank
, orboz
.
- reference string? - Unique reference for this Przelewy24 payment.
- verified_name string? - Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty.
stripe: PaymentMethodDetailsSepaDebit
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- branch_code string? - Branch code of bank associated with the bank account.
- country string? - Two-letter ISO code representing the country the bank account is located in.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- last4 string? - Last four characters of the IBAN.
- mandate string? - ID of the mandate used to make this payment.
stripe: PaymentMethodDetailsSofort
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- bank_name string? - Name of the bank associated with the bank account.
- bic string? - Bank Identifier Code of the bank associated with the bank account.
- country string? - Two-letter ISO code representing the country the bank account is located in.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge.
- iban_last4 string? - Last four characters of the IBAN.
- preferred_language string? - Preferred language of the SOFORT authorization page that the customer is redirected to.
Can be one of
de
,en
,es
,fr
,it
,nl
, orpl
- verified_name string? - Owner's verified full name. Values are verified or provided by SOFORT directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: PaymentMethodDetailsStripeAccount
stripe: PaymentMethodDetailsWechat
stripe: PaymentMethodDetailsWechatPay
Fields
- fingerprint string? - Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
- transaction_id string? - Transaction ID of this particular WeChat Pay transaction.
stripe: PaymentMethodEps
Fields
- bank string? - The customer's bank. Should be one of
arzte_und_apotheker_bank
,austrian_anadi_bank_ag
,bank_austria
,bankhaus_carl_spangler
,bankhaus_schelhammer_und_schattera_ag
,bawag_psk_ag
,bks_bank_ag
,brull_kallmus_bank_ag
,btv_vier_lander_bank
,capital_bank_grawe_gruppe_ag
,dolomitenbank
,easybank_ag
,erste_bank_und_sparkassen
,hypo_alpeadriabank_international_ag
,hypo_noe_lb_fur_niederosterreich_u_wien
,hypo_oberosterreich_salzburg_steiermark
,hypo_tirol_bank_ag
,hypo_vorarlberg_bank_ag
,hypo_bank_burgenland_aktiengesellschaft
,marchfelder_bank
,oberbank_ag
,raiffeisen_bankengruppe_osterreich
,schoellerbank_ag
,sparda_bank_wien
,volksbank_gruppe
,volkskreditbank_ag
, orvr_bank_braunau
.
stripe: PaymentMethodFpx
Fields
- bank string - The customer's bank, if provided. Can be one of
affin_bank
,alliance_bank
,ambank
,bank_islam
,bank_muamalat
,bank_rakyat
,bsn
,cimb
,hong_leong_bank
,hsbc
,kfh
,maybank2u
,ocbc
,public_bank
,rhb
,standard_chartered
,uob
,deutsche_bank
,maybank2e
, orpb_enterprise
.
stripe: PaymentMethodGiropay
stripe: PaymentMethodGrabpay
stripe: PaymentMethodIdeal
Fields
- bank string? - The customer's bank, if provided. Can be one of
abn_amro
,asn_bank
,bunq
,handelsbanken
,ing
,knab
,moneyou
,rabobank
,regiobank
,revolut
,sns_bank
,triodos_bank
, orvan_lanschot
.
- bic string? - The Bank Identifier Code of the customer's bank, if the bank was provided.
stripe: PaymentMethodInteracPresent
stripe: PaymentMethodOptions
Fields
stripe: PaymentMethodOptions1
Fields
- bancontact BancontactInvoicePaymentMethodOptionsParam|string?? -
stripe: PaymentMethodOptionsAfterpayClearpay
Fields
- reference string? - Order identifier shown to the merchant in Afterpay’s online portal. We recommend using a value that helps you answer any questions a customer might have about the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
stripe: PaymentMethodOptionsAlipay
stripe: PaymentMethodOptionsBancontact
Fields
- preferred_language string - Preferred language of the Bancontact authorization page that the customer is redirected to.
stripe: PaymentMethodOptionsBoleto
Fields
- expires_after_days int - The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
stripe: PaymentMethodOptionsCardInstallments
Fields
- available_plans PaymentMethodDetailsCardInstallmentsPlan[]? - Installment plans that may be selected for this PaymentIntent.
- enabled boolean - Whether Installments are enabled for this PaymentIntent.
- plan PaymentMethodDetailsCardInstallmentsPlan? - Installment plan selected for this PaymentIntent.
stripe: PaymentMethodOptionsCardPresent
stripe: PaymentMethodOptionsIdeal
stripe: PaymentMethodOptionsOxxo
Fields
- expires_after_days int - The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
stripe: PaymentMethodOptionsP24
stripe: PaymentMethodOptionsSofort
Fields
- preferred_language string? - Preferred language of the SOFORT authorization page that the customer is redirected to.
stripe: PaymentMethodOptionsWechatPay
Fields
- app_id string? - The app ID registered with WeChat Pay. Only required when client is ios or android.
- 'client string? - The client type that the end customer will pay from
stripe: PaymentMethodOxxo
stripe: PaymentMethodP24
Fields
- bank string? - The customer's bank, if provided.
stripe: PaymentMethodParam
If this is an acss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method.
Fields
- account_number string - Customer’s bank account number
- institution_number string - Institution number of the customer’s bank
- transit_number string - Transit number of the customer’s bank
stripe: PaymentMethodSepaDebit
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- branch_code string? - Branch code of bank associated with the bank account.
- country string? - Two-letter ISO code representing the country the bank account is located in.
- fingerprint string? - Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- generated_from SepaDebitGeneratedFrom? - Information about the object that generated this PaymentMethod.
- last4 string? - Last four characters of the IBAN.
stripe: PaymentMethodSofort
Fields
- country string? - Two-letter ISO code representing the country the bank account is located in.
stripe: PaymentMethodsPaymentMethodBody
Fields
- billing_details BillingDetailsInnerParams? - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- card UpdateApiParam? - If this is a
card
PaymentMethod, this hash contains the user's card details.
- expand PaymentmethodspaymentmethodbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
stripe: PaymentMethodWechatPay
stripe: PaymentPagesCheckoutSessionAutomaticTax
Fields
- enabled boolean - Indicates whether automatic tax is enabled for the session
- status string? - The status of the most recent automated tax calculation for this session.
stripe: PaymentPagesCheckoutSessionCustomerDetails
Fields
- email string? - The customer’s email at time of checkout.
- tax_exempt string? - The customer’s tax exempt status at time of checkout.
- tax_ids PaymentPagesCheckoutSessionTaxId[]? - The customer’s tax IDs at time of checkout.
stripe: PaymentPagesCheckoutSessionListLineItems
The line items purchased by the customer.
Fields
- data Item[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: PaymentPagesCheckoutSessionTaxId
Fields
- 'type string - The type of the tax ID, one of
eu_vat
,br_cnpj
,br_cpf
,gb_vat
,nz_gst
,au_abn
,au_arn
,in_gst
,no_vat
,za_vat
,ch_vat
,mx_rfc
,sg_uen
,ru_inn
,ru_kpp
,ca_bn
,hk_br
,es_cif
,tw_vat
,th_vat
,jp_cn
,jp_rn
,li_uid
,my_itn
,us_ein
,kr_brn
,ca_qst
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,my_sst
,sg_gst
,ae_trn
,cl_tin
,sa_vat
,id_npwp
,my_frp
,il_vat
, orunknown
- value string? - The value of the tax ID.
stripe: PaymentPagesCheckoutSessionTaxIdCollection
Fields
- enabled boolean - Indicates whether tax ID collection is enabled for the session
stripe: PaymentPagesCheckoutSessionTotalDetails
Fields
- amount_discount int - This is the sum of all the line item discounts.
- amount_shipping int? - This is the sum of all the line item shipping amounts.
- amount_tax int - This is the sum of all the line item tax amounts.
stripe: PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown
Fields
- discounts LineItemsDiscountAmount[] - The aggregated line item discounts.
- taxes LineItemsTaxAmount[] - The aggregated line item tax amounts by rate.
stripe: PaymentPagesPaymentPageResourcesShippingAddressCollection
Fields
- allowed_countries string[] - An array of two-letter ISO country codes representing which countries Checkout should provide as options for
shipping locations. Unsupported country codes:
AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI
.
stripe: PaymentSettings
Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
Fields
- payment_method_options PaymentMethodOptions? -
stripe: PaymentSettings1
Payment settings to pass to invoices created by the subscription.
Fields
- payment_method_options PaymentMethodOptions1? -
- payment_method_types PaymentMethodTypesArray|string?? -
stripe: PaymentSettings2
Payment settings to pass to invoices created by the subscription.
Fields
- payment_method_options PaymentMethodOptions? -
stripe: Payout
A Payout
object is created when you receive funds from Stripe, or when you
initiate a payout to either a bank account or debit card of a connected
Stripe account. You can retrieve individual payouts,
as well as list all payouts. Payouts are made on varying
schedules, depending on your country and
industry.
Related guide: Receiving Payouts.
Fields
- amount int - Amount (in %s) to be transferred to your bank account or debit card.
- arrival_date int - Date the payout is expected to arrive in the bank. This factors in delays like weekends or bank holidays.
- automatic boolean - Returns
true
if the payout was created by an automated payout schedule, andfalse
if it was requested manually.
- balance_transaction string|BalanceTransaction?? - ID of the balance transaction that describes the impact of this payout on your account balance.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- destination string|BankAccount|Card|DeletedBankAccount|DeletedCard?? - ID of the bank account or card the payout was sent to.
- failure_balance_transaction string|BalanceTransaction?? - If the payout failed or was canceled, this will be the ID of the balance transaction that reversed the initial balance transaction, and puts the funds from the failed payout back in your balance.
- failure_code string? - Error code explaining reason for payout failure if available. See Types of payout failures for a list of failure codes.
- failure_message string? - Message to user further explaining reason for payout failure if available.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- method string - The method used to send this payout, which can be
standard
orinstant
.instant
is only supported for payouts to debit cards. (See Instant payouts for marketplaces for more information.)
- 'object string - String representing the object's type. Objects of the same type share the same value.
- source_type string - The source balance this payout came from. One of
card
,fpx
, orbank_account
.
- statement_descriptor string? - Extra information about a payout to be displayed on the user's bank statement.
- status string - Current status of the payout:
paid
,pending
,in_transit
,canceled
orfailed
. A payout ispending
until it is submitted to the bank, when it becomesin_transit
. The status then changes topaid
if the transaction goes through, or tofailed
orcanceled
(within 5 business days). Some failed payouts may initially show aspaid
but then change tofailed
.
- 'type string - Can be
bank_account
orcard
.
stripe: PendingInvoiceItemIntervalParams
Fields
- interval string -
- interval_count int? -
stripe: Period
Fields
- end int? - The end date of this usage period. All usage up to and including this point in time is included.
- 'start int? - The start date of this usage period. All usage after this point in time is included.
stripe: Period1
Fields
- end int -
- 'start int -
stripe: Person
This is an object representing a person associated with a Stripe account.
A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
Related guide: Handling Identity Verification with the API.
Fields
- account string - The account the person is associated with.
- address Address? -
- address_kana LegalEntityJapanAddress? -
- address_kanji LegalEntityJapanAddress? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- dob LegalEntityDob? -
- email string? - The person's email address.
- first_name string? - The person's first name.
- first_name_kana string? - The Kana variation of the person's first name (Japan only).
- first_name_kanji string? - The Kanji variation of the person's first name (Japan only).
- gender string? - The person's gender (International regulations require either "male" or "female").
- id string - Unique identifier for the object.
- id_number_provided boolean? - Whether the person's
id_number
was provided.
- last_name string? - The person's last name.
- last_name_kana string? - The Kana variation of the person's last name (Japan only).
- last_name_kanji string? - The Kanji variation of the person's last name (Japan only).
- maiden_name string? - The person's maiden name.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- nationality string? - The country where the person is a national.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- phone string? - The person's phone number.
- political_exposure string? - Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
- relationship PersonRelationship? -
- requirements PersonRequirements? -
- ssn_last_4_provided boolean? - Whether the last four digits of the person's Social Security number have been provided (U.S. only).
- verification LegalEntityPersonVerification? -
stripe: PersonRelationship
Fields
- director boolean? - Whether the person is a director of the account's legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
- executive boolean? - Whether the person has significant responsibility to control, manage, or direct the organization.
- owner boolean? - Whether the person is an owner of the account’s legal entity.
- percent_ownership decimal? - The percent owned by the person of the account's legal entity.
- representative boolean? - Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
- title string? - The person's title (e.g., CEO, Support Engineer).
stripe: PersonRequirements
Fields
- currently_due PersonrequirementsCurrentlydueItemsString[] - Fields that need to be collected to keep the person's account enabled. If not collected by the account's
current_deadline
, these fields appear inpast_due
as well, and the account is disabled.
- errors AccountRequirementsError[] - Fields that are
currently_due
and need to be collected again because validation or verification failed.
- eventually_due PersonrequirementsEventuallydueItemsString[] - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in
currently_due
as well, and the account'scurrent_deadline
becomes set.
- past_due PersonrequirementsPastdueItemsString[] - Fields that weren't collected by the account's
current_deadline
. These fields need to be collected to enable the person's account.
- pending_verification PersonrequirementsPendingverificationItemsString[] - Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to
eventually_due
,currently_due
, orpast_due
.
stripe: PhaseConfigurationParams
Fields
- add_invoice_items AddInvoiceItemEntry1[]? -
- application_fee_percent decimal? -
- automatic_tax AutomaticTaxConfig3? -
- billing_cycle_anchor string? -
- collection_method string? -
- coupon string? -
- default_payment_method string? -
- default_tax_rates DefaulttaxratesItemsString[]|string?? -
- end_date int? -
- invoice_settings SubscriptionSchedulesParam1? -
- items ConfigurationItemParams[] -
- iterations int? -
- proration_behavior string? -
- transfer_data TransferDataSpecs3? -
- trial boolean? -
- trial_end int? -
stripe: PhaseConfigurationParams1
Fields
- add_invoice_items AddInvoiceItemEntry1[]? -
- application_fee_percent decimal? -
- automatic_tax AutomaticTaxConfig3? -
- billing_cycle_anchor string? -
- billing_thresholds BillingThresholdParams|string?? -
- collection_method string? -
- coupon string? -
- default_payment_method string? -
- default_tax_rates DefaulttaxratesItemsString[]|string?? -
- invoice_settings SubscriptionSchedulesParam1? -
- items ConfigurationItemParams[] -
- iterations int? -
- proration_behavior string? -
- transfer_data TransferDataSpecs3? -
- trial boolean? -
stripe: Plan
You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Related guides: Set up a subscription and more about products and prices.
Fields
- active boolean - Whether the plan can be used for new purchases.
- aggregate_usage string? - Specifies a usage aggregation strategy for plans of
usage_type=metered
. Allowed values aresum
for summing up all usage during a period,last_during_period
for using the last usage record reported within a period,last_ever
for using the last usage record ever (across period bounds) ormax
which uses the usage record with the maximum reported usage during a period. Defaults tosum
.
- amount int? - The unit amount in %s to be charged, represented as a whole integer if possible. Only set if
billing_scheme=per_unit
.
- amount_decimal string? - The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_scheme=per_unit
.
- billing_scheme string - Describes how to compute the price per period. Either
per_unit
ortiered
.per_unit
indicates that the fixed amount (specified inamount
) will be charged per unit inquantity
(for plans withusage_type=licensed
), or per unit of total usage (for plans withusage_type=metered
).tiered
indicates that the unit pricing will be computed using a tiering strategy as defined using thetiers
andtiers_mode
attributes.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- interval string - The frequency at which a subscription is billed. One of
day
,week
,month
oryear
.
- interval_count int - The number of intervals (specified in the
interval
attribute) between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- nickname string? - A brief description of the plan, hidden from customers.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- product string|Product|DeletedProduct?? - The product whose pricing this plan determines.
- tiers PlanTier[]? - Each element represents a pricing tier. This parameter requires
billing_scheme
to be set totiered
. See also the documentation forbilling_scheme
.
- tiers_mode string? - Defines if the tiering price should be
graduated
orvolume
based. Involume
-based tiering, the maximum quantity within a period determines the per unit price. Ingraduated
tiering, pricing can change as the quantity grows.
- transform_usage TransformUsage? - Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with
tiers
.
- trial_period_days int? - Default number of trial days when subscribing a customer to this plan using
trial_from_plan=true
.
- usage_type string - Configures how the quantity per period should be determined. Can be either
metered
orlicensed
.licensed
automatically bills thequantity
set when adding it to a subscription.metered
aggregates the total usage based on usage records. Defaults tolicensed
.
stripe: PlanTier
Fields
- flat_amount int? - Price for the entire tier.
- flat_amount_decimal string? - Same as
flat_amount
, but contains a decimal value with at most 12 decimal places.
- unit_amount int? - Per unit price for units relevant to the tier.
- unit_amount_decimal string? - Same as
unit_amount
, but contains a decimal value with at most 12 decimal places.
- up_to int? - Up to and including to this quantity will be contained in the tier.
stripe: PlatformTaxFee
Fields
- account string - The Connected account that incurred this charge.
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- source_transaction string - The payment object that caused this tax to be inflicted.
- 'type string - The type of tax (VAT).
stripe: PortalBusinessProfile
Fields
- headline string? - The messaging shown to customers in the portal.
- privacy_policy_url string - A link to the business’s publicly available privacy policy.
- terms_of_service_url string - A link to the business’s publicly available terms of service.
stripe: PortalCustomerUpdate
Fields
- allowed_updates string[] - The types of customer updates that are supported. When empty, customers are not updateable.
- enabled boolean - Whether the feature is enabled.
stripe: PortalFeatures
Fields
- customer_update PortalCustomerUpdate -
- invoice_history PortalInvoiceList -
- payment_method_update PortalPaymentMethodUpdate -
- subscription_cancel PortalSubscriptionCancel -
- subscription_pause PortalSubscriptionPause -
- subscription_update PortalSubscriptionUpdate -
stripe: PortalInvoiceList
Fields
- enabled boolean - Whether the feature is enabled.
stripe: PortalPaymentMethodUpdate
Fields
- enabled boolean - Whether the feature is enabled.
stripe: PortalSubscriptionCancel
Fields
- cancellation_reason PortalSubscriptionCancellationReason? -
- enabled boolean - Whether the feature is enabled.
- mode string - Whether to cancel subscriptions immediately or at the end of the billing period.
- proration_behavior string - Whether to create prorations when canceling subscriptions. Possible values are
none
andcreate_prorations
.
stripe: PortalSubscriptionCancellationReason
Fields
- enabled boolean - Whether the feature is enabled.
- options string[] - Which cancellation reasons will be given as options to the customer.
stripe: PortalSubscriptionPause
Fields
- enabled boolean - Whether the feature is enabled.
stripe: PortalSubscriptionUpdate
Fields
- default_allowed_updates string[] - The types of subscription updates that are supported for items listed in the
products
attribute. When empty, subscriptions are not updateable.
- enabled boolean - Whether the feature is enabled.
- products PortalSubscriptionUpdateProduct[]? - The list of products that support subscription updates.
- proration_behavior string - Determines how to handle prorations resulting from subscription updates. Valid values are
none
,create_prorations
, andalways_invoice
.
stripe: PortalSubscriptionUpdateProduct
Fields
- prices PortalsubscriptionupdateproductPricesItemsString[] - The list of price IDs which, when subscribed to, a subscription can be updated.
- product string - The product ID.
stripe: Price
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
Related guides: Set up a subscription, create an invoice, and more about products and prices.
Fields
- active boolean - Whether the price can be used for new purchases.
- billing_scheme string - Describes how to compute the price per period. Either
per_unit
ortiered
.per_unit
indicates that the fixed amount (specified inunit_amount
orunit_amount_decimal
) will be charged per unit inquantity
(for prices withusage_type=licensed
), or per unit of total usage (for prices withusage_type=metered
).tiered
indicates that the unit pricing will be computed using a tiering strategy as defined using thetiers
andtiers_mode
attributes.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- lookup_key string? - A lookup key used to retrieve prices dynamically from a static string.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- nickname string? - A brief description of the price, hidden from customers.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- product string|Product|DeletedProduct? - The ID of the product this price is associated with.
- recurring Recurring? - The recurring components of a price such as
interval
andusage_type
.
- tax_behavior string? - Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive
,exclusive
, orunspecified
. Once specified as eitherinclusive
orexclusive
, it cannot be changed.
- tiers PriceTier[]? - Each element represents a pricing tier. This parameter requires
billing_scheme
to be set totiered
. See also the documentation forbilling_scheme
.
- tiers_mode string? - Defines if the tiering price should be
graduated
orvolume
based. Involume
-based tiering, the maximum quantity within a period determines the per unit price. Ingraduated
tiering, pricing can change as the quantity grows.
- transform_quantity TransformQuantity? - Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with
tiers
.
- 'type string - One of
one_time
orrecurring
depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
- unit_amount int? - The unit amount in %s to be charged, represented as a whole integer if possible. Only set if
billing_scheme=per_unit
.
- unit_amount_decimal string? - The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if
billing_scheme=per_unit
.
stripe: PricesPriceBody
Fields
- active boolean? - Whether the price can be used for new purchases. Defaults to
true
.
- expand PricespricebodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- lookup_key string? - A lookup key used to retrieve prices dynamically from a static string.
- metadata AdditionalProperties|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- nickname string? - A brief description of the price, hidden from customers.
- tax_behavior string? - Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive
,exclusive
, orunspecified
. Once specified as eitherinclusive
orexclusive
, it cannot be changed.
- transfer_lookup_key boolean? - If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
stripe: PriceTier
Fields
- flat_amount int? - Price for the entire tier.
- flat_amount_decimal string? - Same as
flat_amount
, but contains a decimal value with at most 12 decimal places.
- unit_amount int? - Per unit price for units relevant to the tier.
- unit_amount_decimal string? - Same as
unit_amount
, but contains a decimal value with at most 12 decimal places.
- up_to int? - Up to and including to this quantity will be contained in the tier.
stripe: Product
Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. They can be used in conjunction with Prices to configure pricing in Checkout and Subscriptions.
Related guides: Set up a subscription or accept one-time payments with Checkout and more about Products and Prices
Fields
- active boolean - Whether the product is currently available for purchase.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- description string? - The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
- id string - Unique identifier for the object.
- images ProductImagesItemsString[] - A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string - The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- package_dimensions PackageDimensions? - The dimensions of this product for shipping purposes.
- shippable boolean? - Whether this product is shipped (i.e., physical goods).
- statement_descriptor string? - Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.
- unit_label string? - A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions.
- updated int - Time at which the object was last updated. Measured in seconds since the Unix epoch.
- url string? - A URL of a publicly-accessible webpage for this product.
stripe: ProductsIdBody
Fields
- active boolean? - Whether the product is available for purchase.
- description string? - The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
- expand ProductsidbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- metadata AdditionalProperties|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- name string? - The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
- package_dimensions PackageDimentionsSpecs|string?? - The dimensions of this product for shipping purposes.
- shippable boolean? - Whether this product is shipped (i.e., physical goods).
- statement_descriptor string? - An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.
This may be up to 22 characters. The statement description may not include
<
,>
,\
,"
,'
characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. MISSING[]It must contain at least one letter. May only be set if
type=service`.
- unit_label string? - A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions. May only be set if
type=service
.
- url string? - A URL of a publicly-accessible webpage for this product.
stripe: PromotionCode
A Promotion Code represents a customer-redeemable code for a coupon. It can be used to create multiple codes for a single coupon.
Fields
- active boolean - Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
- code string - The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- customer string|Customer|DeletedCustomer?? - The customer that this promotion code can be used by.
- expires_at int? - Date at which the promotion code can no longer be redeemed.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- max_redemptions int? - Maximum number of times this promotion code can be redeemed.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- restrictions PromotionCodesResourceRestrictions -
- times_redeemed int - Number of times this promotion code has been used.
stripe: PromotionCodesResourceRestrictions
Fields
- first_time_transaction boolean - A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices
- minimum_amount int? - Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
stripe: ProxyConfig
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
stripe: Quote
A Quote is a way to model prices that you'd like to provide to a customer. Once accepted, it will automatically create an invoice, subscription or subscription schedule.
Fields
- amount_subtotal int - Total before any discounts or taxes are applied.
- amount_total int - Total after discounts and taxes are applied.
- application_fee_amount int? - The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
- automatic_tax QuotesResourceAutomaticTax -
- collection_method string - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults tocharge_automatically
.
- computed QuotesResourceComputed -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string? - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer string|Customer|DeletedCustomer?? - The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
- description string? - A description that will be displayed on the quote PDF.
- expires_at int - The date on which the quote will be canceled if in
open
ordraft
status. Measured in seconds since the Unix epoch.
- footer string? - A footer that will be displayed on the quote PDF.
- from_quote QuotesResourceFromQuote? - Details of the quote that was cloned. See the cloning documentation for more details.
- header string? - A header that will be displayed on the quote PDF.
- id string - Unique identifier for the object.
- invoice string|Invoice|DeletedInvoice?? - The invoice that was created from this quote.
- invoice_settings InvoiceSettingQuoteSetting? - All invoices will be billed using the specified settings.
- line_items QuotesResourceListLineItems? - A list of items the customer is being quoted for.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string|Account?? - The account on behalf of which to charge. See the Connect documentation for details.
- status string - The status of the quote.
- status_transitions QuotesResourceStatusTransitions -
- subscription string|Subscription?? - The subscription that was created or updated from this quote.
- subscription_data QuotesResourceSubscriptionData -
- subscription_schedule string|SubscriptionSchedule?? - The subscription schedule that was created or updated from this quote.
- total_details QuotesResourceTotalDetails -
- transfer_data QuotesResourceTransferData? - The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
stripe: QuotesResourceAutomaticTax
Fields
- enabled boolean - Automatically calculate taxes
- status string? - The status of the most recent automated tax calculation for this quote.
stripe: QuotesResourceComputed
Fields
- recurring QuotesResourceRecurring? - The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with
duration=forever
coupons only. Defaults tonull
if no inputted line items with recurring prices.
- upfront QuotesResourceUpfront -
stripe: QuotesResourceFromQuote
Fields
- is_revision boolean - Whether this quote is a revision of a different quote.
stripe: QuotesResourceListLineItems
A list of items the customer is being quoted for.
Fields
- data Item[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: Quotesresourcelistlineitems1
The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice.
Fields
- data Item[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: QuotesResourceRecurring
Fields
- amount_subtotal int - Total before any discounts or taxes are applied.
- amount_total int - Total after discounts and taxes are applied.
- interval string - The frequency at which a subscription is billed. One of
day
,week
,month
oryear
.
- interval_count int - The number of intervals (specified in the
interval
attribute) between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months.
- total_details QuotesResourceTotalDetails -
stripe: QuotesResourceStatusTransitions
Fields
- accepted_at int? - The time that the quote was accepted. Measured in seconds since Unix epoch.
- canceled_at int? - The time that the quote was canceled. Measured in seconds since Unix epoch.
- finalized_at int? - The time that the quote was finalized. Measured in seconds since Unix epoch.
stripe: QuotesResourceSubscriptionData
Fields
- effective_date int? - When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
- trial_period_days int? - Integer representing the number of trial period days before the customer is charged for the first time.
stripe: QuotesResourceTotalDetails
Fields
- amount_discount int - This is the sum of all the line item discounts.
- amount_shipping int? - This is the sum of all the line item shipping amounts.
- amount_tax int - This is the sum of all the line item tax amounts.
- breakdown QuotesResourceTotalDetailsResourceBreakdown? -
stripe: QuotesResourceTotalDetailsResourceBreakdown
Fields
- discounts LineItemsDiscountAmount[] - The aggregated line item discounts.
- taxes LineItemsTaxAmount[] - The aggregated line item tax amounts by rate.
stripe: QuotesResourceTransferData
Fields
- amount int? - The amount in %s that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination.
- amount_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the destination account. By default, the entire amount will be transferred to the destination.
stripe: QuotesResourceUpfront
Fields
- amount_subtotal int - Total before any discounts or taxes are applied.
- amount_total int - Total after discounts and taxes are applied.
- line_items Quotesresourcelistlineitems1? - The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice.
- total_details QuotesResourceTotalDetails -
stripe: RadarEarlyFraudWarning
An early fraud warning indicates that the card issuer has notified us that a charge may be fraudulent.
Related guide: Early Fraud Warnings.
Fields
- actionable boolean - An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- fraud_type string - The type of fraud labelled by the issuer. One of
card_never_received
,fraudulent_card_application
,made_with_counterfeit_card
,made_with_lost_card
,made_with_stolen_card
,misc
,unauthorized_use_of_card
.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_intent string|PaymentIntent?? - ID of the Payment Intent this early fraud warning is for, optionally expanded.
stripe: RadarListListItemList
List of items contained within this value list.
Fields
- data RadarValueListItem[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: RadarReviewResourceLocation
Fields
- city string? - The city where the payment originated.
- country string? - Two-letter ISO code representing the country where the payment originated.
- latitude decimal? - The geographic latitude where the payment originated.
- longitude decimal? - The geographic longitude where the payment originated.
- region string? - The state/county/province/region where the payment originated.
stripe: RadarReviewResourceSession
Fields
- browser string? - The browser used in this browser session (e.g.,
Chrome
).
- device string? - Information about the device used for the browser session (e.g.,
Samsung SM-G930T
).
- platform string? - The platform for the browser session (e.g.,
Macintosh
).
- 'version string? - The version for the browser session (e.g.,
61.0.3163.100
).
stripe: RadarValueList
Value lists allow you to group values together which can then be referenced in rules.
Related guide: Default Stripe Lists.
Fields
- alias string - The name of the value list for use in rules.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- created_by string - The name or email address of the user who created this value list.
- id string - Unique identifier for the object.
- item_type string - The type of items in the value list. One of
card_fingerprint
,card_bin
,email
,ip_address
,country
,string
, orcase_sensitive_string
.
- list_items RadarListListItemList - List of items contained within this value list.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- name string - The name of the value list.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: RadarValueListItem
Value list items allow you to add specific values to a given Radar value list, which can then be used in rules.
Related guide: Managing List Items.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- created_by string - The name or email address of the user who added this item to the value list.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- value string - The value of the item.
- value_list string - The identifier of the value list this item belongs to.
stripe: RangeQuerySpecs
Fields
- gt int? -
- gte int? -
- lt int? -
- lte int? -
stripe: Recipient
With Recipient
objects, you can transfer money from your Stripe account to a
third-party bank account or debit card. The API allows you to create, delete,
and update your recipients. You can retrieve individual recipients as well as
a list of all your recipients.
Recipient
objects have been deprecated in favor of
Connect, specifically Connect's much more powerful
Account objects. Stripe accounts that don't already use
recipients can no longer begin doing so. Please use Account
objects
instead.
Fields
- active_account BankAccount? - Hash describing the current account on the recipient, if there is one.
- cards CardList? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- email string? -
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- migrated_to string|Account?? - The ID of the Custom account this recipient was migrated to. If set, the recipient can no longer be updated, nor can transfers be made to it: use the Custom account instead.
- name string? - Full, legal name of the recipient.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'type string - Type of the recipient, one of
individual
orcorporation
.
stripe: Recurring
Fields
- aggregate_usage string? - Specifies a usage aggregation strategy for prices of
usage_type=metered
. Allowed values aresum
for summing up all usage during a period,last_during_period
for using the last usage record reported within a period,last_ever
for using the last usage record ever (across period bounds) ormax
which uses the usage record with the maximum reported usage during a period. Defaults tosum
.
- interval string - The frequency at which a subscription is billed. One of
day
,week
,month
oryear
.
- interval_count int - The number of intervals (specified in the
interval
attribute) between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months.
- usage_type string - Configures how the quantity per period should be determined. Can be either
metered
orlicensed
.licensed
automatically bills thequantity
set when adding it to a subscription.metered
aggregates the total usage based on usage records. Defaults tolicensed
.
stripe: Recurring1
The recurring components of a price such as interval
and usage_type
.
Fields
- aggregate_usage string? -
- interval string -
- interval_count int? -
- usage_type string? -
stripe: RecurringAdhoc
Fields
- interval string -
- interval_count int? -
stripe: RecurringPriceData
Data used to generate a new Price object inline.
Fields
- currency string -
- product string -
- recurring RecurringAdhoc -
- tax_behavior string? -
- unit_amount int? -
- unit_amount_decimal string? -
stripe: RecurringPriceData1
Fields
- currency string -
- product string -
- recurring RecurringAdhoc -
- tax_behavior string? -
- unit_amount int? -
- unit_amount_decimal string? -
stripe: Refund
Refund
objects allow you to refund a charge that has previously been created
but not yet refunded. Funds will be refunded to the credit or debit card that
was originally charged.
Related guide: Refunds.
Fields
- amount int - Amount, in %s.
- balance_transaction string|BalanceTransaction?? - Balance transaction that describes the impact on your account balance.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only)
- failure_balance_transaction string|BalanceTransaction?? - If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
- failure_reason string? - If the refund failed, the reason for refund failure if known. Possible values are
lost_or_stolen_card
,expired_or_canceled_card
, orunknown
.
- id string - Unique identifier for the object.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_intent string|PaymentIntent?? - ID of the PaymentIntent that was refunded.
- reason string? - Reason for the refund, either user-provided (
duplicate
,fraudulent
, orrequested_by_customer
) or generated by Stripe internally (expired_uncaptured_charge
).
- receipt_number string? - This is the transaction number that appears on email receipts sent for this refund.
- source_transfer_reversal string|TransferReversal?? - The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.
- transfer_reversal string|TransferReversal?? - If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.
stripe: RefundList
A list of refunds that have been applied to the charge.
Fields
- data Refund[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: ReportingReportRun
The Report Run object represents an instance of a report type generated with specific run parameters. Once the object is created, Stripe begins processing the report. When the report has finished running, it will give you a reference to a file where you can retrieve your results. For an overview, see API Access to Reports.
Note that certain report types can only be run based on your live-mode data (not test-mode data), and will error when queried without a live-mode API key.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- 'error string? - If something should go wrong during the run, a message about the failure (populated when
status=failed
).
- id string - Unique identifier for the object.
- livemode boolean -
true
if the report is run on live mode data andfalse
if it is run on test mode data.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- parameters FinancialReportingFinanceReportRunRunParameters -
- report_type string - The ID of the report type to run, such as
"balance.summary.1"
.
- result File? - The file object representing the result of the report run (populated when
status=succeeded
).
- status string - Status of this report run. This will be
pending
when the run is initially created. When the run finishes, this will be set tosucceeded
and theresult
field will be populated. Rarely, we may encounter an error, at which point this will be set tofailed
and theerror
field will be populated.
- succeeded_at int? - Timestamp at which this run successfully finished (populated when
status=succeeded
). Measured in seconds since the Unix epoch.
stripe: ReportingReportType
The Report Type resource corresponds to a particular type of report, such as the "Activity summary" or "Itemized payouts" reports. These objects are identified by an ID belonging to a set of enumerated values. See API Access to Reports documentation for those Report Type IDs, along with required and optional parameters.
Note that certain report types can only be run based on your live-mode data (not test-mode data), and will error when queried without a live-mode API key.
Fields
- data_available_end int - Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
- data_available_start int - Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
- default_columns ReportingreporttypeDefaultcolumnsItemsString[]? - List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the
columns
parameter, this will be null.)
- id string - The ID of the Report Type, such as
balance.summary.1
.
- name string - Human-readable name of the Report Type
- 'object string - String representing the object's type. Objects of the same type share the same value.
- updated int - When this Report Type was latest updated. Measured in seconds since the Unix epoch.
- 'version int - Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
stripe: ReserveTransaction
Fields
- amount int -
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: Review
Reviews can be used to supplement automated fraud detection with human expertise.
Learn more about Radar and reviewing payments here.
Fields
- billing_zip string? - The ZIP or postal code of the card used, if applicable.
- closed_reason string? - The reason the review was closed, or null if it has not yet been closed. One of
approved
,refunded
,refunded_as_fraud
,disputed
, orredacted
.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- ip_address string? - The IP address where the payment originated.
- ip_address_location RadarReviewResourceLocation? - Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- open boolean - If
true
, the review needs action.
- opened_reason string - The reason the review was opened. One of
rule
ormanual
.
- payment_intent string|PaymentIntent?? - The PaymentIntent ID associated with this review, if one exists.
- reason string - The reason the review is currently open or closed. One of
rule
,manual
,approved
,refunded
,refunded_as_fraud
,disputed
, orredacted
.
- session RadarReviewResourceSession? - Information related to the browsing session of the user who initiated the payment.
stripe: Rule
Fields
- action string - The action taken on the payment.
- id string - Unique identifier for the object.
- predicate string - The predicate to evaluate the payment against.
stripe: ScheduleCancelBody
Fields
- expand SchedulecancelbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- invoice_now boolean? - If the subscription schedule is
active
, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults totrue
.
- prorate boolean? - If the subscription schedule is
active
, indicates if the cancellation should be prorated. Defaults totrue
.
stripe: ScheduledQueryRun
If you have scheduled a Sigma query, you'll
receive a sigma.scheduled_query_run.created
webhook each time the query
runs. The webhook contains a ScheduledQueryRun
object, which you can use to
retrieve the query results.
Fields
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- data_load_time int - When the query was run, Sigma contained a snapshot of your Stripe data at this time.
- 'error SigmaScheduledQueryRunError? -
- file File? - The file object representing the results of the query.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- result_available_until int - Time at which the result expires and is no longer available for download.
- sql string - SQL for the query.
- status string - The query's execution status, which will be
completed
for successful runs, andcanceled
,failed
, ortimed_out
otherwise.
- title string - Title of the query.
stripe: ScheduleReleaseBody
Fields
- expand SchedulereleasebodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- preserve_cancel_date boolean? - Keep any cancellation on the subscription that the schedule has set
stripe: SchedulesPhaseAutomaticTax
Automatic tax configuration details
Fields
- enabled boolean - Whether Stripe automatically computes tax on invoices created during this phase.
stripe: SepaDebitGeneratedFrom
Fields
- setup_attempt string|SetupAttempt?? - The ID of the SetupAttempt that generated this PaymentMethod, if any.
stripe: SetupAttempt
A SetupAttempt describes one attempted confirmation of a SetupIntent, whether that confirmation was successful or unsuccessful. You can use SetupAttempts to inspect details of a specific attempt at setting up a payment method using a SetupIntent.
Fields
- application string|Application?? - The value of application on the SetupIntent at the time of this confirmation.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- customer string|Customer|DeletedCustomer?? - The value of customer on the SetupIntent at the time of this confirmation.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- on_behalf_of string|Account?? - The value of on_behalf_of on the SetupIntent at the time of this confirmation.
- payment_method string|PaymentMethod? - ID of the payment method used with this SetupAttempt.
- payment_method_details SetupAttemptPaymentMethodDetails -
- setup_error ApiErrors? - The error encountered during this attempt to confirm the SetupIntent, if any.
- setup_intent string|SetupIntent? - ID of the SetupIntent that this attempt belongs to.
- status string - Status of this SetupAttempt, one of
requires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.
stripe: SetupAttemptPaymentMethodDetails
Fields
- acss_debit SetupAttemptPaymentMethodDetailsAcssDebit? -
- au_becs_debit SetupAttemptPaymentMethodDetailsAuBecsDebit? -
- bacs_debit SetupAttemptPaymentMethodDetailsBacsDebit? -
- bancontact SetupAttemptPaymentMethodDetailsBancontact? -
- card_present SetupAttemptPaymentMethodDetailsCardPresent? -
- sepa_debit SetupAttemptPaymentMethodDetailsSepaDebit? -
- sofort SetupAttemptPaymentMethodDetailsSofort? -
- 'type string - The type of the payment method used in the SetupIntent (e.g.,
card
). An additional hash is included onpayment_method_details
with a name matching this value. It contains confirmation-specific information for the payment method.
stripe: SetupAttemptPaymentMethodDetailsAcssDebit
stripe: SetupAttemptPaymentMethodDetailsAuBecsDebit
stripe: SetupAttemptPaymentMethodDetailsBacsDebit
stripe: SetupAttemptPaymentMethodDetailsBancontact
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- bank_name string? - Name of the bank associated with the bank account.
- bic string? - Bank Identifier Code of the bank associated with the bank account.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.
- iban_last4 string? - Last four characters of the IBAN.
- preferred_language string? - Preferred language of the Bancontact authorization page that the customer is redirected to.
Can be one of
en
,de
,fr
, ornl
- verified_name string? - Owner's verified full name. Values are verified or provided by Bancontact directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: SetupAttemptPaymentMethodDetailsCard
Fields
- three_d_secure ThreeDSecureDetails? - Populated if this authorization used 3D Secure authentication.
stripe: SetupAttemptPaymentMethodDetailsCardPresent
Fields
- generated_card string|PaymentMethod?? - The ID of the Card PaymentMethod which was generated by this SetupAttempt.
stripe: SetupAttemptPaymentMethodDetailsIdeal
Fields
- bank string? - The customer's bank. Can be one of
abn_amro
,asn_bank
,bunq
,handelsbanken
,ing
,knab
,moneyou
,rabobank
,regiobank
,revolut
,sns_bank
,triodos_bank
, orvan_lanschot
.
- bic string? - The Bank Identifier Code of the customer's bank.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.
- iban_last4 string? - Last four characters of the IBAN.
- verified_name string? - Owner's verified full name. Values are verified or provided by iDEAL directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: SetupAttemptPaymentMethodDetailsSepaDebit
stripe: SetupAttemptPaymentMethodDetailsSofort
Fields
- bank_code string? - Bank code of bank associated with the bank account.
- bank_name string? - Name of the bank associated with the bank account.
- bic string? - Bank Identifier Code of the bank associated with the bank account.
- generated_sepa_debit string|PaymentMethod?? - The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt.
- iban_last4 string? - Last four characters of the IBAN.
- preferred_language string? - Preferred language of the Sofort authorization page that the customer is redirected to.
Can be one of
en
,de
,fr
, ornl
- verified_name string? - Owner's verified full name. Values are verified or provided by Sofort directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: SetupIntent
A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow.
Create a SetupIntent as soon as you're ready to collect your customer's payment credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid. The SetupIntent then transitions through multiple statuses as it guides you through the setup process.
Successful SetupIntents result in payment credentials that are optimized for future payments. For example, cardholders in certain regions may need to be run through Strong Customer Authentication at the time of payment method collection in order to streamline later off-session payments. If the SetupIntent is used with a Customer, upon success, it will automatically attach the resulting payment method to that Customer. We recommend using SetupIntents or setup_future_usage on PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.
By using SetupIntents, you ensure that your customers experience the minimum set of required friction, even as regulations change over time.
Related guide: Setup Intents API.
Fields
- application string|Application?? - ID of the Connect application that created the SetupIntent.
- cancellation_reason string? - Reason for cancellation of this SetupIntent, one of
abandoned
,requested_by_customer
, orduplicate
.
- client_secret string? - The client secret of this SetupIntent. Used for client-side retrieval using a publishable key. The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- customer string|Customer|DeletedCustomer?? - ID of the Customer this SetupIntent belongs to, if one exists. If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- id string - Unique identifier for the object.
- last_setup_error ApiErrors? - The error encountered in the previous SetupIntent confirmation.
- latest_attempt string|SetupAttempt?? - The most recent SetupAttempt for this SetupIntent.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- next_action SetupIntentNextAction? - If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- payment_method string|PaymentMethod?? - ID of the payment method used with this SetupIntent.
- payment_method_options SetupIntentPaymentMethodOptions? - Payment-method-specific configuration for this SetupIntent.
- payment_method_types SetupintentPaymentmethodtypesItemsString[] - The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
- usage string - Indicates how the payment method is intended to be used in the future.
Use
on_session
if you intend to only reuse the payment method when the customer is in your checkout flow. Useoff_session
if your customer may or may not be in your checkout flow. If not provided, this value defaults tooff_session
.
stripe: SetupIntentNextAction
Fields
- redirect_to_url SetupIntentNextActionRedirectToUrl? -
- 'type string - Type of the next action to perform, one of
redirect_to_url
,use_stripe_sdk
,alipay_handle_redirect
, oroxxo_display_details
.
- use_stripe_sdk record {}? - When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this dictionary to invoke authentication flows. The shape of the contents is subject to change and is only intended to be used by Stripe.js.
- verify_with_microdeposits SetupIntentNextActionVerifyWithMicrodeposits? -
stripe: SetupIntentNextActionRedirectToUrl
Fields
- return_url string? - If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
- url string? - The URL you must redirect your customer to in order to authenticate.
stripe: SetupIntentNextActionVerifyWithMicrodeposits
Fields
- arrival_date int - The timestamp when the microdeposits are expected to land.
- hosted_verification_url string - The URL for the hosted verification page, which allows customers to verify their bank account.
stripe: SetupIntentPaymentMethodOptions
Fields
- acss_debit SetupIntentPaymentMethodOptionsAcssDebit? -
- sepa_debit SetupIntentPaymentMethodOptionsSepaDebit? -
stripe: SetupIntentPaymentMethodOptionsAcssDebit
Fields
- currency string? - Currency supported by the bank account
- mandate_options SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit? -
- verification_method string? - Bank account verification method.
stripe: SetupIntentPaymentMethodOptionsCard
Fields
- request_three_d_secure string? - We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include:
automatic
orany
. If not provided, defaults toautomatic
. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.
stripe: SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit
Fields
- custom_mandate_url string? - A URL for custom mandate text
- interval_description string? - Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
- payment_schedule string? - Payment schedule for the mandate.
- transaction_type string? - Transaction type of the mandate.
stripe: SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit
stripe: SetupIntentPaymentMethodOptionsSepaDebit
Fields
- mandate_options SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit? -
stripe: Shipping
Fields
- address Address? -
- carrier string? - The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
- name string? - Recipient name.
- phone string? - Recipient phone (including extension).
- tracking_number string? - The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
stripe: ShippingMethod
Fields
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- delivery_estimate DeliveryEstimate? - The estimated delivery date for the given shipping method. Can be either a specific date or a range.
- description string - An arbitrary string attached to the object. Often useful for displaying to users.
- id string - Unique identifier for the object.
stripe: SigmaScheduledQueryRunError
Fields
- message string - Information about the run failure.
stripe: Sku
Stores representations of stock keeping units.
SKUs describe specific product variations, taking into account any combination of: attributes,
currency, and cost. For example, a product may be a T-shirt, whereas a specific SKU represents
the size: large
, color: red
version of that shirt.
Can also be used to manage inventory.
Related guide: Tax, Shipping, and Inventory.
Fields
- active boolean - Whether the SKU is available for purchase.
- attributes record {} - A dictionary of attributes and values for the attributes defined by the product. If, for example, a product's attributes are
["size", "gender"]
, a valid SKU has the following dictionary of attributes:{"size": "Medium", "gender": "Unisex"}
.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- image string? - The URL of an image for this SKU, meant to be displayable to the customer.
- inventory SkuInventory - Description of the SKU’s inventory
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- package_dimensions PackageDimensions? - The dimensions of this SKU for shipping purposes.
- price int - The cost of the item as a positive integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).
- updated int - Time at which the object was last updated. Measured in seconds since the Unix epoch.
stripe: SkuInventory
Description of the SKU’s inventory
Fields
- quantity int? - The count of inventory available. Will be present if and only if
type
isfinite
.
- 'type string - Inventory type. Possible values are
finite
,bucket
(not quantified), andinfinite
.
- value string? - An indicator of the inventory available. Possible values are
in_stock
,limited
, andout_of_stock
. Will be present if and only iftype
isbucket
.
stripe: Source
Source
objects allow you to accept a variety of payment methods. They
represent a customer's payment instrument, and can be used with the Stripe API
just like a Card
object: once chargeable, they can be charged, or can be
attached to customers.
Related guides: Sources API and Sources & Customers.
Fields
- ach_credit_transfer SourceTypeAchCreditTransfer? -
- ach_debit SourceTypeAchDebit? -
- acss_debit SourceTypeAcssDebit? -
- alipay SourceTypeAlipay? -
- amount int? - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for
single_use
sources.
- au_becs_debit SourceTypeAuBecsDebit? -
- bancontact SourceTypeBancontact? -
- card SourceTypeCard? -
- card_present SourceTypeCardPresent? -
- client_secret string - The client secret of the source. Used for client-side retrieval using a publishable key.
- code_verification SourceCodeVerificationFlow? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string? - Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for
single_use
sources.
- customer string? - The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer.
- eps SourceTypeEps? -
- flow string - The authentication
flow
of the source.flow
is one ofredirect
,receiver
,code_verification
,none
.
- giropay SourceTypeGiropay? -
- id string - Unique identifier for the object.
- ideal SourceTypeIdeal? -
- klarna SourceTypeKlarna? -
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- multibanco SourceTypeMultibanco? -
- 'object string - String representing the object's type. Objects of the same type share the same value.
- owner SourceOwner? - Information about the owner of the payment instrument that may be used or required by particular source types.
- p24 SourceTypeP24? -
- receiver SourceReceiverFlow? -
- redirect SourceRedirectFlow? -
- sepa_debit SourceTypeSepaDebit? -
- sofort SourceTypeSofort? -
- source_order SourceOrder? -
- statement_descriptor string? - Extra information about a source. This will appear on your customer's statement every time you charge the source.
- status string - The status of the source, one of
canceled
,chargeable
,consumed
,failed
, orpending
. Onlychargeable
sources can be used to create a charge.
- three_d_secure SourceTypeThreeDSecure? -
- 'type string - The
type
of the source. Thetype
is a payment method, one ofach_credit_transfer
,ach_debit
,alipay
,bancontact
,card
,card_present
,eps
,giropay
,ideal
,multibanco
,klarna
,p24
,sepa_debit
,sofort
,three_d_secure
, orwechat
. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.
- usage string? - Either
reusable
orsingle_use
. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned.
- wechat SourceTypeWechat? -
stripe: SourceCodeVerificationFlow
Fields
- attempts_remaining int - The number of attempts remaining to authenticate the source object with a verification code.
- status string - The status of the code verification, either
pending
(awaiting verification,attempts_remaining
should be greater than 0),succeeded
(successful verification) orfailed
(failed verification, cannot be verified anymore asattempts_remaining
should be 0).
stripe: SourceMandateNotification
Source mandate notifications should be created when a notification related to a source mandate must be sent to the payer. They will trigger a webhook or deliver an email to the customer.
Fields
- acss_debit SourceMandateNotificationAcssDebitData? -
- amount int? - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount associated with the mandate notification. The amount is expressed in the currency of the underlying source. Required if the notification type is
debit_initiated
.
- bacs_debit SourceMandateNotificationBacsDebitData? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- reason string - The reason of the mandate notification. Valid reasons are
mandate_confirmed
ordebit_initiated
.
- sepa_debit SourceMandateNotificationSepaDebitData? -
- 'source Source -
Source
objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like aCard
object: once chargeable, they can be charged, or can be attached to customers. Related guides: Sources API and Sources & Customers.
- status string - The status of the mandate notification. Valid statuses are
pending
orsubmitted
.
- 'type string - The type of source this mandate notification is attached to. Should be the source type identifier code for the payment method, such as
three_d_secure
.
stripe: SourceMandateNotificationAcssDebitData
Fields
- statement_descriptor string? - The statement descriptor associate with the debit.
stripe: SourceMandateNotificationBacsDebitData
Fields
- last4 string? - Last 4 digits of the account number associated with the debit.
stripe: SourceMandateNotificationSepaDebitData
Fields
- creditor_identifier string? - SEPA creditor ID.
- last4 string? - Last 4 digits of the account number associated with the debit.
- mandate_reference string? - Mandate reference associated with the debit.
stripe: SourceOrder
Fields
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- email string? - The email address of the customer placing the order.
- items SourceOrderItem[]? - List of items constituting the order.
- shipping Shipping? -
stripe: SourceOrderItem
Fields
- amount int? - The amount (price) for this order item.
- currency string? - This currency of this order item. Required when
amount
is present.
- description string? - Human-readable description for this order item.
- parent string? - The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
- quantity int? - The quantity of this order item. When type is
sku
, this is the number of instances of the SKU to be ordered.
- 'type string? - The type of this order item. Must be
sku
,tax
, orshipping
.
stripe: SourceOwner
Fields
- address Address? - Owner's address.
- email string? - Owner's email address.
- name string? - Owner's full name.
- phone string? - Owner's phone number (including extension).
- verified_address Address? - Verified owner's address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
- verified_email string? - Verified owner's email address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
- verified_name string? - Verified owner's full name. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
- verified_phone string? - Verified owner's phone number (including extension). Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
stripe: SourceReceiverFlow
Fields
- address string? - The address of the receiver source. This is the value that should be communicated to the customer to send their funds to.
- amount_charged int - The total amount that was moved to your balance. This is almost always equal to the amount charged. In rare cases when customers deposit excess funds and we are unable to refund those, those funds get moved to your balance and show up in amount_charged as well. The amount charged is expressed in the source's currency.
- amount_received int - The total amount received by the receiver source.
amount_received = amount_returned + amount_charged
should be true for consumed sources unless customers deposit excess funds. The amount received is expressed in the source's currency.
- amount_returned int - The total amount that was returned to the customer. The amount returned is expressed in the source's currency.
- refund_attributes_method string - Type of refund attribute method, one of
email
,manual
, ornone
.
- refund_attributes_status string - Type of refund attribute status, one of
missing
,requested
, oravailable
.
stripe: SourceRedirectFlow
Fields
- failure_reason string? - The failure reason for the redirect, either
user_abort
(the customer aborted or dropped out of the redirect flow),declined
(the authentication failed or the transaction was declined), orprocessing_error
(the redirect failed due to a technical error). Present only if the redirect status isfailed
.
- return_url string - The URL you provide to redirect the customer to after they authenticated their payment.
- status string - The status of the redirect, either
pending
(ready to be used by your customer to authenticate the transaction),succeeded
(succesful authentication, cannot be reused) ornot_required
(redirect should not be used) orfailed
(failed authentication, cannot be reused).
- url string - The URL provided to you to redirect a customer to as part of a
redirect
authentication flow.
stripe: SourceTransaction
Some payment methods have no required amount that a customer must send. Customers can be instructed to send any amount, and it can be made up of multiple transactions. As such, sources can have multiple associated transactions.
Fields
- ach_credit_transfer SourceTransactionAchCreditTransferData? -
- amount int - A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount your customer has pushed to the receiver.
- chf_credit_transfer SourceTransactionChfCreditTransferData? -
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- gbp_credit_transfer SourceTransactionGbpCreditTransferData? -
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- paper_check SourceTransactionPaperCheckData? -
- sepa_credit_transfer SourceTransactionSepaCreditTransferData? -
- 'source string - The ID of the source this transaction is attached to.
- status string - The status of the transaction, one of
succeeded
,pending
, orfailed
.
- 'type string - The type of source this transaction is attached to.
stripe: SourceTransactionAchCreditTransferData
Fields
- customer_data string? - Customer data associated with the transfer.
- fingerprint string? - Bank account fingerprint associated with the transfer.
- last4 string? - Last 4 digits of the account number associated with the transfer.
- routing_number string? - Routing number associated with the transfer.
stripe: SourceTransactionChfCreditTransferData
Fields
- reference string? - Reference associated with the transfer.
- sender_address_country string? - Sender's country address.
- sender_address_line1 string? - Sender's line 1 address.
- sender_iban string? - Sender's bank account IBAN.
- sender_name string? - Sender's name.
stripe: SourceTransactionGbpCreditTransferData
Fields
- fingerprint string? - Bank account fingerprint associated with the Stripe owned bank account receiving the transfer.
- funding_method string? - The credit transfer rails the sender used to push this transfer. The possible rails are: Faster Payments, BACS, CHAPS, and wire transfers. Currently only Faster Payments is supported.
- last4 string? - Last 4 digits of sender account number associated with the transfer.
- reference string? - Sender entered arbitrary information about the transfer.
- sender_account_number string? - Sender account number associated with the transfer.
- sender_name string? - Sender name associated with the transfer.
- sender_sort_code string? - Sender sort code associated with the transfer.
stripe: SourceTransactionPaperCheckData
Fields
- available_at string? - Time at which the deposited funds will be available for use. Measured in seconds since the Unix epoch.
- invoices string? - Comma-separated list of invoice IDs associated with the paper check.
stripe: SourceTransactionSepaCreditTransferData
Fields
- reference string? - Reference associated with the transfer.
- sender_iban string? - Sender's bank account IBAN.
- sender_name string? - Sender's name.
stripe: SourceTypeAchCreditTransfer
Fields
- account_number string? -
- bank_name string? -
- fingerprint string? -
- refund_account_holder_name string? -
- refund_account_holder_type string? -
- refund_routing_number string? -
- routing_number string? -
- swift_code string? -
stripe: SourceTypeAchDebit
Fields
- bank_name string? -
- country string? -
- fingerprint string? -
- last4 string? -
- routing_number string? -
- 'type string? -
stripe: SourceTypeAcssDebit
Fields
- bank_address_city string? -
- bank_address_line_1 string? -
- bank_address_line_2 string? -
- bank_address_postal_code string? -
- bank_name string? -
- category string? -
- country string? -
- fingerprint string? -
- last4 string? -
- routing_number string? -
stripe: SourceTypeAlipay
Fields
- data_string string? -
- native_url string? -
- statement_descriptor string? -
stripe: SourceTypeAuBecsDebit
Fields
- bsb_number string? -
- fingerprint string? -
- last4 string? -
stripe: SourceTypeBancontact
Fields
- bank_code string? -
- bank_name string? -
- bic string? -
- iban_last4 string? -
- preferred_language string? -
- statement_descriptor string? -
stripe: SourceTypeCard
Fields
- address_line1_check string? -
- address_zip_check string? -
- brand string? -
- country string? -
- cvc_check string? -
- dynamic_last4 string? -
- exp_month int? -
- exp_year int? -
- fingerprint string? -
- funding string? -
- last4 string? -
- name string? -
- three_d_secure string? -
- tokenization_method string? -
stripe: SourceTypeCardPresent
Fields
- application_cryptogram string? -
- application_preferred_name string? -
- authorization_code string? -
- authorization_response_code string? -
- brand string? -
- country string? -
- cvm_type string? -
- data_type string? -
- dedicated_file_name string? -
- emv_auth_data string? -
- evidence_customer_signature string? -
- evidence_transaction_certificate string? -
- exp_month int? -
- exp_year int? -
- fingerprint string? -
- funding string? -
- last4 string? -
- pos_device_id string? -
- pos_entry_mode string? -
- read_method string? -
- reader string? -
- terminal_verification_results string? -
- transaction_status_information string? -
stripe: SourceTypeEps
Fields
- reference string? -
- statement_descriptor string? -
stripe: SourceTypeGiropay
Fields
- bank_code string? -
- bank_name string? -
- bic string? -
- statement_descriptor string? -
stripe: SourceTypeIdeal
Fields
- bank string? -
- bic string? -
- iban_last4 string? -
- statement_descriptor string? -
stripe: SourceTypeKlarna
Fields
- background_image_url string? -
- client_token string? -
- first_name string? -
- last_name string? -
- locale string? -
- logo_url string? -
- page_title string? -
- pay_later_asset_urls_descriptive string? -
- pay_later_asset_urls_standard string? -
- pay_later_name string? -
- pay_later_redirect_url string? -
- pay_now_asset_urls_descriptive string? -
- pay_now_asset_urls_standard string? -
- pay_now_name string? -
- pay_now_redirect_url string? -
- pay_over_time_asset_urls_descriptive string? -
- pay_over_time_asset_urls_standard string? -
- pay_over_time_name string? -
- pay_over_time_redirect_url string? -
- payment_method_categories string? -
- purchase_country string? -
- purchase_type string? -
- redirect_url string? -
- shipping_delay int? -
- shipping_first_name string? -
- shipping_last_name string? -
stripe: SourceTypeMultibanco
Fields
- entity string? -
- reference string? -
- refund_account_holder_address_city string? -
- refund_account_holder_address_country string? -
- refund_account_holder_address_line1 string? -
- refund_account_holder_address_line2 string? -
- refund_account_holder_address_postal_code string? -
- refund_account_holder_address_state string? -
- refund_account_holder_name string? -
- refund_iban string? -
stripe: SourceTypeP24
Fields
- reference string? -
stripe: SourceTypeSepaDebit
Fields
- bank_code string? -
- branch_code string? -
- country string? -
- fingerprint string? -
- last4 string? -
- mandate_reference string? -
- mandate_url string? -
stripe: SourceTypeSofort
Fields
- bank_code string? -
- bank_name string? -
- bic string? -
- country string? -
- iban_last4 string? -
- preferred_language string? -
- statement_descriptor string? -
stripe: SourceTypeThreeDSecure
Fields
- address_line1_check string? -
- address_zip_check string? -
- authenticated boolean? -
- brand string? -
- card string? -
- country string? -
- customer string? -
- cvc_check string? -
- dynamic_last4 string? -
- exp_month int? -
- exp_year int? -
- fingerprint string? -
- funding string? -
- last4 string? -
- name string? -
- three_d_secure string? -
- tokenization_method string? -
stripe: SourceTypeWechat
Fields
- prepay_id string? -
- qr_code_url string? -
- statement_descriptor string? -
stripe: StatusTransitions
Fields
- canceled int? - The time that the order was canceled.
- fulfiled int? - The time that the order was fulfilled.
- paid int? - The time that the order was paid.
- returned int? - The time that the order was returned.
stripe: Subscription
Subscriptions allow you to charge a customer on a recurring basis.
Related guide: Creating Subscriptions.
Fields
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.
- automatic_tax SubscriptionAutomaticTax -
- billing_cycle_anchor int - Determines the date of the first full invoice, and, for plans with
month
oryear
intervals, the day of the month for subsequent invoices.
- billing_thresholds SubscriptionBillingThresholds? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
- cancel_at int? - A date in the future at which the subscription will automatically get canceled
- cancel_at_period_end boolean - If the subscription has been canceled with the
at_period_end
flag set totrue
,cancel_at_period_end
on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.
- canceled_at int? - If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with
cancel_at_period_end
,canceled_at
will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.
- collection_method string - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- current_period_end int - End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
- current_period_start int - Start of the current period that the subscription has been invoiced for.
- customer string|Customer|DeletedCustomer? - ID of the customer who owns the subscription.
- days_until_due int? - Number of days a customer has to pay invoices generated by this subscription. This value will be
null
for subscriptions wherecollection_method=charge_automatically
.
- default_payment_method string|PaymentMethod?? - ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over
default_source
. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_source string|AlipayAccount|BankAccount|BitcoinReceiver|Card|Source?? - ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If
default_payment_method
is also set,default_payment_method
will take precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_tax_rates TaxRate[]? - The tax rates that will apply to any subscription item that does not have
tax_rates
set. Invoices created will have theirdefault_tax_rates
populated from the subscription.
- discount Discount? - Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.
- ended_at int? - If the subscription has ended, the date the subscription ended.
- id string - Unique identifier for the object.
- items SubscriptionItemList - List of subscription items, each with an attached price.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- next_pending_invoice_item_invoice int? - Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at
pending_invoice_item_interval
.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- pause_collection SubscriptionsResourcePauseCollection? - If specified, payment collection for this subscription will be paused.
- payment_settings SubscriptionsResourcePaymentSettings? - Payment settings passed on to invoices created by the subscription.
- pending_invoice_item_interval SubscriptionPendingInvoiceItemInterval? - Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
- pending_setup_intent string|SetupIntent?? - You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide.
- pending_update SubscriptionsResourcePendingUpdate? - If specified, pending updates that will be applied to the subscription once the
latest_invoice
has been paid.
- schedule string|SubscriptionSchedule?? - The schedule attached to the subscription
- start_date int - Date when the subscription was first created. The date might differ from the
created
date due to backdating.
- status string - Possible values are
incomplete
,incomplete_expired
,trialing
,active
,past_due
,canceled
, orunpaid
. Forcollection_method=charge_automatically
a subscription moves intoincomplete
if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into anactive
state. If the first invoice is not paid within 23 hours, the subscription transitions toincomplete_expired
. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period istrialing
and moves toactive
when the trial period is over. If subscriptioncollection_method=charge_automatically
it becomespast_due
when payment to renew it fails andcanceled
orunpaid
(depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts. If subscriptioncollection_method=send_invoice
it becomespast_due
when its invoice is not paid by the due date, andcanceled
orunpaid
if it is still not paid by an additional deadline after that. Note that when a subscription has a status ofunpaid
, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
- transfer_data SubscriptionTransferData? - The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
- trial_end int? - If the subscription has a trial, the end of that trial.
- trial_start int? - If the subscription has a trial, the beginning of that trial.
stripe: SubscriptionAutomaticTax
Fields
- enabled boolean - Whether Stripe automatically computes tax on this subscription.
stripe: SubscriptionBillingThresholds
Fields
- amount_gte int? - Monetary threshold that triggers the subscription to create an invoice
- reset_billing_cycle_anchor boolean? - Indicates if the
billing_cycle_anchor
should be reset when a threshold is reached. If true,billing_cycle_anchor
will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not betrue
if the subscription contains items with plans that haveaggregate_usage=last_ever
.
stripe: SubscriptionItem
Subscription items allow you to create customer subscriptions with more than one plan, making it easy to represent complex billing relationships.
Fields
- billing_thresholds SubscriptionItemBillingThresholds? - Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- price Price - Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. Related guides: Set up a subscription, create an invoice, and more about products and prices.
- subscription string - The
subscription
thissubscription_item
belongs to.
- tax_rates TaxRate[]? - The tax rates which apply to this
subscription_item
. When set, thedefault_tax_rates
on the subscription do not apply to thissubscription_item
.
stripe: SubscriptionItemBillingThresholds
Fields
- usage_gte int? - Usage threshold that triggers the subscription to create an invoice
stripe: SubscriptionItemCreateParams
Fields
- billing_thresholds ItemBillingThresholdsParam|string?? -
- metadata record {}? -
- price string? -
- price_data RecurringPriceData1? -
- quantity int? -
- tax_rates TaxRateArray|string?? -
stripe: SubscriptionItemList
List of subscription items, each with an attached price.
Fields
- data SubscriptionItem[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: SubscriptionItemsItemBody
Fields
- billing_thresholds BillingThresholds|string?? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
- expand SubscriptionitemsitembodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- metadata AdditionalProperties|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- off_session boolean? - Indicates if a customer is on or off-session while an invoice payment is attempted.
- payment_behavior string? - Use
allow_incomplete
to transition the subscription tostatus=past_due
if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more. This is the default behavior. Usedefault_incomplete
to transition the subscription tostatus=past_due
when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, SCA regulation, or collecting a mandate for a bank debit payment method. Usepending_if_incomplete
to update the subscription using pending updates. When you usepending_if_incomplete
you can only pass the parameters supported by pending updates. Useerror_if_incomplete
if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the changelog to learn more.
- price string? - The ID of the price object. When changing a subscription item's price,
quantity
is set to 1 unless aquantity
parameter is provided.
- price_data RecurringPriceData? - Data used to generate a new Price object inline.
- proration_behavior string? - Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting
billing_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes. Valid values arecreate_prorations
,none
, oralways_invoice
. Passingcreate_prorations
will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, passalways_invoice
. Prorations can be disabled by passingnone
.
- proration_date int? - If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.
- quantity int? - The quantity you'd like to apply to the subscription item you're creating.
- tax_rates TaxRateArray|string?? - A list of Tax Rate ids. These Tax Rates will override the
default_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
stripe: SubscriptionItemUpdateParams
Fields
- clear_usage boolean? -
- deleted boolean? -
- id string? -
- metadata record {}|string?? -
- price string? -
- price_data RecurringPriceData1? -
- quantity int? -
- tax_rates TaxratesItemsString[]|string?? -
stripe: SubscriptionItemUsageRecordsBody
Fields
- action string? - Valid values are
increment
(default) orset
. When usingincrement
the specifiedquantity
will be added to the usage at the specified timestamp. Theset
action will overwrite the usage quantity at that timestamp. If the subscription has billing thresholds,increment
is the only allowed value.
- expand SubscriptionitemusagerecordsbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- quantity int - The usage quantity for the specified timestamp.
- timestamp int - The timestamp for the usage event. This timestamp must be within the current billing period of the subscription of the provided
subscription_item
.
stripe: SubscriptionList
The customer's current subscriptions, if any.
Fields
- data Subscription[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: SubscriptionPendingInvoiceItemInterval
Fields
- interval string - Specifies invoicing frequency. Either
day
,week
,month
oryear
.
- interval_count int - The number of intervals between invoices. For example,
interval=month
andinterval_count=3
bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
stripe: SubscriptionSchedule
A subscription schedule allows you to create and manage the lifecycle of a subscription by predefining expected changes.
Related guide: Subscription Schedules.
Fields
- canceled_at int? - Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
- completed_at int? - Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- current_phase SubscriptionScheduleCurrentPhase? - Object representing the start and end dates for the current phase of the subscription schedule, if it is
active
.
- customer string|Customer|DeletedCustomer? - ID of the customer who owns the subscription schedule.
- default_settings SubscriptionSchedulesResourceDefaultSettings - Object representing the subscription schedule’s default settings
- end_behavior string - Behavior of the subscription schedule and underlying subscription when it ends. Possible values are
release
andcancel
.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- phases SubscriptionSchedulePhaseConfiguration[] - Configuration for the subscription schedule's phases.
- released_at int? - Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
- released_subscription string? - ID of the subscription once managed by the subscription schedule (if it is released).
- status string - The present status of the subscription schedule. Possible values are
not_started
,active
,completed
,released
, andcanceled
. You can read more about the different states in our behavior guide.
- subscription string|Subscription?? - ID of the subscription managed by the subscription schedule.
stripe: SubscriptionScheduleAddInvoiceItem
An Add Invoice Item describes the prices and quantities that will be added as pending invoice items when entering a phase.
Fields
- price string|Price|DeletedPrice? - ID of the price used to generate the invoice item.
- quantity int? - The quantity of the invoice item.
- tax_rates TaxRate[]? - The tax rates which apply to the item. When set, the
default_tax_rates
do not apply to this item.
stripe: SubscriptionScheduleConfigurationItem
A phase item describes the price and quantity of a phase.
Fields
- billing_thresholds SubscriptionItemBillingThresholds? - Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
- price string|Price|DeletedPrice? - ID of the price to which the customer should be subscribed.
- quantity int? - Quantity of the plan to which the customer should be subscribed.
- tax_rates TaxRate[]? - The tax rates which apply to this
phase_item
. When set, thedefault_tax_rates
on the phase do not apply to thisphase_item
.
stripe: SubscriptionScheduleCurrentPhase
Fields
- end_date int - The end of this phase of the subscription schedule.
- start_date int - The start of this phase of the subscription schedule.
stripe: SubscriptionSchedulePhaseConfiguration
A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period.
Fields
- add_invoice_items SubscriptionScheduleAddInvoiceItem[] - A list of prices and quantities that will generate invoice items appended to the first invoice for this phase.
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
- automatic_tax SchedulesPhaseAutomaticTax? - Automatic tax configuration details
- billing_cycle_anchor string? - Possible values are
phase_start
orautomatic
. Ifphase_start
then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. Ifautomatic
then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.
- billing_thresholds SubscriptionBillingThresholds? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
- collection_method string? - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.
- coupon string|Coupon|DeletedCoupon?? - ID of the coupon to use during this phase of the subscription schedule.
- default_payment_method string|PaymentMethod?? - ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
- default_tax_rates TaxRate[]? - The default tax rates to apply to the subscription during this phase of the subscription schedule.
- end_date int - The end of this phase of the subscription schedule.
- invoice_settings InvoiceSettingSubscriptionScheduleSetting? - The invoice settings applicable during this phase.
- items SubscriptionScheduleConfigurationItem[] - Subscription items to configure the subscription to during this phase of the subscription schedule.
- proration_behavior string - If the subscription schedule will prorate when transitioning to this phase. Possible values are
create_prorations
andnone
.
- start_date int - The start of this phase of the subscription schedule.
- transfer_data SubscriptionTransferData? - The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
- trial_end int? - When the trial ends within the phase.
stripe: SubscriptionSchedulesParam
All invoices will be billed using the specified settings
Fields
- days_until_due int? -
stripe: SubscriptionSchedulesParam1
Fields
- days_until_due int? -
stripe: SubscriptionSchedulesResourceDefaultSettings
Object representing the subscription schedule’s default settings
Fields
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account during this phase of the schedule.
- automatic_tax SubscriptionSchedulesResourceDefaultSettingsAutomaticTax? -
- billing_cycle_anchor string - Possible values are
phase_start
orautomatic
. Ifphase_start
then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. Ifautomatic
then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.
- billing_thresholds SubscriptionBillingThresholds? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
- collection_method string? - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.
- default_payment_method string|PaymentMethod?? - ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
- invoice_settings InvoiceSettingSubscriptionScheduleSetting? - The subscription schedule's default invoice settings.
- transfer_data SubscriptionTransferData? - The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
stripe: SubscriptionSchedulesResourceDefaultSettingsAutomaticTax
Fields
- enabled boolean - Whether Stripe automatically computes tax on invoices created during this phase.
stripe: SubscriptionSchedulesScheduleBody
Fields
- default_settings DefaultSettingsParams1? - Object representing the subscription schedule's default settings.
- end_behavior string? - Configures how the subscription schedule behaves when it ends. Possible values are
release
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will end the subscription schedule and cancel the underlying subscription.
- expand SubscriptionschedulesschedulebodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- phases PhaseConfigurationParams1[]? - List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the
end_date
of one phase will always equal thestart_date
of the next phase. Note that past phases can be omitted.
- proration_behavior string? - If the update changes the current phase, indicates if the changes should be prorated. Possible values are
create_prorations
ornone
, and the default value iscreate_prorations
.
stripe: SubscriptionsResourcePauseCollection
The Pause Collection settings determine how we will pause collection for this subscription and for how long the subscription should be paused.
Fields
- behavior string - The payment collection behavior for this subscription while paused. One of
keep_as_draft
,mark_uncollectible
, orvoid
.
- resumes_at int? - The time after which the subscription will resume collecting payments.
stripe: SubscriptionsResourcePaymentMethodOptions
Fields
- bancontact InvoicePaymentMethodOptionsBancontact? - This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
- card InvoicePaymentMethodOptionsCard? - This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
stripe: SubscriptionsResourcePaymentSettings
Fields
- payment_method_options SubscriptionsResourcePaymentMethodOptions? - Payment-method-specific configuration to provide to invoices created by the subscription.
- payment_method_types string[]? - The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
stripe: SubscriptionsResourcePendingUpdate
Pending Updates store the changes pending from a previous update that will be applied to the Subscription upon successful payment.
Fields
- billing_cycle_anchor int? - If the update is applied, determines the date of the first full invoice, and, for plans with
month
oryear
intervals, the day of the month for subsequent invoices.
- expires_at int - The point after which the changes reflected by this update will be discarded and no longer applied.
- subscription_items SubscriptionItem[]? - List of subscription items, each with an attached plan, that will be set if the update is applied.
- trial_end int? - Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
- trial_from_plan boolean? - Indicates if a plan's
trial_period_days
should be applied to the subscription. Settingtrial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withtrial_end
is not allowed.
stripe: SubscriptionsSubscriptionExposedIdBody
Fields
- add_invoice_items AddInvoiceItemEntry1[]? - A list of prices and quantities that will generate invoice items appended to the first invoice for this subscription. You may pass up to 20 items.
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees documentation.
- automatic_tax AutomaticTaxConfig1? - Automatic tax settings for this subscription.
- billing_cycle_anchor string? - Either
now
orunchanged
. Setting the value tonow
resets the subscription's billing cycle anchor to the current time. For more information, see the billing cycle documentation.
- cancel_at_period_end boolean? - Boolean indicating whether this subscription should cancel at the end of the current period.
- collection_method string? - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults tocharge_automatically
.
- coupon string? - The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
- days_until_due int? - Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where
collection_method
is set tosend_invoice
.
- default_payment_method string? - ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over
default_source
. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_source string? - ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If
default_payment_method
is also set,default_payment_method
will take precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_tax_rates DefaulttaxratesItemsString[]|string?? - The tax rates that will apply to any subscription item that does not have
tax_rates
set. Invoices created will have theirdefault_tax_rates
populated from the subscription. Pass an empty string to remove previously-defined tax rates.
- expand SubscriptionssubscriptionexposedidbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- items SubscriptionItemUpdateParams[]? - A list of up to 20 subscription items, each with an attached price.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- off_session boolean? - Indicates if a customer is on or off-session while an invoice payment is attempted.
- payment_behavior string? - Use
allow_incomplete
to transition the subscription tostatus=past_due
if a payment is required but cannot be paid. This allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more. This is the default behavior. Usedefault_incomplete
to transition the subscription tostatus=past_due
when payment is required and await explicit confirmation of the invoice's payment intent. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, SCA regulation, or collecting a mandate for a bank debit payment method. Usepending_if_incomplete
to update the subscription using pending updates. When you usepending_if_incomplete
you can only pass the parameters supported by pending updates. Useerror_if_incomplete
if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the changelog to learn more.
- payment_settings PaymentSettings2? - Payment settings to pass to invoices created by the subscription.
- pending_invoice_item_interval record { interval string?, interval_count int? }|string?? - Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
- promotion_code string? - The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription.
- proration_behavior string? - Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting
billing_cycle_anchor=now
, or starting a trial), or if an item'squantity
changes. Valid values arecreate_prorations
,none
, oralways_invoice
. Passingcreate_prorations
will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, passalways_invoice
. Prorations can be disabled by passingnone
.
- proration_date int? - If set, the proration will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same proration that was previewed with upcoming invoice endpoint. It can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
- transfer_data record { amount_percent decimal?, destination string? }|string?? - If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges. This will be unset if you POST an empty value.
- trial_end string|int?? - Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value
now
can be provided to end the customer's trial immediately. Can be at most two years frombilling_cycle_anchor
.
- trial_from_plan boolean? - Indicates if a plan's
trial_period_days
should be applied to the subscription. Settingtrial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withtrial_end
is not allowed.
stripe: SubscriptionTransferData
Fields
- amount_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
stripe: TaxCode
Tax codes classify goods and services for tax purposes.
Fields
- description string - A detailed description of which types of products the tax code represents.
- id string - Unique identifier for the object.
- name string - A short name for the tax code.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: TaxDeductedAtSource
Fields
- id string - Unique identifier for the object.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- period_end int - The end of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
- period_start int - The start of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
- tax_deduction_account_number string - The TAN that was supplied to Stripe when TDS was assessed
stripe: TaxId
You can add one or multiple tax IDs to a customer. A customer's tax IDs are displayed on invoices and credit notes issued for the customer.
Related guide: Customer Tax Identification Numbers.
Fields
- country string? - Two-letter ISO code representing the country of the tax ID.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'type string - Type of the tax ID, one of
ae_trn
,au_abn
,au_arn
,br_cnpj
,br_cpf
,ca_bn
,ca_gst_hst
,ca_pst_bc
,ca_pst_mb
,ca_pst_sk
,ca_qst
,ch_vat
,cl_tin
,es_cif
,eu_vat
,gb_vat
,hk_br
,id_npwp
,il_vat
,in_gst
,jp_cn
,jp_rn
,kr_brn
,li_uid
,mx_rfc
,my_frp
,my_itn
,my_sst
,no_vat
,nz_gst
,ru_inn
,ru_kpp
,sa_vat
,sg_gst
,sg_uen
,th_vat
,tw_vat
,us_ein
, orza_vat
. Note that some legacy tax IDs have typeunknown
- value string - Value of the tax ID.
- verification TaxIdVerification? - Tax ID verification information.
stripe: TaxIDsList
The customer's tax IDs.
Fields
- data TaxId[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: TaxIdVerification
Fields
- status string - Verification status, one of
pending
,verified
,unverified
, orunavailable
.
- verified_address string? - Verified address.
- verified_name string? - Verified name.
stripe: TaxParam
Tax details about the customer.
Fields
stripe: TaxParam1
Fields
stripe: TaxRate
Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.
Related guide: Tax Rates.
Fields
- active boolean - Defaults to
true
. When set tofalse
, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
- country string? - Two-letter country code (ISO 3166-1 alpha-2).
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- description string? - An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
- display_name string - The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
- id string - Unique identifier for the object.
- inclusive boolean - This specifies if the tax rate is inclusive or exclusive.
- jurisdiction string? - The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- percentage decimal - This represents the tax rate percent out of 100.
- state string? - ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States.
- tax_type string? - The high-level tax type, such as
vat
orsales_tax
.
stripe: TerminalConnectionToken
A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
Related guide: Fleet Management.
Fields
- location string? - The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- secret string - Your application should pass this token to the Stripe Terminal SDK.
stripe: TerminalLocation
A Location represents a grouping of readers.
Related guide: Fleet Management.
Fields
- address Address -
- display_name string - The display name of the location.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: TerminalReader
A Reader represents a physical device for accepting payment details.
Related guide: Connecting to a Reader.
Fields
- device_sw_version string? - The current software version of the reader.
- device_type string - Type of reader, one of
bbpos_chipper2x
orverifone_P400
.
- id string - Unique identifier for the object.
- ip_address string? - The local IP address of the reader.
- label string - Custom label given to the reader for easier identification.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- location string|TerminalLocation?? - The location identifier of the reader.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- serial_number string - Serial number of the reader.
- status string? - The networking status of the reader.
stripe: ThreeDSecure
Cardholder authentication via 3D Secure is initiated by creating a 3D Secure
object. Once the object has been created, you can use it to authenticate the
cardholder and create a charge.
Fields
- amount int - Amount of the charge that you will create when authentication completes.
- authenticated boolean - True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.
- card Card - You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later. Related guide: Card Payments with Sources.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- redirect_url string? - If present, this is the URL that you should send the cardholder to for authentication. If you are going to use Stripe.js to display the authentication page in an iframe, you should use the value "_callback".
- status string - Possible values are
redirect_pending
,succeeded
, orfailed
. When the cardholder can be authenticated, the object starts with statusredirect_pending
. When liability will be shifted to the cardholder's bank (either because the cardholder was successfully authenticated, or because the bank has not implemented 3D Secure, the object wlil be in statussucceeded
.failed
indicates that authentication was attempted unsuccessfully.
stripe: ThreeDSecureDetails
Fields
- authentication_flow string? - For authenticated transactions: how the customer was authenticated by the issuing bank.
- result string? - Indicates the outcome of 3D Secure authentication.
- result_reason string? - Additional information about why 3D Secure succeeded or failed based
on the
result
.
- 'version string? - The version of 3D Secure that was used.
stripe: ThreeDSecureUsage
Fields
- supported boolean - Whether 3D Secure is supported on this card.
stripe: Tier
Fields
- flat_amount int? -
- flat_amount_decimal string? -
- unit_amount int? -
- unit_amount_decimal string? -
stripe: Token
Tokenization is the process Stripe uses to collect sensitive card or bank account details, or personally identifiable information (PII), directly from your customers in a secure manner. A token representing this information is returned to your server to use. You should use our recommended payments integrations to perform this process client-side. This ensures that no sensitive card data touches your server, and allows your integration to operate in a PCI-compliant way.
If you cannot use client-side tokenization, you can also create tokens using the API with either your publishable or secret API key. Keep in mind that if your integration uses this method, you are responsible for any PCI compliance that may be required, and you must keep your secret API key safe. Unlike with client-side tokenization, your customer's information is not sent directly to Stripe, so we cannot determine how it is handled or stored.
Tokens cannot be stored or used more than once. To store card or bank account information for later use, you can create Customer objects or Custom accounts. Note that Radar, our integrated solution for automatic fraud protection, performs best with integrations that use client-side tokenization.
Related guide: Accept a payment
Fields
- bank_account BankAccount? - These bank accounts are payment methods on
Customer
objects. On the other hand External Accounts are transfer destinations onAccount
objects for Custom accounts. They can be bank accounts or debit cards as well, and are documented in the links above. Related guide: Bank Debits and Transfers.
- card Card? - You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later. Related guide: Card Payments with Sources.
- client_ip string? - IP address of the client that generated the token.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'type string - Type of the token:
account
,bank_account
,card
, orpii
.
- used boolean - Whether this token has already been used (tokens can be used only once).
stripe: TokenParamas
Fields
- token string -
stripe: Topup
To top up your Stripe balance, you create a top-up object. You can retrieve individual top-ups, as well as list all top-ups. Top-ups are identified by a unique, random ID.
Related guide: Topping Up your Platform Account.
Fields
- amount int - Amount transferred.
- balance_transaction string|BalanceTransaction?? - ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- expected_availability_date int? - Date the funds are expected to arrive in your Stripe account for payouts. This factors in delays like weekends or bank holidays. May not be specified depending on status of top-up.
- failure_code string? - Error code explaining reason for top-up failure if available (see the errors section for a list of codes).
- failure_message string? - Message to user further explaining reason for top-up failure if available.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- 'source Source -
Source
objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like aCard
object: once chargeable, they can be charged, or can be attached to customers. Related guides: Sources API and Sources & Customers.
- statement_descriptor string? - Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
- status string - The status of the top-up is either
canceled
,failed
,pending
,reversed
, orsucceeded
.
- transfer_group string? - A string that identifies this top-up as part of a group.
stripe: Transfer
A Transfer
object is created when you move funds between Stripe accounts as
part of Connect.
Before April 6, 2017, transfers also represented movement of funds from a Stripe account to a card or bank account. This behavior has since been split out into a Payout object, with corresponding payout endpoints. For more information, read about the transfer/payout split.
Related guide: Creating Separate Charges and Transfers.
Fields
- amount int - Amount in %s to be transferred.
- amount_reversed int - Amount in %s reversed (can be less than the amount attribute on the transfer if a partial reversal was issued).
- balance_transaction string|BalanceTransaction?? - Balance transaction that describes the impact of this transfer on your account balance.
- created int - Time that this record of the transfer was first created.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- reversals TransferReversalList - A list of reversals that have been applied to the transfer.
- reversed boolean - Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false.
- source_type string? - The source balance this transfer came from. One of
card
,fpx
, orbank_account
.
- transfer_group string? - A string that identifies this transaction as part of a group. See the Connect documentation for details.
stripe: TransferData
Fields
- amount int? - Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
stripe: TransferDataSpecs
Fields
- amount_percent decimal? -
- destination string -
stripe: TransferDataSpecs1
If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
Fields
- amount int? -
- destination string -
stripe: TransferDataSpecs2
If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
Fields
- amount_percent decimal? -
- destination string -
stripe: TransferDataSpecs3
Fields
- amount_percent decimal? -
- destination string -
stripe: TransferReversal
Stripe Connect platforms can reverse transfers made to a connected account, either entirely or partially, and can also specify whether to refund any related application fees. Transfer reversals add to the platform's balance and subtract from the destination account's balance.
Reversing a transfer that was made for a destination charge is allowed only up to the amount of the charge. It is possible to reverse a transfer_group transfer only if the destination account has enough balance to cover the reversal.
Related guide: Reversing Transfers.
Fields
- amount int - Amount, in %s.
- balance_transaction string|BalanceTransaction?? - Balance transaction that describes the impact on your account balance.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- id string - Unique identifier for the object.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
stripe: TransferReversalList
A list of reversals that have been applied to the transfer.
Fields
- data TransferReversal[] - Details about each object.
- has_more boolean - True if this list has another page of items after this one that can be fetched.
- 'object string - String representing the object's type. Objects of the same type share the same value. Always has the value
list
.
- url string - The URL where this list can be accessed.
stripe: TransferSchedule
Fields
- delay_days int - The number of days charges for the account will be held before being paid out.
- interval string - How frequently funds will be paid out. One of
manual
(payouts only created via API call),daily
,weekly
, ormonthly
.
- monthly_anchor int? - The day of the month funds will be paid out. Only shown if
interval
is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
- weekly_anchor string? - The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if
interval
is weekly.
stripe: TransformQuantity
Fields
- divide_by int - Divide usage by this number.
- round string - After division, either round the result
up
ordown
.
stripe: TransformUsage
Fields
- divide_by int - Divide usage by this number.
- round string - After division, either round the result
up
ordown
.
stripe: TransformUsageParam
Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with tiers
.
Fields
- divide_by int -
- round string -
stripe: UpdateApiParam
If this is a card
PaymentMethod, this hash contains the user's card details.
Fields
- exp_month int? -
- exp_year int? -
stripe: UsageRecord
Usage records allow you to report customer usage and metrics to Stripe for metered billing of subscription prices.
Related guide: Metered Billing.
Fields
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- quantity int - The usage quantity for the specified date.
- subscription_item string - The ID of the subscription item this usage record contains data for.
- timestamp int - The timestamp when this usage occurred.
stripe: UsageRecordSummary
Fields
- id string - Unique identifier for the object.
- invoice string? - The invoice in which this usage period has been billed for.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- period Period -
- subscription_item string - The ID of the subscription item this summary is describing.
- total_usage int - The total usage within this usage period.
stripe: V1CustomersBody
Fields
- address CustomerAdresss|string?? - The customer's address.
- balance int? - An integer amount in %s that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
- coupon string? -
- description string? - An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
- email string? - Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters.
- expand V1customersbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- invoice_prefix string? - The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
- invoice_settings CustomerParam? - Default invoice settings for this customer.
- metadata AdditionalProperties|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- name string? - The customer's full name or business name.
- next_invoice_sequence int? - The sequence to be used on the customer's next invoice. Defaults to 1.
- payment_method string? -
- phone string? - The customer's phone number.
- preferred_locales V1customersbodyPreferredlocalesItemsString[]? - Customer's preferred languages, ordered by preference.
- promotion_code string? - The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
- shipping CustomerAddressWithName|string?? - The customer's shipping information. Appears on invoices emailed to this customer.
- 'source string? -
- tax TaxParam? - Tax details about the customer.
- tax_exempt string? - The customer's tax exemption. One of
none
,exempt
, orreverse
.
- tax_id_data DataParams[]? - The customer's tax IDs.
stripe: V1InvoicesBody
Fields
- account_tax_ids AccounttaxidsItemsString[]|string?? - The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
- application_fee_amount int? - A fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation.
- auto_advance boolean? - Controls whether Stripe will perform automatic collection of the invoice. When
false
, the invoice's state will not automatically advance without an explicit action.
- automatic_tax AutomaticTaxParam? - Settings for automatic tax lookup for this invoice.
- collection_method string? - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults tocharge_automatically
.
- custom_fields InvoiceSettingsCustomFields|string?? - A list of up to 4 custom fields to be displayed on the invoice.
- customer string - The ID of the customer who will be billed.
- days_until_due int? - The number of days from when the invoice is created until it is due. Valid only for invoices where
collection_method=send_invoice
.
- default_payment_method string? - ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
- default_source string? - ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
- default_tax_rates V1invoicesbodyDefaulttaxratesItemsString[]? - The tax rates that will apply to any line item that does not have
tax_rates
set.
- description string? - An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
- discounts DiscountsDataParam|string?? - The coupons to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts.
- due_date int? - The date on which payment for this invoice is due. Valid only for invoices where
collection_method=send_invoice
.
- expand V1invoicesbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- footer string? - Footer to be displayed on the invoice.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- on_behalf_of string? - The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
- payment_settings PaymentSettings? - Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
- statement_descriptor string? - Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default
statement_descriptor
will be set to the first subscription item's product'sstatement_descriptor
.
- subscription string? - The ID of the subscription to invoice, if any. If not set, the created invoice will include all pending invoice items for the customer. If set, the created invoice will only include pending invoice items for that subscription and pending invoice items not associated with any subscription. The subscription's billing cycle and regular subscription events won't be affected.
- transfer_data TransferDataSpecs1? - If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
stripe: V1PaymentMethodsBody
Fields
- acss_debit PaymentMethodParam? - If this is an
acss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method.
- afterpay_clearpay record {}? - If this is an
AfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
- alipay record {}? - If this is an
Alipay
PaymentMethod, this hash contains details about the Alipay payment method.
- au_becs_debit Param? - If this is an
au_becs_debit
PaymentMethod, this hash contains details about the bank account.
- bacs_debit Param1? - If this is a
bacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
- bancontact record {}? - If this is a
bancontact
PaymentMethod, this hash contains details about the Bancontact payment method.
- billing_details BillingDetailsInnerParams? - Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
- boleto Param2? - If this is a
boleto
PaymentMethod, this hash contains details about the Boleto payment method.
- card CardDetailsParams|TokenParamas?? - If this is a
card
PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with formatcard: {token: "tok_visa"}
. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly.
- customer string? - The
Customer
to whom the original PaymentMethod is attached.
- eps Param3? - If this is an
eps
PaymentMethod, this hash contains details about the EPS payment method.
- expand V1paymentmethodsbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- fpx Param4? - If this is an
fpx
PaymentMethod, this hash contains details about the FPX payment method.
- giropay record {}? - If this is a
giropay
PaymentMethod, this hash contains details about the Giropay payment method.
- grabpay record {}? - If this is a
grabpay
PaymentMethod, this hash contains details about the GrabPay payment method.
- ideal Param5? - If this is an
ideal
PaymentMethod, this hash contains details about the iDEAL payment method.
- interac_present record {}? - If this is an
interac_present
PaymentMethod, this hash contains details about the Interac Present payment method.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- oxxo record {}? - If this is an
oxxo
PaymentMethod, this hash contains details about the OXXO payment method.
- p24 Param6? - If this is a
p24
PaymentMethod, this hash contains details about the P24 payment method.
- payment_method string? - The PaymentMethod to share.
- sepa_debit Param7? - If this is a
sepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account.
- sofort Param8? - If this is a
sofort
PaymentMethod, this hash contains details about the SOFORT payment method.
- 'type string? - The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
- wechat_pay record {}? - If this is an
wechat_pay
PaymentMethod, this hash contains details about the wechat_pay payment method.
stripe: V1PricesBody
Fields
- active boolean? - Whether the price can be used for new purchases. Defaults to
true
.
- billing_scheme string? - Describes how to compute the price per period. Either
per_unit
ortiered
.per_unit
indicates that the fixed amount (specified inunit_amount
orunit_amount_decimal
) will be charged per unit inquantity
(for prices withusage_type=licensed
), or per unit of total usage (for prices withusage_type=metered
).tiered
indicates that the unit pricing will be computed using a tiering strategy as defined using thetiers
andtiers_mode
attributes.
- currency string - Three-letter ISO currency code, in lowercase. Must be a supported currency.
- expand V1pricesbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- lookup_key string? - A lookup key used to retrieve prices dynamically from a static string.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- nickname string? - A brief description of the price, hidden from customers.
- product string? - The ID of the product that this price will belong to.
- product_data InlineProductParams? - These fields can be used to create a new product that this price will belong to.
- recurring Recurring1? - The recurring components of a price such as
interval
andusage_type
.
- tax_behavior string? - Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of
inclusive
,exclusive
, orunspecified
. Once specified as eitherinclusive
orexclusive
, it cannot be changed.
- tiers Tier[]? - Each element represents a pricing tier. This parameter requires
billing_scheme
to be set totiered
. See also the documentation forbilling_scheme
.
- tiers_mode string? - Defines if the tiering price should be
graduated
orvolume
based. Involume
-based tiering, the maximum quantity within a period determines the per unit price, ingraduated
tiering pricing can successively change as the quantity grows.
- transfer_lookup_key boolean? - If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.
- transform_quantity TransformUsageParam? - Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with
tiers
.
- unit_amount int? - A positive integer in %s (or 0 for a free price) representing how much to charge.
- unit_amount_decimal string? - Same as
unit_amount
, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set.
stripe: V1ProductsBody
Fields
- active boolean? - Whether the product is currently available for purchase. Defaults to
true
.
- description string? - The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
- expand V1productsbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- id string? - An identifier will be randomly generated by Stripe. You can optionally override this ID, but the ID must be unique across all products in your Stripe account.
- images string[]? - A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
- metadata record {}? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- name string - The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
- package_dimensions PackageDimensionsSpecs? - The dimensions of this product for shipping purposes.
- shippable boolean? - Whether this product is shipped (i.e., physical goods).
- statement_descriptor string? - An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.
This may be up to 22 characters. The statement description may not include
<
,>
,\
,"
,'
characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. MISSING[`]It must contain at least one letter.
- unit_label string? - A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions.
- url string? - A URL of a publicly-accessible webpage for this product.
stripe: V1SubscriptionsBody
Fields
- add_invoice_items AddInvoiceItemEntry[]? - A list of prices and quantities that will generate invoice items appended to the first invoice for this subscription. You may pass up to 20 items.
- application_fee_percent decimal? - A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees documentation.
- automatic_tax AutomaticTaxConfig? - Automatic tax settings for this subscription.
- backdate_start_date int? - For new subscriptions, a past timestamp to backdate the subscription's start date to. If set, the first invoice will contain a proration for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
- billing_cycle_anchor int? - A future timestamp to anchor the subscription's billing cycle. This is used to determine the date of the first full invoice, and, for plans with
month
oryear
intervals, the day of the month for subsequent invoices.
- billing_thresholds BillingThresholdParams|string?? - Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
- cancel_at int? - A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using
proration_behavior
. If set during a future period, this will always cause a proration for that period.
- cancel_at_period_end boolean? - Boolean indicating whether this subscription should cancel at the end of the current period.
- collection_method string? - Either
charge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions. Defaults tocharge_automatically
.
- coupon string? - The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription.
- customer string - The identifier of the customer to subscribe.
- days_until_due int? - Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where
collection_method
is set tosend_invoice
.
- default_payment_method string? - ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over
default_source
. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_source string? - ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If
default_payment_method
is also set,default_payment_method
will take precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
- default_tax_rates TaxRateArray|string?? - The tax rates that will apply to any subscription item that does not have
tax_rates
set. Invoices created will have theirdefault_tax_rates
populated from the subscription.
- expand V1subscriptionsbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- items SubscriptionItemCreateParams[]? - A list of up to 20 subscription items, each with an attached price.
- metadata AdditionalProperties|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- off_session boolean? - Indicates if a customer is on or off-session while an invoice payment is attempted.
- payment_behavior string? - Use
allow_incomplete
to create subscriptions withstatus=incomplete
if the first invoice cannot be paid. Creating subscriptions with this status allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more. This is the default behavior. Usedefault_incomplete
to create Subscriptions withstatus=incomplete
when the first invoice requires payment, otherwise start as active. Subscriptions transition tostatus=active
when successfully confirming the payment intent on the first invoice. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, SCA regulation, or collecting a mandate for a bank debit payment method. If the payment intent is not confirmed within 23 hours subscriptions transition tostatus=incomplete_expired
, which is a terminal state. Useerror_if_incomplete
if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the changelog to learn more.pending_if_incomplete
is only used with updates and cannot be passed when creating a subscription.
- payment_settings PaymentSettings1? - Payment settings to pass to invoices created by the subscription.
- pending_invoice_item_interval PendingInvoiceItemIntervalParams|string?? - Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
- promotion_code string? - The API ID of a promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription.
- proration_behavior string? - Determines how to handle prorations resulting from the
billing_cycle_anchor
. Valid values arecreate_prorations
ornone
. Passingcreate_prorations
will cause proration invoice items to be created when applicable. Prorations can be disabled by passingnone
. If no value is passed, the default iscreate_prorations
.
- transfer_data TransferDataSpecs2? - If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
- trial_end string|int?? - Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value
now
can be provided to end the customer's trial immediately. Can be at most two years frombilling_cycle_anchor
.
- trial_from_plan boolean? - Indicates if a plan's
trial_period_days
should be applied to the subscription. Settingtrial_end
per subscription is preferred, and this defaults tofalse
. Setting this flag totrue
together withtrial_end
is not allowed.
- trial_period_days int? - Integer representing the number of trial period days before the customer is charged for the first time. This will always overwrite any trials that might apply via a subscribed plan.
stripe: V1SubscriptionSchedulesBody
Fields
- customer string? - The identifier of the customer to create the subscription schedule for.
- default_settings DefaultSettingsParams? - Object representing the subscription schedule's default settings.
- end_behavior string? - Configures how the subscription schedule behaves when it ends. Possible values are
release
orcancel
with the default beingrelease
.release
will end the subscription schedule and keep the underlying subscription running.cancel
will end the subscription schedule and cancel the underlying subscription.
- expand V1subscriptionschedulesbodyExpandItemsString[]? - Specifies which fields in the response should be expanded.
- from_subscription string? - Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
- metadata record {}|string?? - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to
metadata
.
- phases PhaseConfigurationParams[]? - List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the
end_date
of one phase will always equal thestart_date
of the next phase.
stripe: VerificationSessionRedaction
Fields
- status string - Indicates whether this object and its related objects have been redacted or not.
stripe: WebhookEndpoint
You can configure webhook endpoints via the API to be notified about events that happen in your Stripe account or connected accounts.
Most users configure webhooks from the dashboard, which provides a user interface for registering and testing your webhook endpoints.
Related guide: Setting up Webhooks.
Fields
- api_version string? - The API version events are rendered as for this webhook endpoint.
- application string? - The ID of the associated Connect application.
- created int - Time at which the object was created. Measured in seconds since the Unix epoch.
- description string? - An optional description of what the webhook is used for.
- enabled_events WebhookendpointEnabledeventsItemsString[] - The list of events to enable for this endpoint.
['*']
indicates that all events are enabled, except those that require explicit selection.
- id string - Unique identifier for the object.
- livemode boolean - Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode.
- metadata record {} - Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 'object string - String representing the object's type. Objects of the same type share the same value.
- secret string? - The endpoint's secret, used to generate webhook signatures. Only returned at creation.
- status string - The status of the webhook. It can be
enabled
ordisabled
.
- url string - The URL of the webhook endpoint.
Union types
stripe: InvoiceAccounttaxidsItemsNull
InvoiceAccounttaxidsItemsNull
stripe: InvoiceDiscountsItemsNull
InvoiceDiscountsItemsNull
stripe: ExternalAccount
ExternalAccount
stripe: InlineResponse2001
InlineResponse2001
stripe: DeletedExternalAccount
DeletedExternalAccount
stripe: PaymentSource
PaymentSource
stripe: CreatedDetails
CreatedDetails
stripe: CurrentPeriodStart
CurrentPeriodStart
stripe: CurrentPeriodEnd
CurrentPeriodEnd
stripe: SubscriptionDefaultTaxRates
SubscriptionDefaultTaxRates
stripe: DueDate
DueDate
stripe: Discounts1
Discounts1
stripe: Created1
Created1
stripe: Created
Created
stripe: SubscriptionDefaultTaxRates1
SubscriptionDefaultTaxRates1
stripe: DeletedPaymentSource
DeletedPaymentSource
stripe: Discounts
Discounts
Import
import ballerinax/stripe;
Metadata
Released date: about 2 years ago
Version: 1.4.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.2.1
GraalVM compatible: Yes
Pull count
Total: 6552
Current verison: 167
Weekly downloads
Keywords
Finance/Payment
Cost/Freemium
Contributors