code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.PaymentIntent.increment_authorization(
    "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
    amount=2099,
  )
  '''Response {
    "id": "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
    "object": "payment_intent",
    "amount": 2099,
    "amount_capturable": 2099,
    "amount_details": {
      "tip": {}
    },
    "amount_received": 0,
    "application": null,
    "application_fee_amount": null,
    "automatic_payment_methods": null,
    "canceled_at": null,
    "cancellation_reason": null,
    "capture_method": "manual",
    "charges": {
      "object": "list",
      "data": [
        {
          "id": "ch_1LQofM2eZvKYlo2CKgxFvg40",
          "object": "charge",
          "amount": 2099,
          "amount_captured": 0,
          "amount_refunded": 0,
          "application": null,
          "application_fee": null,
          "application_fee_amount": null,
          "balance_transaction": null,
          "billing_details": {
            "address": {
              "city": null,
              "country": null,
              "line1": null,
              "line2": null,
              "postal_code": null,
              "state": null
            },
            "email": null,
            "name": null,
            "phone": null
          },
          "calculated_statement_descriptor": "Stripe",
          "captured": false,
          "created": 1659083728,
          "currency": "usd",
          "customer": null,
          "description": null,
          "disputed": false,
          "failure_balance_transaction": null,
          "failure_code": null,
          "failure_message": null,
          "fraud_details": {},
          "invoice": null,
          "livemode": false,
          "metadata": {},
          "on_behalf_of": null,
          "outcome": {
            "network_status": "approved_by_network",
            "reason": null,
            "risk_level": "normal",
            "risk_score": 53,
            "seller_message": "Payment complete.",
            "type": "authorized"
          },
          "paid": true,
          "payment_intent": "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
          "payment_method": "pm_1LQofM2eZvKYlo2CDKpp5V1E",
          "payment_method_details": {
            "card": {
              "brand": "visa",
              "checks": {
                "address_line1_check": null,
                "address_postal_code_check": null,
                "cvc_check": null
              },
              "country": "US",
              "exp_month": 7,
              "exp_year": 2023,
              "fingerprint": "Xt5EWLLDS7FJjR1c",
              "funding": "credit",
              "installments": null,
              "last4": "4242",
              "mandate": null,
              "moto": null,
              "network": "visa",
              "three_d_secure": null,
              "wallet": null
            },
            "type": "card"
          },
          "receipt_email": null,
          "receipt_number": "1321-6658",
          "receipt_url": "https://pay.stripe.com/receipts/acct_1032D82eZvKYlo2C/ch_1LQofM2eZvKYlo2CKgxFvg40/rcpt_M96tVsYMmZVExwoyyEw51Cln34nlzH6",
          "redaction": null,
          "refunded": false,
          "refunds": {
            "object": "list",
            "data": [],
            "has_more": false,
            "url": "/v1/charges/ch_1LQofM2eZvKYlo2CKgxFvg40/refunds"
          },
          "review": null,
          "shipping": null,
          "source_transfer": null,
          "statement_descriptor": null,
          "statement_descriptor_suffix": null,
          "status": "succeeded",
          "transfer_data": null,
          "transfer_group": null
        }
      ],
      "has_more": false,
      "url": "/v1/charges?payment_intent=pi_1DrPsv2eZvKYlo2CEDzqXfPH"
    },
    "client_secret": "pi_1DrPsv2eZvKYlo2CEDzqXfPH_secret_zVkO2HUjRQVu1Ga3OTF37eqbA",
    "confirmation_method": "automatic",
    "created": 1547209773,
    "currency": "usd",
    "customer": null,
    "description": null,
    "invoice": null,
    "last_payment_error": null,
    "livemode": false,
    "metadata": {},
    "next_action": null,
    "on_behalf_of": null,
    "payment_method": "pm_1LQofM2eZvKYlo2CDKpp5V1E",
    "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": "requires_capture",
    "transfer_data": null,
    "transfer_group": null
  }'''
nl: Increment an authorizationTerminal onlyPerform an incremental authorization on an eligible
  PaymentIntent. To be eligible, the
  PaymentIntent’s status must be requires_capture and
  incremental_authorization_supported
  must be true.
  Incremental authorizations attempt to increase the authorized amount on
  your customer’s card to the new, higher amount provided. As with the
  initial authorization, incremental authorizations may be declined. A
  single PaymentIntent can call this endpoint multiple times to further
  increase the authorized amount.
  If the incremental authorization succeeds, the PaymentIntent object is
  returned with the updated
  amount.
  If the incremental authorization fails,  a
  card_declined error is returned, and no
  fields on the PaymentIntent or Charge are updated. The PaymentIntent
  object remains capturable for the previously authorized amount.
  Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
  Once captured, a PaymentIntent can no longer be incremented.
  Learn more about incremental authorizations.Parameters amount required The updated total amount you intend to collect from the cardholder. This amount must be greater than the currently authorized amount. description optional An arbitrary string attached to the object. Often useful for displaying to users. metadata optional dictionary 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 parametersExpand all  application_fee_amount optional Connect only   transfer_data optional dictionary Connect only ReturnsReturns a PaymentIntent object with the updated amount if the incremental authorization succeeded. Returns an error if the incremental authorization failed or the PaymentIntent isn’t eligible for incremental authorizations