Create payment profile
documentedCreate a payment profile for a client.
POST /api/v2/clients/{client_id}/payment_profilesPayment Profilesno implementation yet0 runsNo 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://{{$domain}}.clientary.com/api/v2/clients/{{$client_id}}/payment_profiles" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u "{{CLIENTARY_API_KEY}}:{{CLIENTARY_API_KEY}}" \
-d '{"stripe_payment_profile": {"stripe_customer_id": "{{$stripe_customer_id}}", "stripe_source_id": "{{$stripe_source_id}}", "last_four_digits": "{{$last_four_digits}}", "name": "{{$name}}", "expiration_date": "{{$expiration_date}}", "card_type": "{{$card_type}}", "address": "{{$address}}", "city": "{{$city}}", "zip": "{{$zip}}", "state": "{{$state}}", "country": "{{$country}}" } }'