# Create a PaymentIntent

## Request

```curl
curl https://api.stripe.com/v1/payment_intents \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.endive" \
  -d amount=2000 \
  -d currency=usd \
  -d "automatic_payment_methods[enabled]=true"
```

### Response

```json
{
  "id": "pi_3MtwBwLkdIwHu7ix28a3tqPa",
  "object": "payment_intent",
  "amount": 2000,
  "amount_capturable": 0,
  "amount_details": {
    "tip": {}
  },
  "amount_received": 0,
  "application": null,
  "application_fee_amount": null,
  "automatic_payment_methods": {
    "enabled": true
  },
  "canceled_at": null,
  "cancellation_reason": null,
  "capture_method": "automatic",
  "client_secret": "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH",
  "confirmation_method": "automatic",
  "created": 1680800504,
  "currency": "usd",
  "customer": null,
  "description": null,
  "last_payment_error": null,
  "latest_charge": null,
  "livemode": false,
  "metadata": {},
  "next_action": null,
  "on_behalf_of": null,
  "payment_method": null,
  "payment_method_options": {
    "card": {
      "installments": null,
      "mandate_options": null,
      "network": null,
      "request_three_d_secure": "automatic"
    },
    "link": {
      "persistent_token": null
    }
  },
  "payment_method_types": [
    "card",
    "link"
  ],
  "processing": null,
  "receipt_email": null,
  "review": null,
  "setup_future_usage": null,
  "shipping": null,
  "source": null,
  "statement_descriptor": null,
  "statement_descriptor_suffix": null,
  "status": "requires_payment_method",
  "transfer_data": null,
  "transfer_group": null
}
```

- `payment_details` (object, optional)
  Provides industry-specific information about the charge.

  - `payment_details.car_rental_data` (array of objects, optional)
    Car rental data for this PaymentIntent.

    - `payment_details.car_rental_data.drop_off` (object, required)
      Drop-off location details.

      - `payment_details.car_rental_data.drop_off.address` (object, required)
        Address of the rental location.

        - `payment_details.car_rental_data.drop_off.address.city` (string, required)
          City, district, suburb, town, or village.

        - `payment_details.car_rental_data.drop_off.address.country` (string, required)
          Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).

        - `payment_details.car_rental_data.drop_off.address.line1` (string, required)
          Address line 1, such as the street, PO Box, or company name.

        - `payment_details.car_rental_data.drop_off.address.postal_code` (string, required)
          ZIP or postal code.

        - `payment_details.car_rental_data.drop_off.address.line2` (string, optional)
          Address line 2, such as the apartment, suite, unit, or building.

        - `payment_details.car_rental_data.drop_off.address.state` (string, optional)
          State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).

      - `payment_details.car_rental_data.drop_off.time` (timestamp, required)
        Timestamp for the location.

      - `payment_details.car_rental_data.drop_off.location_name` (string, optional)
        Location name.

        The maximum length is 38 characters.

    - `payment_details.car_rental_data.pickup` (object, required)
      Pickup location details.

      - `payment_details.car_rental_data.pickup.address` (object, required)
        Address of the rental location.

        - `payment_details.car_rental_data.pickup.address.city` (string, required)
          City, district, suburb, town, or village.

        - `payment_details.car_rental_data.pickup.address.country` (string, required)
          Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).

        - `payment_details.car_rental_data.pickup.address.line1` (string, required)
          Address line 1, such as the street, PO Box, or company name.

        - `payment_details.car_rental_data.pickup.address.postal_code` (string, required)
          ZIP or postal code.

        - `payment_details.car_rental_data.pickup.address.line2` (string, optional)
          Address line 2, such as the apartment, suite, unit, or building.

        - `payment_details.car_rental_data.pickup.address.state` (string, optional)
          State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).

      - `payment_details.car_rental_data.pickup.time` (timestamp, required)
        Timestamp for the location.

      - `payment_details.car_rental_data.pickup.location_name` (string, optional)
        Location name.

        The maximum length is 38 characters.

    - `payment_details.car_rental_data.total` (object, required)
      Total cost breakdown for the rental.

      - `payment_details.car_rental_data.total.amount` (integer, required)
        Total amount in cents.

      - `payment_details.car_rental_data.total.currency` (enum, optional)
        Currency of the amount.

      - `payment_details.car_rental_data.total.discounts` (object, optional)
        Discount details for the rental.

        - `payment_details.car_rental_data.total.discounts.corporate_client_code` (string, optional)
          Corporate client discount code.

          The maximum length is 20 characters.

        - `payment_details.car_rental_data.total.discounts.coupon` (string, optional)
          Coupon code applied to the rental.

          The maximum length is 25 characters.

        - `payment_details.car_rental_data.total.discounts.maximum_free_miles_or_kilometers` (integer, optional)
          Maximum number of free miles or kilometers included.

      - `payment_details.car_rental_data.total.extra_charges` (array of objects, optional)
        Additional charges for the rental.

        - `payment_details.car_rental_data.total.extra_charges.amount` (integer, required)
          Amount of the extra charge in cents.

        - `payment_details.car_rental_data.total.extra_charges.type` (enum, required)
          Type of extra charge.
Possible enum values:
          - `extra_mileage`
            Additional charges for exceeding the included mileage.

          - `gas`
            Fuel charges.

          - `gps`
            GPS 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.

          - `other`
            Other miscellaneous extra charges.

          - `parking`
            Parking charges.

          - `phone`
            Mobile phone or hands-free device rental fee.

          - `regular_mileage`
            Standard mileage charges.

          - `towing`
            Towing charges.

      - `payment_details.car_rental_data.total.rate_per_unit` (integer, optional)
        Rate per unit for the rental.

      - `payment_details.car_rental_data.total.rate_unit` (enum, optional)
        Unit of measurement for the rate.
Possible enum values:
        - `days`
          Rental rate charged per day.

        - `kilometers`
          Rental rate charged per kilometer.

        - `miles`
          Rental rate charged per mile.

        - `months`
          Rental rate charged per month.

        - `weeks`
          Rental rate charged per week.

      - `payment_details.car_rental_data.total.tax` (object, optional)
        Tax breakdown for the rental.

        - `payment_details.car_rental_data.total.tax.tax_exempt_indicator` (boolean, optional)
          Indicates if the transaction is tax exempt.

        - `payment_details.car_rental_data.total.tax.tax_items` (array of objects, optional)
          Array of tax details.

          - `payment_details.car_rental_data.total.tax.tax_items.amount` (integer, optional)
            Tax amount.

          - `payment_details.car_rental_data.total.tax.tax_items.rate` (integer, optional)
            Tax rate applied.

          - `payment_details.car_rental_data.total.tax.tax_items.type` (string, optional)
            Type of tax applied.

            The maximum length is 40 characters.

    - `payment_details.car_rental_data.affiliate` (object, optional)
      Affiliate (such as travel agency) details for the rental.

      - `payment_details.car_rental_data.affiliate.code` (string, optional)
        Affiliate partner code.

        The maximum length is 20 characters.

      - `payment_details.car_rental_data.affiliate.name` (string, optional)
        Name of affiliate partner.

        The maximum length is 255 characters.

    - `payment_details.car_rental_data.booking_number` (string, optional)
      Booking confirmation number for the car rental.

      The maximum length is 255 characters.

    - `payment_details.car_rental_data.carrier_name` (string, optional)
      Name of the car rental company.

      The maximum length is 255 characters.

    - `payment_details.car_rental_data.customer_service_phone_number` (string, optional)
      Customer service phone number for the car rental company.

    - `payment_details.car_rental_data.days_rented` (integer, optional)
      Number of days the car is being rented.

    - `payment_details.car_rental_data.distance` (object, optional)
      Distance details for the rental.

      - `payment_details.car_rental_data.distance.amount` (integer, required)
        Distance traveled.

      - `payment_details.car_rental_data.distance.unit` (enum, required)
        Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
Possible enum values:
        - `kilometers`
        - `miles`

    - `payment_details.car_rental_data.drivers` (array of objects, optional)
      List of drivers for the rental.

      - `payment_details.car_rental_data.drivers.name` (string, required)
        Driver’s full name.

        The maximum length is 198 characters.

      - `payment_details.car_rental_data.drivers.date_of_birth` (object, optional)
        Driver’s date of birth.

        - `payment_details.car_rental_data.drivers.date_of_birth.day` (integer, required)
          Day of birth (1-31).

        - `payment_details.car_rental_data.drivers.date_of_birth.month` (integer, required)
          Month of birth (1-12).

        - `payment_details.car_rental_data.drivers.date_of_birth.year` (integer, required)
          Year of birth (must be greater than 1900).

      - `payment_details.car_rental_data.drivers.driver_identification_number` (string, optional)
        Driver’s identification number.

        The maximum length is 20 characters.

      - `payment_details.car_rental_data.drivers.driver_tax_number` (string, optional)
        Driver’s tax number.

        The maximum length is 20 characters.

    - `payment_details.car_rental_data.insurances` (array of objects, optional)
      Insurance details for the rental.

      - `payment_details.car_rental_data.insurances.amount` (integer, required)
        Amount of the insurance coverage in cents.

      - `payment_details.car_rental_data.insurances.insurance_type` (enum, required)
        Type of insurance coverage.
Possible enum values:
        - `liability_supplement`
          Supplemental liability insurance coverage.

        - `loss_damage_waiver`
          Agreement waiving responsibility for loss or damage to the vehicle.

        - `other`
          Other 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.currency` (enum, optional)
        Currency of the insurance amount.

      - `payment_details.car_rental_data.insurances.insurance_company_name` (string, optional)
        Name of the insurance company.

        The maximum length is 255 characters.

    - `payment_details.car_rental_data.no_show_indicator` (boolean, optional)
      Indicates if the customer was a no-show.

    - `payment_details.car_rental_data.renter_name` (string, optional)
      Name of the person renting the vehicle.

      The maximum length is 198 characters.

    - `payment_details.car_rental_data.vehicle` (object, optional)
      Vehicle details for the rental.

      - `payment_details.car_rental_data.vehicle.make` (string, optional)
        Make of the rental vehicle.

        The maximum length is 40 characters.

      - `payment_details.car_rental_data.vehicle.model` (string, optional)
        Model of the rental vehicle.

        The maximum length is 40 characters.

      - `payment_details.car_rental_data.vehicle.odometer` (integer, optional)
        Odometer reading at the time of rental.

      - `payment_details.car_rental_data.vehicle.type` (enum, optional)
        Type of the rental vehicle.
Possible enum values:
        - `cargo_van`
          Van designed for cargo transport.

        - `compact`
          Compact car.

        - `economy`
          Economy-class car.

        - `exotic`
          Exotic 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.

        - `intermediate`
          Intermediate-sized car.

        - `large_suv`
          Large sport utility vehicle.

        - `large_truck`
          Large truck.

        - `luxury`
          Luxury car.

        - `medium_suv`
          Medium sport utility vehicle.

        - `midsize`
          Midsize car.

        - `mini`
          Mini-sized car.

        - `minivan`
          Minivan.

        - `miscellaneous`
          Other miscellaneous vehicle types.

        - `moped`
          Moped or motorized scooter.

        - `moving_van`
          Van designed for moving goods.

        - `premium`
          Premium car.

        - `regular`
          Regular vehicle type.

        - `small_medium_truck`
          Small to medium truck.

        - `small_suv`
          Small sport utility vehicle.

        - `special`
          Special vehicle type.

        - `standard`
          Standard-sized car.

        - `stretch`
          Stretch limousine.

        - `subcompact`
          Subcompact car.

        - `taxi`
          Taxi or for-hire vehicle.

        - `twelve_foot_truck`
          Truck with twelve-foot cargo space.

        - `twelve_passenger_van`
          Van with capacity for twelve passengers.

        - `twenty_foot_truck`
          Truck with twenty-foot cargo space.

        - `twenty_four_foot_truck`
          Truck with twenty-four-foot cargo space.

        - `twenty_six_foot_truck`
          Truck with twenty-six-foot cargo space.

        - `unique`
          Unique or specialty vehicle.

      - `payment_details.car_rental_data.vehicle.vehicle_class` (enum, optional)
        Class of the rental vehicle.
Possible enum values:
        - `business`
          Business class vehicle.

        - `economy`
          Economy 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_number` (string, optional)
        Vehicle identification number (VIN).

        The maximum length is 20 characters.

  - `payment_details.customer_reference` (string, optional)
    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.lodging_data` (array of objects, optional)
    Lodging data for this PaymentIntent.

    - `payment_details.lodging_data.checkin_at` (timestamp, required)
      Check-in date.

    - `payment_details.lodging_data.checkout_at` (timestamp, required)
      Check-out date.

    - `payment_details.lodging_data.total` (object, required)
      Total details for the lodging.

      - `payment_details.lodging_data.total.amount` (integer, required)
        Total price of the lodging reservation in cents.

      - `payment_details.lodging_data.total.cash_advances` (integer, optional)
        Cash advances in cents.

      - `payment_details.lodging_data.total.currency` (enum, optional)
        Currency of the total amount.

      - `payment_details.lodging_data.total.discounts` (object, optional)
        Discount details for the lodging.

        - `payment_details.lodging_data.total.discounts.corporate_client_code` (string, optional)
          Corporate client discount code.

          The maximum length is 20 characters.

        - `payment_details.lodging_data.total.discounts.coupon` (string, optional)
          Coupon code.

          The maximum length is 25 characters.

      - `payment_details.lodging_data.total.extra_charges` (array of objects, optional)
        Additional charges for the lodging.

        - `payment_details.lodging_data.total.extra_charges.amount` (integer, optional)
          Amount of the extra charge in cents.

        - `payment_details.lodging_data.total.extra_charges.type` (enum, optional)
          Type of extra charge.
Possible enum values:
          - `gift_shop`
            Charges for gift shop purchases.

          - `laundry`
            Charges for laundry or cleaning services.

          - `mini_bar`
            Charges for mini bar consumption.

          - `other`
            Other miscellaneous charges.

          - `phone`
            Charges for telephone services.

          - `restaurant`
            Charges for dining or food services.

      - `payment_details.lodging_data.total.prepaid_amount` (integer, optional)
        Prepaid amount in cents.

      - `payment_details.lodging_data.total.tax` (object, optional)
        Tax breakdown for the lodging reservation.

        - `payment_details.lodging_data.total.tax.tax_exempt_indicator` (boolean, optional)
          Indicates whether the transaction is tax exempt.

        - `payment_details.lodging_data.total.tax.tax_items` (array of objects, optional)
          Tax details.

          - `payment_details.lodging_data.total.tax.tax_items.amount` (integer, optional)
            Tax amount in cents.

          - `payment_details.lodging_data.total.tax.tax_items.rate` (integer, optional)
            Tax rate.

          - `payment_details.lodging_data.total.tax.tax_items.type` (string, optional)
            Type of tax applied.

            The maximum length is 40 characters.

    - `payment_details.lodging_data.accommodation` (object, optional)
      Accommodation details for the lodging.

      - `payment_details.lodging_data.accommodation.accommodation_type` (enum, optional)
        Type of accommodation.
Possible enum values:
        - `apartment`
          A self-contained apartment unit.

        - `cabana`
          A cabana or small cabin.

        - `house`
          A standalone house.

        - `penthouse`
          A penthouse or top-floor luxury accommodation.

        - `room`
          A standard room.

        - `standard`
          A standard accommodation type.

        - `suite`
          A suite with multiple rooms or enhanced amenities.

        - `villa`
          A villa or luxury residence.

      - `payment_details.lodging_data.accommodation.bed_type` (string, optional)
        Bed type.

        The maximum length is 20 characters.

      - `payment_details.lodging_data.accommodation.daily_rate_amount` (integer, optional)
        Daily accommodation rate in cents.

      - `payment_details.lodging_data.accommodation.nights` (integer, optional)
        Number of nights.

      - `payment_details.lodging_data.accommodation.number_of_rooms` (integer, optional)
        Number of rooms, cabanas, apartments, and so on.

      - `payment_details.lodging_data.accommodation.rate_type` (string, optional)
        Rate type.

        The maximum length is 20 characters.

      - `payment_details.lodging_data.accommodation.smoking_indicator` (boolean, optional)
        Whether smoking is allowed.

    - `payment_details.lodging_data.affiliate` (object, optional)
      Affiliate details if applicable.

      - `payment_details.lodging_data.affiliate.code` (string, optional)
        Affiliate partner code.

        The maximum length is 20 characters.

      - `payment_details.lodging_data.affiliate.name` (string, optional)
        Affiliate partner name.

        The maximum length is 255 characters.

    - `payment_details.lodging_data.booking_number` (string, optional)
      Booking confirmation number for the lodging.

      The maximum length is 255 characters.

    - `payment_details.lodging_data.customer_service_phone_number` (string, optional)
      Customer service phone number for the lodging company.

    - `payment_details.lodging_data.fire_safety_act_compliance_indicator` (boolean, optional)
      Whether the lodging is compliant with any hotel fire safety regulations.

    - `payment_details.lodging_data.guests` (array of objects, optional)
      List of guests for the lodging.

      - `payment_details.lodging_data.guests.name` (string, required)
        Guest’s full name.

        The maximum length is 198 characters.

    - `payment_details.lodging_data.host` (object, optional)
      Host details for the lodging.

      - `payment_details.lodging_data.host.address` (object, optional)
        Address of the host.

        - `payment_details.lodging_data.host.address.city` (string, required)
          City, district, suburb, town, or village.

        - `payment_details.lodging_data.host.address.country` (string, required)
          Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).

        - `payment_details.lodging_data.host.address.line1` (string, required)
          Address line 1, such as the street, PO Box, or company name.

        - `payment_details.lodging_data.host.address.postal_code` (string, required)
          ZIP or postal code.

        - `payment_details.lodging_data.host.address.line2` (string, optional)
          Address line 2, such as the apartment, suite, unit, or building.

        - `payment_details.lodging_data.host.address.state` (string, optional)
          State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).

      - `payment_details.lodging_data.host.country_of_domicile` (string, optional)
        Host’s country of domicile.

      - `payment_details.lodging_data.host.host_reference` (string, optional)
        Reference number for the host.

        The maximum length is 255 characters.

      - `payment_details.lodging_data.host.host_type` (enum, optional)
        Type of host.
Possible enum values:
        - `hostel`
          A hostel or shared accommodation facility.

        - `hotel`
          A hotel or hotel chain.

        - `owner`
          The property owner directly managing the rental.

        - `rental_agency`
          A rental agency managing the property.

      - `payment_details.lodging_data.host.name` (string, optional)
        Name of the lodging property or host.

        The maximum length is 255 characters.

      - `payment_details.lodging_data.host.number_of_reservations` (integer, optional)
        Total number of reservations for the host.

      - `payment_details.lodging_data.host.property_phone_number` (string, optional)
        Property phone number.

      - `payment_details.lodging_data.host.registered_at` (timestamp, optional)
        Host’s registration date.

    - `payment_details.lodging_data.insurances` (array of objects, optional)
      List of insurances for the lodging.

      - `payment_details.lodging_data.insurances.amount` (integer, required)
        Price of the insurance coverage in cents.

      - `payment_details.lodging_data.insurances.insurance_type` (enum, required)
        Type of insurance coverage.
Possible enum values:
        - `bankruptcy`
          Insurance covering losses due to provider bankruptcy.

        - `cancelation`
          Insurance covering cancellation.

        - `emergency`
          Insurance covering general emergency situations.

        - `medical`
          Insurance covering medical emergencies during the stay.

      - `payment_details.lodging_data.insurances.currency` (enum, optional)
        Currency of the insurance amount.

      - `payment_details.lodging_data.insurances.insurance_company_name` (string, optional)
        Name of the insurance company.

        The maximum length is 255 characters.

    - `payment_details.lodging_data.no_show_indicator` (boolean, optional)
      Whether the renter is a no-show.

    - `payment_details.lodging_data.renter_id_number` (string, optional)
      Renter ID number for the lodging.

      The maximum length is 25 characters.

    - `payment_details.lodging_data.renter_name` (string, optional)
      Renter name for the lodging.

      The maximum length is 198 characters.

  - `payment_details.order_reference` (string, optional)
    A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.

    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.
