Zum Hauptinhalt springen
POST
/
payment-methods
/
link
cURL
curl -X POST \
 /payment-methods/link \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{
    "customer": "ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b",
    "sendEmail": "1"
}'
{
  "link": "https://my.customerfront.app/self-service/payment-method-link/1234"
}

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

Body

The new PaymentMethod resource

customer
string
erforderlich

The customer id

Beispiel:

"ad8f1c2c-3b1c-4b0a-8b0a-0b0b0b0b0b0b"

allowedPaymentMethodTypes
enum<string>

The allowed payment method types. If none is provided, all available will be shown.

Verfügbare Optionen:
sepa_debit,
card,
paypal,
bank_transfer,
wallet
Beispiel:

"card"

sendEmail
boolean
Standard:true

Whether to send an email to the customer with the link.

Beispiel:

true

Antwort

The link to add a new payment method

The link to add a new payment method

Beispiel:

"https://my.customerfront.app/self-service/payment-method-link/1234"