Sign in

Create credit card

documented

Create (tokenize) a credit card and vault it in Spreedly.

POST /v1/payment_methods.{format}Payment Methodsno 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://core.spreedly.com/v1/payment_methods.json" \
  -u "{{SPREEDLY_API_KEY}}:{{SPREEDLY_API_SECRET}}" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"payment_method": {"gateway_token": "{{$gateway_token}}", "first_name": "{{$first_name}}", "last_name": "{{$last_name}}", "number": "{{$number}}", "month": "{{$month}}", "year": "{{$year}}", "verification_value": "{{$cvv}}", "email": "{{$email}}", "billing_address": {"address1": "{{$address1}}", "city": "{{$city}}", "state": "{{$state}}", "postal_code": "{{$postal_code}}", "country": "{{$country}}"}}}' privacy_status=public"
Create credit card · Spreedly · OpenIntegrations