Sign in

Set the default payment method for a customer

documented

Set the default payment method for a customer.

POST /api/v3/customer/{customer_id}/_action/setPayMethodCustomersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$base_url}}/api/v3/customer/{{$customer_id}}/_action/setPayMethod" \
  -X POST \
  -u "{{CHARGEOVER_API_KEY}}:{{CHARGEOVER_SECRET}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"creditcard_id": {{$creditcard_id}}, "paymethod": "{{$paymethod}}", "update_subscriptions_and_scheduled_invoices": {{$update_subscriptions_and_scheduled_invoices}}}'
Set the default payment method for a customer · chargeover · OpenIntegrations