curl --request GET \
--url https://api.withflex.com/v1/customers/{id}/payment_methods/{pm_id} \
--header 'Authorization: Bearer <token>'{
"payment_method": {
"payment_method_id": "<string>",
"billing_details": {
"email": 123,
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"name": "<string>",
"phone": "<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": {}
},
"card": {
"last4": "<string>"
},
"created_at": "<string>",
"test_mode": true,
"off_session": true,
"metadata": {}
}
}Get a single payment method
curl --request GET \
--url https://api.withflex.com/v1/customers/{id}/payment_methods/{pm_id} \
--header 'Authorization: Bearer <token>'{
"payment_method": {
"payment_method_id": "<string>",
"billing_details": {
"email": 123,
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"name": "<string>",
"phone": "<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": {}
},
"card": {
"last4": "<string>"
},
"created_at": "<string>",
"test_mode": true,
"off_session": true,
"metadata": {}
}
}Use a Bearer token to access this API.
Show child attributes
The ID of the PaymentMethod.
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
Show child attributes
Show child attributes
The id of the customer to which this payment method is attached. This is only populated if the PaymentMethod is attached to a Customer.
Show child attributes
The unique identifier for the customer.
"fcus_01HACM7FZ1084XB1GB6053VM0D"
The customer's first name.
"John"
The customer's last name.
"Doe"
The customer's email address.
The time the customer was created.
Whether the customer was created in test mode.
The customer's phone number.
"+15555555555"
The customer's employer.
"Flex"
The customer's shipping address.
Show child attributes
Time at which the object was created. ISO 8601 format.
Whether this PaymentMethod is in test mode.
Whether this PaymentMethod is valid for off_session (customer not present) purchase flows.