Capture the funds of an existing uncaptured PaymentIntent when its status is requires_.
Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
Learn more about separate authorization and capture.
Parameters
- amount_
to_ captureinteger The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full
amount_if it’s not provided.capturable - metadataobject
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.
More parameters
- amount_
detailsobject Provides industry-specific information about the amount.
- amount_details.
discount_ amountinteger The total discount applied on the transaction represented in the smallest currency unit. An integer greater than 0.
This field is mutually exclusive with the
amount_field.details[line_ items][#][discount_ amount] - amount_details.
line_ itemsarray of objects A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
- amount_details.
line_items. product_ namestringRequired The product name of the line item. Required for L3 rates. At most 1024 characters long.
For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
- amount_details.
line_items. quantityintegerRequired The quantity of items. Required for L3 rates. An integer greater than 0.
- amount_details.
line_items. unit_ costintegerRequired The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.
- amount_details.
line_items. discount_ amountinteger The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.
This field is mutually exclusive with the
amount_field.details[discount_ amount] - amount_details.
line_items. payment_ method_ optionsobject Payment method-specific information for line items.
- amount_details.
line_items. payment_method_options. cardobject This sub-hash contains line item details that are specific to
cardpayment method."- amount_details.
line_items. payment_method_options. card. commodity_ codestring Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
- amount_details.
line_items. payment_method_options. card_ presentobject This sub-hash contains line item details that are specific to
card_payment method."present - amount_details.
line_items. payment_method_options. card_present. commodity_ codestring Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
- amount_details.
line_items. payment_method_options. klarnaobject This sub-hash contains line item details that are specific to
klarnapayment method."- amount_details.
line_items. payment_method_options. klarna. image_ urlstring URL to an image for the product. Max length, 4096 characters.
- amount_details.
line_items. payment_method_options. klarna. product_ urlstring URL to the product page. Max length, 4096 characters.
- amount_details.
line_items. payment_method_options. klarna. referencestring Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed.
- amount_details.
line_items. payment_method_options. klarna. subscription_ referencestring Reference for the subscription this line item is for.
- amount_details.
line_items. payment_method_options. paypalobject This sub-hash contains line item details that are specific to
paypalpayment method."- amount_details.
line_items. payment_method_options. paypal. categoryenum Type of the line item.
Possible enum valuesdigital_goods Goods that are stored, delivered, and used in their electronic format.
donationA contribution or gift for which no good or service is exchanged, usually to a not for profit organization.
physical_goods A tangible item that can be shipped with proof of delivery.
- amount_details.
line_items. payment_method_options. paypal. descriptionstring Description of the line item.
- amount_details.
line_items. payment_method_options. paypal. sold_ bystring The Stripe account ID of the connected account that sells the item.
- amount_details.
line_items. product_ codestring The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
- amount_details.
line_items. taxobject Contains information about the tax on the item.
- amount_details.
line_items. tax. total_ tax_ amountintegerRequired The total amount of tax on a single line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.
This field is mutually exclusive with the
amount_field.details[tax][total_ tax_ amount]
- amount_details.
line_items. unit_ of_ measurestring A unit of measure for the line item, such as gallons, feet, meters, etc.
- amount_details.
shippingobject Contains information about the shipping portion of the amount.
- amount_details.
shipping. amountinteger If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An integer greater than or equal to 0.
- amount_details.
shipping. from_ postal_ codestring If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
- amount_details.
shipping. to_ postal_ codestring If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
- amount_details.
taxobject Contains information about the tax portion of the amount.
- amount_details.
tax. total_ tax_ amountintegerRequired The total amount of tax on the transaction represented in the smallest currency unit. Required for L2 rates. An integer greater than or equal to 0.
This field is mutually exclusive with the
amount_field.details[line_ items][#][tax][total_ tax_ amount]
- application_
fee_ amountintegerConnect only 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 amount captured. For more information, see the PaymentIntents use case for connected accounts.
- final_
captureboolean Defaults to
true. When capturing a PaymentIntent, settingfinal_tocapture falsenotifies Stripe to not release the remaining uncaptured funds to make sure that they’re captured in future requests. You can only use this setting when multicapture is available for PaymentIntents. - hooksobject
Automations to be run during the PaymentIntent lifecycle
- hooks.
inputsobject Arguments passed in automations
- hooks.
inputs. taxobject Tax arguments for automations
- hooks.
inputs. tax. calculationstringRequired The TaxCalculation id
- payment_
detailsobject Provides industry-specific information about the charge.
- payment_details.
car_ rental_ dataarray of objectsPreview feature Car rental data for this PaymentIntent.
- payment_details.
car_rental_data. drop_ offobjectRequired Drop-off location details.
- payment_details.
car_rental_data. drop_off. addressobjectRequired Address of the rental location.
- payment_details.
car_rental_data. drop_off. address. citystringRequired City, district, suburb, town, or village.
- payment_details.
car_rental_data. drop_off. address. countrystringRequired Two-letter country code (ISO 3166-1 alpha-2).
- payment_details.
car_rental_data. drop_off. address. line1stringRequired Address line 1, such as the street, PO Box, or company name.
- payment_details.
car_rental_data. drop_off. address. postal_ codestringRequired ZIP or postal code.
- payment_details.
car_rental_data. drop_off. address. line2string Address line 2, such as the apartment, suite, unit, or building.
- payment_details.
car_rental_data. drop_off. address. statestring State, county, province, or region.
- payment_details.
car_rental_data. drop_off. timetimestampRequired Timestamp for the location.
- payment_details.
car_rental_data. drop_off. location_ namestring Location name.
- payment_details.
car_rental_data. pickupobjectRequired Pickup location details.
- payment_details.
car_rental_data. pickup. addressobjectRequired Address of the rental location.
- payment_details.
car_rental_data. pickup. address. citystringRequired City, district, suburb, town, or village.
- payment_details.
car_rental_data. pickup. address. countrystringRequired Two-letter country code (ISO 3166-1 alpha-2).
- payment_details.
car_rental_data. pickup. address. line1stringRequired Address line 1, such as the street, PO Box, or company name.
- payment_details.
car_rental_data. pickup. address. postal_ codestringRequired ZIP or postal code.
- payment_details.
car_rental_data. pickup. address. line2string Address line 2, such as the apartment, suite, unit, or building.
- payment_details.
car_rental_data. pickup. address. statestring State, county, province, or region.
- payment_details.
car_rental_data. pickup. timetimestampRequired Timestamp for the location.
- payment_details.
car_rental_data. pickup. location_ namestring Location name.
- payment_details.
car_rental_data. totalobjectRequired Total cost breakdown for the rental.
- payment_details.
car_rental_data. total. amountintegerRequired Total amount in cents.
- payment_details.
car_rental_data. total. currencyenum Currency of the amount.
- payment_details.
car_rental_data. total. discountsobject Discount details for the rental.
- payment_details.
car_rental_data. total. discounts. corporate_ client_ codestring Corporate client discount code.
- payment_details.
car_rental_data. total. discounts. couponstring Coupon code applied to the rental.
- payment_details.
car_rental_data. total. discounts. maximum_ free_ miles_ or_ kilometersinteger Maximum number of free miles or kilometers included.
- payment_details.
car_rental_data. total. extra_ chargesarray of objects Additional charges for the rental.
- payment_details.
car_rental_data. total. extra_charges. amountintegerRequired Amount of the extra charge in cents.
- payment_details.
car_rental_data. total. extra_charges. typeenumRequired Type of extra charge.
Possible enum valuesextra_mileage Additional charges for exceeding the included mileage.
gasFuel charges.
gpsGPS navigation system rental fee.
late_charge Fee for late return of the vehicle.
one_way_ drop_ off Fee for dropping off the vehicle at a different location.
otherOther miscellaneous extra charges.
parkingParking charges.
phoneMobile phone or hands-free device rental fee.
regular_mileage Standard mileage charges.
towingTowing charges.
- payment_details.
car_rental_data. total. rate_ per_ unitinteger Rate per unit for the rental.
- payment_details.
car_rental_data. total. rate_ unitenum Unit of measurement for the rate.
Possible enum valuesdaysRental rate charged per day.
kilometersRental rate charged per kilometer.
milesRental rate charged per mile.
monthsRental rate charged per month.
weeksRental rate charged per week.
- payment_details.
car_rental_data. total. taxobject Tax breakdown for the rental.
- payment_details.
car_rental_data. total. tax. tax_ exempt_ indicatorboolean Indicates if the transaction is tax exempt.
- payment_details.
car_rental_data. total. tax. taxesarray of objects Array of tax details.
- payment_details.
car_rental_data. total. tax. taxes. amountinteger Tax amount.
- payment_details.
car_rental_data. total. tax. taxes. rateinteger Tax rate applied.
- payment_details.
car_rental_data. total. tax. taxes. typestring Type of tax applied.
- payment_details.
car_rental_data. affiliateobject Affiliate (such as travel agency) details for the rental.
- payment_details.
car_rental_data. affiliate. codestring Affiliate partner code.
- payment_details.
car_rental_data. affiliate. namestring Name of affiliate partner.
- payment_details.
car_rental_data. booking_ numberstring Booking confirmation number for the car rental.
- payment_details.
car_rental_data. carrier_ namestring Name of the car rental company.
- payment_details.
car_rental_data. customer_ service_ phone_ numberstring Customer service phone number for the car rental company.
- payment_details.
car_rental_data. days_ rentedinteger Number of days the car is being rented.
- payment_details.
car_rental_data. distanceobject Distance details for the rental.
- payment_details.
car_rental_data. distance. amountintegerRequired Distance traveled.
- payment_details.
car_rental_data. distance. unitenumRequired Unit of measurement for the distance traveled. One of
milesorkilometers.
- payment_details.
car_rental_data. driversarray of objects List of drivers for the rental.
- payment_details.
car_rental_data. drivers. namestringRequired Driver’s full name.
- payment_details.
car_rental_data. drivers. date_ of_ birthobject Driver’s date of birth.
- payment_details.
car_rental_data. drivers. date_of_birth. dayintegerRequired Day of birth (1-31).
- payment_details.
car_rental_data. drivers. date_of_birth. monthintegerRequired Month of birth (1-12).
- payment_details.
car_rental_data. drivers. date_of_birth. yearintegerRequired Year of birth (must be greater than 1900).
- payment_details.
car_rental_data. drivers. driver_ identification_ numberstring Driver’s identification number.
- payment_details.
car_rental_data. drivers. driver_ tax_ numberstring Driver’s tax number.
- payment_details.
car_rental_data. insurancesarray of objects Insurance details for the rental.
- payment_details.
car_rental_data. insurances. amountintegerRequired Amount of the insurance coverage in cents.
- payment_details.
car_rental_data. insurances. insurance_ typeenumRequired Type of insurance coverage.
Possible enum valuesliability_supplement Supplemental liability insurance coverage.
loss_damage_ waiver Agreement waiving responsibility for loss or damage to the vehicle.
otherOther types of insurance coverage.
partial_damage_ waiver Agreement limiting responsibility for loss or damage to the vehicle.
personal_accident Insurance covering personal accidents during the rental period.
personal_effects Insurance covering personal belongings during the rental period.
- payment_details.
car_rental_data. insurances. currencyenum Currency of the insurance amount.
- payment_details.
car_rental_data. insurances. insurance_ company_ namestring Name of the insurance company.
- payment_details.
car_rental_data. no_ show_ indicatorboolean Indicates if the customer was a no-show.
- payment_details.
car_rental_data. renter_ namestring Name of the person renting the vehicle.
- payment_details.
car_rental_data. vehicleobject Vehicle details for the rental.
- payment_details.
car_rental_data. vehicle. makestring Make of the rental vehicle.
- payment_details.
car_rental_data. vehicle. modelstring Model of the rental vehicle.
- payment_details.
car_rental_data. vehicle. odometerinteger Odometer reading at the time of rental.
- payment_details.
car_rental_data. vehicle. typeenum Type of the rental vehicle.
Possible enum valuescargo_van Van designed for cargo transport.
compactCompact car.
economyEconomy-class car.
exoticExotic or high-performance vehicle.
exotic_suv Exotic or luxury sport utility vehicle.
fifteen_passenger_ van Van with capacity for fifteen passengers.
four_wheel_ drive Four-wheel-drive vehicle.
full_size Full-sized car.
intermediateIntermediate-sized car.
large_suv Large sport utility vehicle.
Show 24 more - payment_details.
car_rental_data. vehicle. vehicle_ classenum Class of the rental vehicle.
Possible enum valuesbusinessBusiness class vehicle.
economyEconomy class vehicle.
first_class First class vehicle with premium amenities.
premium_economy Premium economy class vehicle with enhanced features.
- payment_details.
car_rental_data. vehicle. vehicle_ identification_ numberstring Vehicle identification number (VIN).
- payment_details.
customer_ referencestring A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
- payment_details.
flight_ dataarray of objectsPreview feature Flight data for this PaymentIntent.
- payment_details.
flight_data. segmentsarray of objectsRequired List of flight segments.
- payment_details.
flight_data. segments. arrivalobjectRequired Arrival details.
- payment_details.
flight_data. segments. arrival. airportstringRequired Arrival airport IATA code.
- payment_details.
flight_data. segments. arrival. arrives_ attimestamp Arrival date/time.
- payment_details.
flight_data. segments. arrival. citystring Arrival city.
- payment_details.
flight_data. segments. arrival. countrystring Arrival country.
- payment_details.
flight_data. segments. carrier_ codestringRequired Airline carrier code.
- payment_details.
flight_data. segments. departureobjectRequired Departure details.
- payment_details.
flight_data. segments. departure. airportstringRequired Departure airport IATA code.
- payment_details.
flight_data. segments. departure. departs_ attimestampRequired Departure date/time.
- payment_details.
flight_data. segments. departure. citystring Departure city.
- payment_details.
flight_data. segments. departure. countrystring Departure country.
- payment_details.
flight_data. segments. service_ classenumRequired Class of service.
Possible enum valuesbusinessBusiness class seating.
economyEconomy class seating.
first_class First class seating with premium amenities.
premium_economy Premium economy class with enhanced seating and services.
- payment_details.
flight_data. segments. amountinteger Segment fare amount.
- payment_details.
flight_data. segments. carrier_ namestring Carrier name.
- payment_details.
flight_data. segments. currencyenum Segment currency.
- payment_details.
flight_data. segments. exchange_ ticket_ numberstring Exchange ticket number.
- payment_details.
flight_data. segments. fare_ basis_ codestring Fare basis code.
- payment_details.
flight_data. segments. feesinteger Additional fees.
- payment_details.
flight_data. segments. flight_ numberstring Flight number.
- payment_details.
flight_data. segments. is_ stop_ over_ indicatorboolean Stopover indicator.
- payment_details.
flight_data. segments. refundableboolean Refundable ticket indicator.
- payment_details.
flight_data. segments. tax_ amountinteger Tax amount for segment.
- payment_details.
flight_data. segments. ticket_ numberstring Ticket number.
- payment_details.
flight_data. totalobjectRequired Total cost breakdown.
- payment_details.
flight_data. total. amountintegerRequired Total flight amount.
- payment_details.
flight_data. total. credit_ reasonenum Reason for credit.
Possible enum valuesotherOther credit reasons.
partial_ticket_ refund Partial refund of the ticket cost.
passenger_transport_ ancillary_ cancellation Cancellation of passenger transport and ancillary services.
ticket_and_ ancillary_ cancellation Cancellation of both ticket and ancillary services.
ticket_cancellation Cancellation of the ticket only.
- payment_details.
flight_data. total. currencyenum Total currency.
- payment_details.
flight_data. total. discountsobject Discount details.
- payment_details.
flight_data. total. discounts. corporate_ client_ codestring Corporate client discount code.
- payment_details.
flight_data. total. extra_ chargesarray of objects Additional charges.
- payment_details.
flight_data. total. extra_charges. amountinteger Amount of additional charges.
- payment_details.
flight_data. total. extra_charges. typeenum Type of additional charges.
Possible enum valuesadditional_fees Additional fees charged for the flight.
ancillary_service_ charges Charges for ancillary services such as baggage, seat selection, or meals.
exchange_fee Fee charged for exchanging or changing the ticket.
- payment_details.
flight_data. total. taxobject Tax breakdown.
- payment_details.
flight_data. total. tax. taxesarray of objects Array of tax details.
- payment_details.
flight_data. total. tax. taxes. amountinteger Tax amount.
- payment_details.
flight_data. total. tax. taxes. rateinteger Tax rate.
- payment_details.
flight_data. total. tax. taxes. typestring Type of tax.
- payment_details.
flight_data. affiliateobject Affiliate details if applicable.
- payment_details.
flight_data. affiliate. codestring Affiliate partner code.
- payment_details.
flight_data. affiliate. namestring Name of affiliate partner.
- payment_details.
flight_data. affiliate. string Code provided by the company to a travel agent authorizing ticket issuance.
- payment_details.
flight_data. booking_ numberstring Reservation reference.
- payment_details.
flight_data. computerized_ reservation_ systemstring Computerized reservation system used to make the reservation and purchase the ticket.
- payment_details.
flight_data. endorsements_ and_ restrictionsstring Ticket restrictions.
- payment_details.
flight_data. insurancesarray of objects List of insurances.
- payment_details.
flight_data. insurances. amountintegerRequired Insurance cost.
- payment_details.
flight_data. insurances. insurance_ typeenumRequired Type of insurance.
Possible enum valuesbaggageInsurance covering lost, damaged, or delayed baggage.
bankruptcyInsurance covering losses due to airline bankruptcy.
cancelationInsurance covering flight cancellation.
emergencyInsurance covering general emergency situations.
medicalInsurance covering medical emergencies during travel.
- payment_details.
flight_data. insurances. currencyenum Insurance currency.
- payment_details.
flight_data. insurances. insurance_ company_ namestring Insurance company name.
- payment_details.
flight_data. passengersarray of objects List of passengers.
- payment_details.
flight_data. passengers. namestringRequired Passenger’s full name.
- payment_details.
flight_data. ticket_ electronically_ issued_ indicatorboolean Electronic ticket indicator.
- payment_details.
flight_data. transaction_ typeenum Type of flight transaction.
Possible enum valuesexchange_ticket Exchange or modification of an existing ticket.
miscellaneousOther miscellaneous flight-related transactions.
refundRefund for a canceled or unused ticket.
ticket_purchase Purchase of a new flight ticket.
- payment_details.
lodging_ dataarray of objectsPreview feature Lodging data for this PaymentIntent.
- payment_details.
lodging_data. checkin_ attimestampRequired Check-in date.
- payment_details.
lodging_data. checkout_ attimestampRequired Check-out date.
- payment_details.
lodging_data. totalobjectRequired Total details for the lodging.
- payment_details.
lodging_data. total. amountintegerRequired Total price of the lodging reservation in cents.
- payment_details.
lodging_data. total. cash_ advancesinteger Cash advances in cents.
- payment_details.
lodging_data. total. currencyenum Currency of the total amount.
- payment_details.
lodging_data. total. discountsobject Discount details for the lodging.
- payment_details.
lodging_data. total. discounts. corporate_ client_ codestring Corporate client discount code.
- payment_details.
lodging_data. total. discounts. couponstring Coupon code.
- payment_details.
lodging_data. total. extra_ chargesarray of objects Additional charges for the lodging.
- payment_details.
lodging_data. total. extra_charges. amountinteger Amount of the extra charge in cents.
- payment_details.
lodging_data. total. extra_charges. typeenum Type of extra charge.
Possible enum valuesgift_shop Charges for gift shop purchases.
laundryCharges for laundry or cleaning services.
mini_bar Charges for mini bar consumption.
otherOther miscellaneous charges.
phoneCharges for telephone services.
restaurantCharges for dining or food services.
- payment_details.
lodging_data. total. prepaid_ amountinteger Prepaid amount in cents.
- payment_details.
lodging_data. total. taxobject Tax breakdown for the lodging reservation.
- payment_details.
lodging_data. total. tax. tax_ exempt_ indicatorboolean Indicates whether the transaction is tax exempt.
- payment_details.
lodging_data. total. tax. taxesarray of objects Tax details.
- payment_details.
lodging_data. total. tax. taxes. amountinteger Tax amount in cents.
- payment_details.
lodging_data. total. tax. taxes. rateinteger Tax rate.
- payment_details.
lodging_data. total. tax. taxes. typestring Type of tax applied.
- payment_details.
lodging_data. accommodationobject Accommodation details for the lodging.
- payment_details.
lodging_data. accommodation. accommodation_ typeenum Type of accommodation.
Possible enum valuesapartmentA self-contained apartment unit.
cabanaA cabana or small cabin.
houseA standalone house.
penthouseA penthouse or top-floor luxury accommodation.
roomA standard room.
standardA standard accommodation type.
suiteA suite with multiple rooms or enhanced amenities.
villaA villa or luxury residence.
- payment_details.
lodging_data. accommodation. bed_ typestring Bed type.
- payment_details.
lodging_data. accommodation. daily_ rate_ amountinteger Daily accommodation rate in cents.
- payment_details.
lodging_data. accommodation. nightsinteger Number of nights.
- payment_details.
lodging_data. accommodation. number_ of_ roomsinteger Number of rooms, cabanas, apartments, and so on.
- payment_details.
lodging_data. accommodation. rate_ typestring Rate type.
- payment_details.
lodging_data. accommodation. smoking_ indicatorboolean Whether smoking is allowed.
- payment_details.
lodging_data. affiliateobject Affiliate details if applicable.
- payment_details.
lodging_data. affiliate. codestring Affiliate partner code.
- payment_details.
lodging_data. affiliate. namestring Affiliate partner name.
- payment_details.
lodging_data. booking_ numberstring Booking confirmation number for the lodging.
- payment_details.
lodging_data. customer_ service_ phone_ numberstring Customer service phone number for the lodging company.
- payment_details.
lodging_data. fire_ safety_ act_ compliance_ indicatorboolean Whether the lodging is compliant with any hotel fire safety regulations.
- payment_details.
lodging_data. guestsarray of objects List of guests for the lodging.
- payment_details.
lodging_data. guests. namestringRequired Guest’s full name.
- payment_details.
lodging_data. hostobject Host details for the lodging.
- payment_details.
lodging_data. host. addressobject Address of the host.
- payment_details.
lodging_data. host. address. citystringRequired City, district, suburb, town, or village.
- payment_details.
lodging_data. host. address. countrystringRequired Two-letter country code (ISO 3166-1 alpha-2).
- payment_details.
lodging_data. host. address. line1stringRequired Address line 1, such as the street, PO Box, or company name.
- payment_details.
lodging_data. host. address. postal_ codestringRequired ZIP or postal code.
- payment_details.
lodging_data. host. address. line2string Address line 2, such as the apartment, suite, unit, or building.
- payment_details.
lodging_data. host. address. statestring State, county, province, or region.
- payment_details.
lodging_data. host. country_ of_ domicilestring Host’s country of domicile.
- payment_details.
lodging_data. host. host_ referencestring Reference number for the host.
- payment_details.
lodging_data. host. host_ typeenum Type of host.
Possible enum valueshostelA hostel or shared accommodation facility.
hotelA hotel or hotel chain.
ownerThe property owner directly managing the rental.
rental_agency A rental agency managing the property.
- payment_details.
lodging_data. host. namestring Name of the lodging property or host.
- payment_details.
lodging_data. host. number_ of_ reservationsinteger Total number of reservations for the host.
- payment_details.
lodging_data. host. property_ phone_ numberstring Property phone number.
- payment_details.
lodging_data. host. registered_ attimestamp Host’s registration date.
- payment_details.
lodging_data. insurancesarray of objects List of insurances for the lodging.
- payment_details.
lodging_data. insurances. amountintegerRequired Price of the insurance coverage in cents.
- payment_details.
lodging_data. insurances. insurance_ typeenumRequired Type of insurance coverage.
Possible enum valuesbankruptcyInsurance covering losses due to provider bankruptcy.
cancelationInsurance covering cancellation.
emergencyInsurance covering general emergency situations.
medicalInsurance covering medical emergencies during the stay.
- payment_details.
lodging_data. insurances. currencyenum Currency of the insurance amount.
- payment_details.
lodging_data. insurances. insurance_ company_ namestring Name of the insurance company.
- payment_details.
lodging_data. no_ show_ indicatorboolean Whether the renter is a no-show.
- payment_details.
lodging_data. renter_ id_ numberstring Renter ID number for the lodging.
- payment_details.
lodging_data. renter_ namestring Renter name for the lodging.
- payment_details.
order_ referencestring A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
Required when the Payment Method Types array contains
card, including when automatic_payment_methods.enabled is set totrue.For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
- statement_
descriptorstring Text that appears on the customer’s statement as the statement descriptor for a non-card charge. This value overrides the account’s default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.
Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix instead.
- statement_
descriptor_ suffixstring Provides information about a card charge. Concatenated to the account’s statement descriptor prefix to form the complete statement descriptor that appears on the customer’s statement.
- transfer_
dataobjectConnect only The parameters that you can use to automatically create a transfer after the payment is captured. Learn more about the use case for connected accounts.
- transfer_data.
amountinteger The amount that will be transferred automatically when a charge succeeds.
Returns
Returns a PaymentIntent object with status="succeeded" if the PaymentIntent is capturable. Returns an error if the PaymentIntent isn’t capturable or if an invalid amount to capture is provided.
{ "id": "pi_3MrPBM2eZvKYlo2C1TEMacFD", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, "amount_details": { "tip": {} }, "amount_received": 1000, "application": null, "application_fee_amount": null, "automatic_payment_methods": null, "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", "client_secret": "pi_3MrPBM2eZvKYlo2C1TEMacFD_secret_9J35eTzWlxVmfbbQhmkNbewuL", "confirmation_method": "automatic", "created": 1524505326, "currency": "usd", "customer": null, "description": "One blue fish", "last_payment_error": null, "latest_charge": "ch_1EXUPv2eZvKYlo2CStIqOmbY", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, "payment_method": "pm_1EXUPv2eZvKYlo2CUkqZASBe", "payment_method_options": {}, "payment_method_types": [ "card" ], "processing": null, "receipt_email": null, "redaction": null, "review": null, "setup_future_usage": null, "shipping": null, "statement_descriptor": null, "statement_descriptor_suffix": null, "status": "succeeded", "transfer_data": null, "transfer_group": null}- Need help? Contact Support.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
- Powered by Markdoc