Spreedly Payment Methods API

The payment_methods API from Spreedly — 12 operation(s) for payment_methods.

Operations 14

GET /payment_methods/events List all payment method events #
GET /payment_methods/events/{event_token} Show payment method event #
POST /payment_methods Create payment method #
GET /payment_methods List payment methods #
GET /payment_methods/{payment_method_token} Show payment method #
PUT /payment_methods/{payment_method_token} Update payment method #
PUT /payment_methods/{payment_method_token}/retain Retain payment method #
PUT /payment_methods/{payment_method_token}/redact Redact payment method #
PUT /payment_methods/{payment_method_token}/update_gratis Update gratis payment method #
GET /payment_methods/{payment_method_token}/transactions List transactions payment method #
DELETE /payment_methods/{payment_method_token}/metadata Delete metadata payment method #
POST /payment_methods/{payment_method_token}/recache Recache payment method #
GET /payment_methods/{payment_method_token}/events List events for a payment method #
POST /gateways/{gateway_token}/store Create a store transaction #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spreedly-payment-methods-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spreedly-payment-methods-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spreedly API V1 Payment Methods API
  version: v1
  description: An OpenAPI specification file for V1 of the Spreedly Core Transactional API
servers:
- url: https://core.spreedly.com/v1
tags:
- name: payment_methods
paths:
  /payment_methods/events:
    get:
      summary: List all payment method events
      tags:
      - payment_methods
      security:
      - basic_auth: []
      operationId: list-all-payment-method-events
      description: 'Retrieve an ordered and paginated list of all payment method events in the authenticated environment.


        Payment method events track important changes to payment methods such as creation, retention, redaction, and other lifecycle events. This endpoint allows you to retrieve these events with optional filtering and pagination.


        *Response Format*


        The response format varies by event type:

        - `AddPaymentMethod` events are returned as `transaction` objects with embedded payment method data

        - All other events are returned as `payment_method_event` objects

        '
      parameters:
      - name: order
        in: query
        description: The order of the returned list. Default is `asc`, which returns the oldest records first. To list newer records first, use `desc`.
        schema:
          type: string
      - name: since_token
        in: query
        description: The token of the item to start from (e.g., the last token received in the previous list if iterating through records)
        schema:
          type: string
      - name: event_type
        in: query
        description: Filter events by event type (e.g., AddPaymentMethod, RetainPaymentMethod, RedactPaymentMethod, ReplacePaymentMethod, UpdatePaymentMethod)
        schema:
          type: string
      - name: count
        in: query
        description: The number of events to return. By default returns 20, maximum allowed is 100.
        schema:
          type: string
      - name: include_transactions
        in: query
        description: Whether to include gateway transactions alongside events. Default is `false`. When `true`, returns a unified timeline of events and transactions sorted by creation time.
        schema:
          type: boolean
      responses:
        '200':
          description: successful
          content:
            List events:
              examples:
                application/json:
                  value:
                    payment_method_events:
                    - token: SxrP4mNRxF0CRQxKIbAQNTnPF0k
                      request_id: 86512117-dc11-4742-ad5a-91d64fb3e395
                      payment_method_key: Cq5kiRP6dXFVRjab
                      event_type: UpdatePaymentMethod
                      event_data:
                        changed_attributes:
                          eligible_for_card_updater: false
                      created_at: '2025-10-09T19:28:04Z'
                      state: succeeded
                      message: messages.transaction_succeeded
                    - token: 4W4TFJ8TJW9AJ92RFXR2JYJGB0
                      request_id: null
                      payment_method_key: Cq5kiRP6dXFVRjab
                      event_type: RedactPaymentMethod
                      event_data: null
                      created_at: '2025-10-09T19:28:04Z'
                      state: succeeded
                      message: null
                    - token: 0B9BK4CYRC9058XQ9TCJRP2NKK
                      created_at: '2025-10-09T19:28:04Z'
                      updated_at: '2025-10-09T19:28:04Z'
                      succeeded: true
                      transaction_type: AddPaymentMethod
                      retained: true
                      state: succeeded
                      message: null
                      payment_method:
                        token: Cq5kiRP6dXFVRjab
                        created_at: null
                        updated_at: null
                        email: test@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata: null
                        callback_url: null
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Gertrud
                        last_name: Gusikowski
                        month: 4
                        year: 2027
                        address1: 116 Main Street
                        address2: null
                        city: Durham
                        state: NC
                        zip: '27705'
                        country: US
                        phone_number: 123-456-7890
                        company: null
                        full_name: Gertrud Gusikowski
                        eligible_for_card_updater: true
                        shipping_address1: 116 Main Street
                        shipping_address2: null
                        shipping_city: Durham
                        shipping_state: NC
                        shipping_zip: '27705'
                        shipping_country: US
                        shipping_phone_number: 123-456-7890
                        issuer_identification_number: '41111111'
                        click_to_pay: null
                        managed: true
                        bin_metadata:
                          message: BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details.
                        subscribed_to_mastercard_abu: false
                        payment_method_type: credit_card
                        errors: []
                        fingerprint: null
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-1111
            List events with transactions:
              examples:
                application/json:
                  value:
                    payment_method_events:
                    - token: SxrP4mNRxF0CRQxKIbAQNTnPF0k
                      request_id: 86512117-dc11-4742-ad5a-91d64fb3e395
                      payment_method_key: Cq5kiRP6dXFVRjab
                      event_type: UpdatePaymentMethod
                      event_data:
                        changed_attributes:
                          eligible_for_card_updater: false
                      created_at: '2025-10-09T19:28:04Z'
                      state: succeeded
                      message: messages.transaction_succeeded
                    - token: 4W4TFJ8TJW9AJ92RFXR2JYJGB0
                      request_id: null
                      payment_method_key: Cq5kiRP6dXFVRjab
                      event_type: RedactPaymentMethod
                      event_data: null
                      created_at: '2025-10-09T19:28:04Z'
                      state: succeeded
                      message: null
                    - token: 0B9BK4CYRC9058XQ9TCJRP2NKK
                      created_at: '2025-10-09T19:28:04Z'
                      updated_at: '2025-10-09T19:28:04Z'
                      succeeded: true
                      transaction_type: AddPaymentMethod
                      retained: true
                      state: succeeded
                      message: null
                      payment_method:
                        token: Cq5kiRP6dXFVRjab
                        created_at: null
                        updated_at: null
                        email: test@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata: null
                        callback_url: null
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Gertrud
                        last_name: Gusikowski
                        month: 4
                        year: 2027
                        address1: 116 Main Street
                        address2: null
                        city: Durham
                        state: NC
                        zip: '27705'
                        country: US
                        phone_number: 123-456-7890
                        company: null
                        full_name: Gertrud Gusikowski
                        eligible_for_card_updater: true
                        shipping_address1: 116 Main Street
                        shipping_address2: null
                        shipping_city: Durham
                        shipping_state: NC
                        shipping_zip: '27705'
                        shipping_country: US
                        shipping_phone_number: 123-456-7890
                        issuer_identification_number: '41111111'
                        click_to_pay: null
                        managed: true
                        bin_metadata:
                          message: BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details.
                        subscribed_to_mastercard_abu: false
                        payment_method_type: credit_card
                        errors: []
                        fingerprint: null
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-1111
                    - on_test_gateway: false
                      created_at: '2025-10-09T19:28:04Z'
                      updated_at: '2025-10-09T19:28:04Z'
                      succeeded: false
                      state: created
                      token: 5usFkwA3Sy4lRTAgeIaQfKISwrZ
                      transaction_type: Purchase
                      order_id: null
                      ip: null
                      description: null
                      email: null
                      merchant_name_descriptor: null
                      merchant_location_descriptor: null
                      merchant_profile_key: null
                      gateway_specific_fields: {}
                      gateway_specific_response_fields: {}
                      gateway_transaction_id: null
                      sub_merchant_key: null
                      gateway_latency_ms: null
                      warning: null
                      application_id: null
                      risk_data: null
                      merchant_metadata: null
                      customer_data: null
                      order_data: null
                      workflow_key: null
                      protection_parameters: {}
                      amount: 4420
                      local_amount: null
                      currency_code: USD
                      retain_on_success: false
                      payment_method_added: false
                      smart_routed: false
                      stored_credential_initiator: null
                      stored_credential_reason_type: null
                      stored_credential_alternate_gateway: null
                      stored_credential_final_payment: false
                      message: null
                      gateway_token: 3SVHVZFXW69QDAY7K9PG8GBM2E
                      gateway_type: test
                      shipping_address:
                        name: null
                        address1: null
                        address2: null
                        city: null
                        state: null
                        zip: null
                        country: null
                        phone_number: null
                      api_urls:
                      - referencing_transaction: []
                      - failover_transaction: []
                      attempt_3dsecure: false
                      payment_method:
                        token: Cq5kiRP6dXFVRjab
                        created_at: null
                        updated_at: null
                        email: test@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata: null
                        callback_url: null
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Gertrud
                        last_name: Gusikowski
                        month: 4
                        year: 2027
                        address1: 116 Main Street
                        address2: null
                        city: Durham
                        state: NC
                        zip: '27705'
                        country: US
                        phone_number: 123-456-7890
                        company: null
                        full_name: Gertrud Gusikowski
                        eligible_for_card_updater: true
                        shipping_address1: 116 Main Street
                        shipping_address2: null
                        shipping_city: Durham
                        shipping_state: NC
                        shipping_zip: '27705'
                        shipping_country: US
                        shipping_phone_number: 123-456-7890
                        issuer_identification_number: '41111111'
                        click_to_pay: null
                        managed: true
                        bin_metadata:
                          message: BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details.
                        subscribed_to_mastercard_abu: false
                        payment_method_type: credit_card
                        errors: []
                        fingerprint: null
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-1111
            application/json:
              schema:
                $ref: '#/components/schemas/payment_method_events_response'
            application/xml:
              schema:
                $ref: '#/components/schemas/payment_method_events_response'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors'
            application/xml:
              schema:
                $ref: '#/components/schemas/errors'
  /payment_methods/events/{event_token}:
    parameters:
    - name: event_token
      in: path
      description: The token of the payment method event
      required: true
      schema:
        type: string
    get:
      summary: Show payment method event
      tags:
      - payment_methods
      security:
      - basic_auth: []
      operationId: show-payment-method-event
      description: 'Get a specific payment method event by its token.


        Payment method events contain detailed information about changes to payment methods, including the event type, associated payment method, event data, and timing information.


        *Response Format*


        The response format varies by event type:

        - `AddPaymentMethod` events are returned as `transaction` objects with embedded payment method data

        - All other events are returned as `payment_method_event` objects

        '
      responses:
        '200':
          description: successful
          content:
            Payment Method Event:
              examples:
                application/json:
                  value:
                    payment_method_event:
                      token: SxrP4mNRxF0CRQxKIbAQNTnPF0k
                      request_id: 86512117-dc11-4742-ad5a-91d64fb3e395
                      payment_method_key: Cq5kiRP6dXFVRjab
                      event_type: UpdatePaymentMethod
                      event_data:
                        changed_attributes:
                          eligible_for_card_updater: false
                      created_at: '2025-10-09T19:28:04Z'
                      state: succeeded
                      message: messages.transaction_succeeded
            AddPaymentMethod Event:
              examples:
                application/json:
                  value:
                    transaction:
                      token: 0B9BK4CYRC9058XQ9TCJRP2NKK
                      created_at: '2025-10-09T19:28:04Z'
                      updated_at: '2025-10-09T19:28:04Z'
                      succeeded: true
                      transaction_type: AddPaymentMethod
                      retained: true
                      state: succeeded
                      message: null
                      payment_method:
                        token: Cq5kiRP6dXFVRjab
                        created_at: null
                        updated_at: null
                        email: test@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata: null
                        callback_url: null
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Gertrud
                        last_name: Gusikowski
                        month: 4
                        year: 2027
                        address1: 116 Main Street
                        address2: null
                        city: Durham
                        state: NC
                        zip: '27705'
                        country: US
                        phone_number: 123-456-7890
                        company: null
                        full_name: Gertrud Gusikowski
                        eligible_for_card_updater: true
                        shipping_address1: 116 Main Street
                        shipping_address2: null
                        shipping_city: Durham
                        shipping_state: NC
                        shipping_zip: '27705'
                        shipping_country: US
                        shipping_phone_number: 123-456-7890
                        issuer_identification_number: '41111111'
                        click_to_pay: null
                        managed: true
                        bin_metadata:
                          message: BIN Metadata is available only to Advanced Vault enrolled customers and payment methods. Reach out to your account representative for more details.
                        subscribed_to_mastercard_abu: false
                        payment_method_type: credit_card
                        errors: []
                        fingerprint: null
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-1111
            application/json:
              schema:
                $ref: '#/components/schemas/payment_method_event_response'
            application/xml:
              schema:
                $ref: '#/components/schemas/payment_method_event_response'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors'
            application/xml:
              schema:
                $ref: '#/components/schemas/errors'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors'
            application/xml:
              schema:
                $ref: '#/components/schemas/errors'
  /payment_methods:
    post:
      summary: Create payment method
      tags:
      - payment_methods
      security:
      - basic_auth: []
      operationId: create-payment-method
      description: 'Add a payment method (credit card, bank account/ACH, Apple Pay, Google Pay, or third party token) to the authenticated environment''s vault.


        To create a test payment method, use one of the [test card numbers](https://developer.spreedly.com/docs/test-data). For more information see the [Spreedly testing guide](https://developer.spreedly.com/docs/testing).


        Third party tokens are payment methods stored in the Spreedly vault, that are a reference to another payment method stored at the gateway''s vault. For more information see the [third party token guide](https://developer.spreedly.com/docs/third-party-vaulting).

        '
      parameters: []
      responses:
        '201':
          description: Created
          content:
            Network Token Provisioned:
              examples:
                application/json:
                  value:
                    transaction:
                      token: AXKchwDYMqAmDqDhxCSaEqiHBk0
                      created_at: '2022-04-14T18:15:18Z'
                      updated_at: '2022-04-14T18:15:18Z'
                      succeeded: true
                      transaction_type: AddPaymentMethod
                      retained: false
                      state: succeeded
                      message_key: messages.transaction_succeeded
                      message: Succeeded!
                      payment_method:
                        token: PTp0nIk2NcqxaTlgsx3Esz2JSAN
                        created_at: '2022-04-14T18:15:18Z'
                        updated_at: '2022-04-14T18:15:18Z'
                        email: joey@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        callback_url: null
                        last_four_digits: '4444'
                        first_six_digits: '555555'
                        card_type: master
                        first_name: Joe
                        last_name: Jones
                        month: 3
                        year: 2029
                        address1: 33 Lane Road
                        address2: Apartment 4
                        city: Wanaque
                        state: NJ
                        zip: '31331'
                        country: US
                        phone_number: 919.331.3313
                        company: Acme Inc.
                        full_name: Joe Jones
                        eligible_for_card_updater: true
                        shipping_address1: 33 Lane Road
                        shipping_address2: Apartment 4
                        shipping_city: Wanaque
                        shipping_state: NJ
                        shipping_zip: '31331'
                        shipping_country: US
                        shipping_phone_number: 919.331.3313
                        issuer_identification_number: '55555555'
                        payment_method_type: credit_card
                        bin_metadata:
                          card_brand: DISCOVER
                          card_category: PERSONAL
                          card_type: CREDIT
                          issuing_bank: DISCOVER BANK
                          issuing_country_iso_number: '840'
                          issuing_country_iso_a2_code: US
                          issuing_country_iso_a3_code: USA
                          issuing_country_iso_name: UNITED STATES
                          issuing_bank_phone_number: 1 (800) 347-7000
                          issuing_bank_website: HTTPS://WWW.DISCOVER.COM/
                          bin_type: PERSONAL
                          regulated: Y
                          max_pan_length: 19
                          message: Successful
                        errors: []
                        fingerprint: b5fe350d5135ab64a8f3c1097fadefd9effb
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-4444
                      network_tokenization:
                        provisioned: true
                        token_status: active
                        token_reference: DWSP01234567890ABCDEF0123456789AB
                        token_first_six_digits: '411111'
                        token_last_four_digits: '1234'
                        token_created_at: '2024-01-15T10:30:00Z'
                        token_updated_at: '2024-01-15T10:30:00Z'
                application/xml:
                  value: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n  <token>AXKchwDYMqAmDqDhxCSaEqiHBk0</token>\n  <created-at>2022-04-14T18:15:18Z</created-at>\n  <updated-at>2022-04-14T18:15:18Z</updated-at>\n  <succeeded type=\"boolean\">true</succeeded>\n  <transaction-type>AddPaymentMethod</transaction-type>\n  <retained type=\"boolean\">false</retained>\n  <state>succeeded</state>\n  <message-key>messages.transaction_succeeded</message-key>\n  <message>Succeeded!</message>\n  <payment-method>\n    <token>PTp0nIk2NcqxaTlgsx3Esz2JSAN</token>\n    <created-at>2022-04-14T18:15:18Z</created-at>\n    <updated-at>2022-04-14T18:15:18Z</updated-at>\n    <email>joey@example.com</email>\n    <data nil=\"true\"/>\n    <storage-state>cached</storage-state>\n    <test type=\"boolean\">true</test>\n    <metadata>\n      <key>string value</key>\n      <another-key type=\"integer\">123</another-key>\n      <final-key type=\"boolean\">true</final-key>\n    </metadata>\n    <callback-url nil=\"true\"/>\n    <last-four-digits>4444</last-four-digits>\n    <first-six-digits>555555</first-six-digits>\n    <card-type>master</card-type>\n    <first-name>Joe</first-name>\n    <last-name>Jones</last-name>\n    <month type=\"integer\">3</month>\n    <year type=\"integer\">2029</year>\n    <address1>33 Lane Road</address1>\n    <address2>Apartment 4</address2>\n    <city>Wanaque</city>\n    <state>NJ</state>\n    <zip>31331</zip>\n    <country>US</country>\n    <phone-number>919.331.3313</phone-number>\n    <company>Acme Inc.</company>\n    <full-name>Joe Jones</full-name>\n    <eligible-for-card-updater type=\"boolean\">true</eligible-for-card-updater>\n    <shipping-address1>33 Lane Road</shipping-address1>\n    <shipping-address2>Apartment 4</shipping-address2>\n    <shipping-city>Wanaque</shipping-city>\n    <shipping-state>NJ</shipping-state>\n    <shipping-zip>31331</shipping-zip>\n    <shipping-country>US</shipping-country>\n    <shipping-phone-number>919.331.3313</shipping-phone-number>\n    <issuer-identification-number>55555555</issuer-identification-number>\n    <payment-method-type>credit_card</payment-method-type>\n    <bin-metadata>\n      <card-brand>DISCOVER</card-brand>\n      <card-category>PERSONAL</card-category>\n      <card-type>CREDIT</card-type>\n      <issuing-bank>DISCOVER BANK</issuing-bank>\n      <issuing-country-iso-number>840</issuing-country-iso-number>\n      <issuing-country-iso-a2-code>US</issuing-country-iso-a2-code>\n      <issuing-country-iso-a3-code>USA</issuing-country-iso-a3-code>\n      <issuing-country-iso-name>UNITED STATES</issuing-country-iso-name>\n      <issuing-bank-phone-number>1 (800) 347-7000</issuing-bank-phone-number>\n      <issuing-bank-website>HTTPS://WWW.DISCOVER.COM/</issuing-bank-website>\n      <bin-type>PERSONAL</bin-type>\n      <regulated>Y</regulated>\n      <max-pan-length type=\"integer\">19</max-pan-length>\n      <message>Successful</message>\n    </bin-metadata>\n    <errors type=\"array\"/>\n    <fingerprint>b5fe350d5135ab64a8f3c1097fadefd9effb</fingerprint>\n    <verification-value>XXX</verification-value>\n    <number>XXXX-XXXX-XXXX-4444</number>\n  </payment-method>\n  <network-tokenization>\n    <provisioned type=\"boolean\">true</provisioned>\n    <token-status>active</token-status>\n    <token-reference>DWSP01234567890ABCDEF0123456789AB</token-reference>\n    <token-first-six-digits>411111</token-first-six-digits>\n    <token-last-four-digits>1234</token-last-four-digits>\n    <token-created-at>2024-01-15T10:30:00Z</token-created-at>\n    <token-updated-at>2024-01-15T10:30:00Z</token-updated-at>\n  </network-tokenization>\n</transaction>\n"
            Network Token Provision Failed:
              examples:
                application/json:
                  value:
                    transaction:
                      token: AXKchwDYMqAmDqDhxCSaEqiHBk0
                      created_at: '2022-04-14T18:15:18Z'
                      updated_at: '2022-04-14T18:15:18Z'
                      succeeded: true
                      transaction_type: AddPaymentMethod
                      retained: false
                      state: succeeded
                      message_key: messages.transaction_succeeded
                      message: Succeeded!
                      payment_method:
                        token: PTp0nIk2NcqxaTlgsx3Esz2JSAN
                        created_at: '2022-04-14T18:15:18Z'
                        updated_at: '2022-04-14T18:15:18Z'
                        email: joey@example.com
                        data: null
                        storage_state: cached
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        callback_url: null
                        last_four_digits: '4444'
                        first_six_digits: '555555'
                        card_type: master
                        first_name: Joe
                        last_name: Jones
                        month: 3
                        year: 2029
                        address1: 33 Lane Road
                        address2: Apartment 4
                        city: Wanaque
                        state: NJ
                        zip: '31331'
                        country: US
                        phone_number: 919.331.3313
                        company: Acme Inc.
                        full_name: Joe Jones
                        eligible_for_card_updater: true
                        shipping_address1: 33 Lane Road
                        shipping_address2: Apartment 4
                        shipping_city: Wanaque
                        shipping_state: NJ
                        shipping_zip: '31331'
                        shipping_country: US
                        shipping_phone_number: 919.331.3313
                        issuer_identification_number: '55555555'
                        payment_method_type: credit_card
                        bin_metadata:
                          card_brand: DISCOVER
                          card_category: PERSONAL
                          card_type: CREDIT
                          issuing_bank: DISCOVER BANK
                          issuing_country_iso_number: '840'
                          issuing_country_iso_a2_code: US
                          issuing_country_iso_a3_code: USA
                          issuing_country_iso_name: UNITED STATES
                          issuing_bank_phone_number: 1 (800) 347-7000
                          issuing_bank_website: HTTPS://WWW.DISCOVER.COM/
                          bin_type: PERSONAL
                          regulated: Y
                          max_pan_length: 19
                          message: Successful
                        errors: []
                        fingerprint: b5fe350d5135ab64a8f3c1097fadefd9effb
                        verification_value: XXX
                        number: XXXX-XXXX-XXXX-4444
                      network_tokenization:
                        provisioned: false
                        token_status: null
                        errors:
                        - key: invalidParameter
                          message: Your request does not have valid set of parameters required to process the business function.
                          action: provision_network_token
                application/xml:
                  value: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n  <token>AXKchwDYMqAmDqDhxCSaEqiHBk0</token>\n  <created-at>2022-04-14T18:15:18Z</created-at>\n  <updated-at>2022-04-14T18:15:18Z</updated-at>\n  <succeeded type=\"boolean\">true</succeeded>\n  <transaction-type>AddPaymentMethod</transaction-type>\n  <retained type=\"boolean\">false</retained>\n  <state>succeeded</state>\n  <message-key>messages.transaction_succeeded</message-key>\n  <message>Succeeded!</message>\n  <payment-method>\n    <token>PTp0nIk2NcqxaTlgsx3Esz2JSAN</token>\n    <created-at>2022-04-14T18:15:18Z</created-at>\n    <updated-at>2

# --- truncated at 32 KB (160 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/spreedly/refs/heads/main/openapi/spreedly-payment-methods-api-openapi.yml