v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBCustomer
Create a payment method setup request for a customer
Creates a pending setup request that allows a customer to securely save a payment method. Returns a setup request id to pass as setupId to the InflowPay iframe SDK. The SDK handles card collection, tokenization, and 3DS authentication in subsequent steps. The request status advances from pending to completed (or failed) asynchronously once the card is confirmed.
post/api/customer/{customerEmail}/payment-methods
Path parameters
customerEmailstring required
Example:customer@example.com
Email address of the customer
Request body
Example request
{
"card": {
"number": "4242424242424242",
"expiration_month": 12,
"expiration_year": 2025,
"cvc": "123"
}
}Response
Setup request created successfully. Use the returned id as setupId in the iframe SDK.
Example response
{
"id": "setup_pm_req_abc123",
"customerId": "cus_xyz789",
"customerEmail": "customer@example.com",
"status": "pending",
"currency": "EUR"
}