Redact payment method
documentedRedact (strip sensitive data) and deactivate a vaulted payment method.
PUT /v1/payment_methods/{payment_method_token}/redact.{format}Payment Methodsno 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://core.spreedly.com/v1/payment_methods/{{$payment_method_token}}/redact.json" \
-X PUT \
-H "Authorization: Basic {{SPREEDLY_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{\"transaction\": {\"remove_from_gateway\": "{{$gateway_token}}", \"remove_personal_data\": {{$remove_personal_data}}}}' \
# Sources: \
# - Redact payment method API Reference: https://docs.spreedly.com/reference/api/v1/payment_methods/redact/ \
# - Spreedly API Reference: https://docs.spreedly.com/reference/api/v1/"