curl --request POST \
--url https://sbx.api.easybilling.cloud/billing/api/payment-methods/account \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'trace-id: <trace-id>' \
--data '
{
"paymentGatewayType": "stripe-connect",
"redirectUrl": "https://example.com/payment/success",
"cancelUrl": "https://example.com/payment/cancel"
}
'"<string>"customer portal
Preset payment method by account
Presets a payment method for a customer on the selected payment gateway and returns the gateway-hosted setup page URL.
The request body is polymorphic and is selected by paymentGatewayType.
POST
/
api
/
payment-methods
/
account
curl --request POST \
--url https://sbx.api.easybilling.cloud/billing/api/payment-methods/account \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'trace-id: <trace-id>' \
--data '
{
"paymentGatewayType": "stripe-connect",
"redirectUrl": "https://example.com/payment/success",
"cancelUrl": "https://example.com/payment/cancel"
}
'"<string>"Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
application/json
Response
Success; returns the payment method setup page URL
Gateway-provided redirect URL to the setup page
