Skip to main content
GET
/
v1
/
payment_intents
List Payment Intents
curl --request GET \
  --url https://api.withflex.com/v1/payment_intents \
  --header 'Authorization: Bearer <token>'
{
  "payment_intents": [
    {
      "payment_intent_id": "<string>",
      "amount": 123,
      "status": "canceled",
      "created_at": "<string>",
      "capture_method": "automatic",
      "test_mode": true,
      "amount_capturable": 123,
      "amount_received": 123,
      "application_fee_amount": 123,
      "customer": {
        "customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
        "first_name": "John",
        "last_name": "Doe",
        "email": "[email protected]",
        "created_at": "<string>",
        "test_mode": true,
        "phone": "+15555555555",
        "employer": "Flex",
        "shipping": {
          "shipping_address_id": "<string>",
          "line1": "<string>",
          "line2": "<string>",
          "city": "<string>",
          "state": "<string>",
          "postal_code": "<string>",
          "country": "<string>"
        },
        "metadata": {}
      },
      "transfer_data": {
        "destination": "<string>",
        "amount": 123
      },
      "latest_charge": "<string>",
      "invoice": {
        "invoice_id": "<string>",
        "total": 123,
        "amount_due": 123,
        "amount_paid": 123,
        "status": "draft",
        "collection_method": "charge_automatically",
        "test_mode": true,
        "payment_intent": {},
        "charge": "<string>",
        "customer": {
          "customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
          "first_name": "John",
          "last_name": "Doe",
          "email": "[email protected]",
          "created_at": "<string>",
          "test_mode": true,
          "phone": "+15555555555",
          "employer": "Flex",
          "shipping": {
            "shipping_address_id": "<string>",
            "line1": "<string>",
            "line2": "<string>",
            "city": "<string>",
            "state": "<string>",
            "postal_code": "<string>",
            "country": "<string>"
          },
          "metadata": {}
        },
        "period_end": "<string>",
        "period_start": "<string>",
        "subscription": {
          "subscription_id": "<string>",
          "created_at": "<string>",
          "items": [
            {
              "subscription_item_id": "<string>",
              "price": {
                "price_id": "<string>",
                "unit_amount": 123,
                "active": true,
                "product": {
                  "product_id": "<string>",
                  "name": "<string>",
                  "created_at": "<string>",
                  "active": true,
                  "hsa_fsa_eligibility": "not_eligible",
                  "test_mode": true,
                  "description": "<string>",
                  "visit_type": "cbtSleep",
                  "upc_code": "<string>",
                  "gtin": "<string>",
                  "reference_gtin": "<string>",
                  "eligibility_rationale": "<string>",
                  "metadata": {},
                  "url": "<string>"
                },
                "created_at": "<string>",
                "type": "one_time",
                "test_mode": true,
                "description": "<string>",
                "trial_period_days": 123,
                "recurring": {
                  "interval": "daily",
                  "interval_count": 1,
                  "trial_period_days": 1
                },
                "metadata": {},
                "hsa_fsa_eligibility": "not_eligible"
              },
              "quantity": 123,
              "created_at": "<string>",
              "test_mode": true,
              "updated_at": "<string>"
            }
          ],
          "status": "incomplete",
          "cancel_at_period_end": true,
          "test_mode": true,
          "latest_invoice": "<unknown>",
          "customer": {
            "customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
            "first_name": "John",
            "last_name": "Doe",
            "email": "[email protected]",
            "created_at": "<string>",
            "test_mode": true,
            "phone": "+15555555555",
            "employer": "Flex",
            "shipping": {
              "shipping_address_id": "<string>",
              "line1": "<string>",
              "line2": "<string>",
              "city": "<string>",
              "state": "<string>",
              "postal_code": "<string>",
              "country": "<string>"
            },
            "metadata": {}
          },
          "current_period_end": "<string>",
          "current_period_start": "<string>",
          "metadata": {},
          "client_secret": {
            "setup_secret": "<string>",
            "payment_secret": "<string>"
          },
          "proration_behavior": "always_invoice",
          "trial_start": "<string>",
          "trial_end": "<string>",
          "cancel_at": "<string>"
        },
        "metadata": {}
      },
      "client_secret": "<string>",
      "metadata": {},
      "payment_method": "<string>",
      "transfer_group": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Query Parameters

expand
string
default:""
expand_customer
boolean | null
interval
integer<uint32> | null
Required range: x >= 0
customer
string | null
checkout_session
string | null
starting_after
string | null
ending_before
string | null
limit
integer<int32> | null

Response

payment_intents
object[]
required