Skip to main content
GET
/
v1
/
payment_intents
/
{id}
Get Payment Intent
curl --request GET \
  --url https://api.withflex.com/v1/payment_intents/{id} \
  --header 'Authorization: Bearer <token>'
{
  "payment_intent": {
    "payment_intent_id": "obj_01EXAMPLE00000000000000000",
    "amount": 0,
    "amount_capturable": 0,
    "amount_received": 0,
    "transfer_data": {},
    "status": "canceled",
    "created_at": "2024-01-01T00:00:00Z",
    "capture_method": "automatic",
    "metadata": {},
    "test_mode": false,
    "transfer_group": "string",
    "payment_card_type": "primary",
    "last_payment_error": {}
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Query Parameters

expand
string
default:""

Comma-separated list of related objects to expand in the response.

Example:

""

expand_customer
boolean | null

If true, expands the customer object in the response.

Example:

false

Response

Success

payment_intent
object
required
Example:
{
"payment_intent_id": "obj_01EXAMPLE00000000000000000",
"amount": 0,
"amount_capturable": 0,
"amount_received": 0,
"customer": "string",
"transfer_data": { "amount": 0, "destination": "string" },
"status": "canceled",
"latest_charge": "string",
"created_at": "2024-01-01T00:00:00Z",
"invoice": "string",
"capture_method": "automatic",
"metadata": {},
"payment_method": "string",
"test_mode": false,
"transfer_group": "string",
"payment_card_type": "primary",
"last_payment_error": { "type": "string" }
}