cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/customers/{id}/payment-integrations \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.customers.list_customer_payment_integrations(id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.customers.listCustomerPaymentIntegrations("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Customers.ListCustomerPaymentIntegrations(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.IntegrationsResponse != nil {
// handle response
}
}{
"payment_integrations": [
{
"capabilities": [
{
"add_payment_method_options": {
"payment_method_types": [
"<string>"
],
"sets_default": true
},
"type": "checkout"
}
],
"provider": "stripe"
}
]
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Customers
List customer payment integrations
Use to learn which connected gateways can serve this customer and what each can do: check out, auto-charge, list methods, add a method (with the method types it sets up, e.g. enach for Razorpay), set a default.
GET
/
customers
/
{id}
/
payment-integrations
cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/customers/{id}/payment-integrations \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.customers.list_customer_payment_integrations(id="<id>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.customers.listCustomerPaymentIntegrations("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Customers.ListCustomerPaymentIntegrations(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.IntegrationsResponse != nil {
// handle response
}
}{
"payment_integrations": [
{
"capabilities": [
{
"add_payment_method_options": {
"payment_method_types": [
"<string>"
],
"sets_default": true
},
"type": "checkout"
}
],
"provider": "stripe"
}
]
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}
