Spreedly Purchase API

The purchase API from Spreedly — 2 operation(s) for purchase.

Operations 2

POST /gateways/{gateway_token}/purchase Create a purchase transaction #
POST /transactions/{transaction_token}/purchase Create a purchase transaction via reference #

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-purchase-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-purchase-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spreedly API V1 Purchase 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: purchase
paths:
  /gateways/{gateway_token}/purchase:
    post:
      summary: Create a purchase transaction
      tags:
      - purchase
      security:
      - basic_auth: []
      operationId: purchase
      description: 'Charge a payment method a specific amount at the target gateway. One of the following payment methods must be included in the request:


        **Tokenized payment method:** Charge a _tokenized_ payment method (already stored in the Spreedly environment) the specified amount. The payment method can be of any type (credit card, bank account, Apple Pay, etc…), as long as it exists in the specified environment.


        The `payment_method_token` field of the transaction request is required.


        **Pass-in credit card:** Pass a credit card payment method directly in to the purchase request. If the card is valid, it will automatically be tokenized at Spreedly before sending to the gateway.


        The `credit_card` field of the transaction request is required.


        **Pass-in bank account/ACH:** Pass a bank account/ACH payment method directly in to the purchase request. If the bank account is valid, it will automatically be tokenized at Spreedly before sending to the gateway.


        The `bank_account` field of the transaction request is required.


        **Pass-in Apple Pay:** Pass an Apple Pay payment method directly in to the purchase request. If the Apple Pay data is valid, it will automatically be tokenized at Spreedly before sending to the gateway.


        The `apple_pay` field of the transaction request is required.


        **Pass-in Google Pay:** Pass a Google Pay payment method directly in to the purchase request. If the Google Pay data is valid, it will automatically be tokenized at Spreedly before sending to the gateway.


        The `google_pay` field of the transaction request is required.


        **SCA Authenticated:** Charge an SCA Authenticated payment method (already stored in the Spreedly environment) the specified amount.


        The `sca_authentication_token` field of the transaction request is required.

        '
      parameters:
      - $ref: '#/components/parameters/gateway_token'
      responses:
        '200':
          description: Created
          content:
            Network Token Provisioned:
              examples:
                application/json:
                  value:
                    transaction:
                      token: 3iUAv9hUqP7x0bMxVtQKXlayFx0
                      succeeded: true
                      message: Succeeded!
                      gateway_transaction_id: '63'
                      retain_on_success: false
                      payment_method_added: false
                      response:
                        success: true
                        message: Successful purchase
                        avs_code: null
                        avs_message: null
                        cvv_code: null
                        cvv_message: null
                        pending: false
                        result_unknown: false
                        error_code: null
                        error_detail: null
                        cancelled: false
                        fraud_review: null
                        created_at: '2018-11-07T15:05:08Z'
                        updated_at: '2018-11-07T15:05:08Z'
                      payment_method:
                        token: 1rpKvP8zOUhj4Y9EDrIoIYQzzD5
                        created_at: '2017-06-26T17:04:38Z'
                        updated_at: '2018-11-07T15:05:07Z'
                        email: joey@example.com
                        data:
                          my_payment_method_identifier: '448'
                          extra_stuff:
                            some_other_things: Can be anything really
                        storage_state: retained
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Newfirst
                        last_name: Newlast
                        month: 3
                        year: 2032
                        address1: null
                        address2: null
                        city: null
                        state: null
                        zip: null
                        country: null
                        phone_number: null
                        company: null
                        full_name: Newfirst Newlast
                        eligible_for_card_updater: null
                        shipping_address1: null
                        shipping_address2: null
                        shipping_city: null
                        shipping_state: null
                        shipping_zip: null
                        shipping_country: null
                        shipping_phone_number: null
                        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: e3cef43464fc832f6e04f187df25af497994
                        verification_value: ''
                        number: XXXX-XXXX-XXXX-1111
                      sub_merchant_key: null
                      gateway_specific_response_fields: {}
                      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>3iUAv9hUqP7x0bMxVtQKXlayFx0</token>\n  <succeeded type=\"boolean\">true</succeeded>\n  <message>Succeeded!</message>\n  <gateway-transaction-id>63</gateway-transaction-id>\n  <retain-on-success type=\"boolean\">false</retain-on-success>\n  <payment-method-added type=\"boolean\">false</payment-method-added>\n  <response>\n    <success type=\"boolean\">true</success>\n    <message>Successful purchase</message>\n    <avs-code nil=\"true\"/>\n    <avs-message nil=\"true\"/>\n    <cvv-code nil=\"true\"/>\n    <cvv-message nil=\"true\"/>\n    <pending type=\"boolean\">false</pending>\n    <result-unknown type=\"boolean\">false</result-unknown>\n    <error-code nil=\"true\"/>\n    <error-detail nil=\"true\"/>\n    <cancelled type=\"boolean\">false</cancelled>\n    <fraud-review nil=\"true\"/>\n    <created-at>2018-11-07T15:05:08Z</created-at>\n    <updated-at>2018-11-07T15:05:08Z</updated-at>\n  </response>\n  <payment-method>\n    <token>1rpKvP8zOUhj4Y9EDrIoIYQzzD5</token>\n    <created-at>2017-06-26T17:04:38Z</created-at>\n    <updated-at>2018-11-07T15:05:07Z</updated-at>\n    <email>joey@example.com</email>\n    <data>\n      <my-payment-method-identifier>448</my-payment-method-identifier>\n      <extra-stuff>\n        <some-other-things>Can be anything really</some-other-things>\n      </extra-stuff>\n    </data>\n    <storage-state>retained</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    <last-four-digits>1111</last-four-digits>\n    <first-six-digits>411111</first-six-digits>\n    <card-type>visa</card-type>\n    <first-name>Newfirst</first-name>\n    <last-name>Newlast</last-name>\n    <month type=\"integer\">3</month>\n    <year type=\"integer\">2032</year>\n    <address1 nil=\"true\"/>\n    <address2 nil=\"true\"/>\n    <city nil=\"true\"/>\n    <state nil=\"true\"/>\n    <zip nil=\"true\"/>\n    <country nil=\"true\"/>\n    <phone-number nil=\"true\"/>\n    <company nil=\"true\"/>\n    <full-name>Newfirst Newlast</full-name>\n    <eligible-for-card-updater nil=\"true\"/>\n    <shipping-address1 nil=\"true\"/>\n    <shipping-address2 nil=\"true\"/>\n    <shipping-city nil=\"true\"/>\n    <shipping-state nil=\"true\"/>\n    <shipping-zip nil=\"true\"/>\n    <shipping-country nil=\"true\"/>\n    <shipping-phone-number nil=\"true\"/>\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>e3cef43464fc832f6e04f187df25af497994</fingerprint>\n    <verification-value></verification-value>\n    <number>XXXX-XXXX-XXXX-1111</number>\n  </payment-method>\n  <sub-merchant-key nil=\"true\"/>\n  <gateway-specific-response-fields>\n  </gateway-specific-response-fields>\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: 3iUAv9hUqP7x0bMxVtQKXlayFx0
                      succeeded: true
                      message: Succeeded!
                      gateway_transaction_id: '63'
                      retain_on_success: false
                      payment_method_added: false
                      response:
                        success: true
                        message: Successful purchase
                        avs_code: null
                        avs_message: null
                        cvv_code: null
                        cvv_message: null
                        pending: false
                        result_unknown: false
                        error_code: null
                        error_detail: null
                        cancelled: false
                        fraud_review: null
                        created_at: '2018-11-07T15:05:08Z'
                        updated_at: '2018-11-07T15:05:08Z'
                      payment_method:
                        token: 1rpKvP8zOUhj4Y9EDrIoIYQzzD5
                        created_at: '2017-06-26T17:04:38Z'
                        updated_at: '2018-11-07T15:05:07Z'
                        email: joey@example.com
                        data:
                          my_payment_method_identifier: '448'
                          extra_stuff:
                            some_other_things: Can be anything really
                        storage_state: retained
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Newfirst
                        last_name: Newlast
                        month: 3
                        year: 2032
                        address1: null
                        address2: null
                        city: null
                        state: null
                        zip: null
                        country: null
                        phone_number: null
                        company: null
                        full_name: Newfirst Newlast
                        eligible_for_card_updater: null
                        shipping_address1: null
                        shipping_address2: null
                        shipping_city: null
                        shipping_state: null
                        shipping_zip: null
                        shipping_country: null
                        shipping_phone_number: null
                        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: e3cef43464fc832f6e04f187df25af497994
                        verification_value: ''
                        number: XXXX-XXXX-XXXX-1111
                      sub_merchant_key: null
                      gateway_specific_response_fields: {}
                      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>3iUAv9hUqP7x0bMxVtQKXlayFx0</token>\n  <succeeded type=\"boolean\">true</succeeded>\n  <message>Succeeded!</message>\n  <gateway-transaction-id>63</gateway-transaction-id>\n  <retain-on-success type=\"boolean\">false</retain-on-success>\n  <payment-method-added type=\"boolean\">false</payment-method-added>\n  <response>\n    <success type=\"boolean\">true</success>\n    <message>Successful purchase</message>\n    <avs-code nil=\"true\"/>\n    <avs-message nil=\"true\"/>\n    <cvv-code nil=\"true\"/>\n    <cvv-message nil=\"true\"/>\n    <pending type=\"boolean\">false</pending>\n    <result-unknown type=\"boolean\">false</result-unknown>\n    <error-code nil=\"true\"/>\n    <error-detail nil=\"true\"/>\n    <cancelled type=\"boolean\">false</cancelled>\n    <fraud-review nil=\"true\"/>\n    <created-at>2018-11-07T15:05:08Z</created-at>\n    <updated-at>2018-11-07T15:05:08Z</updated-at>\n  </response>\n  <payment-method>\n    <token>1rpKvP8zOUhj4Y9EDrIoIYQzzD5</token>\n    <created-at>2017-06-26T17:04:38Z</created-at>\n    <updated-at>2018-11-07T15:05:07Z</updated-at>\n    <email>joey@example.com</email>\n    <data>\n      <my-payment-method-identifier>448</my-payment-method-identifier>\n      <extra-stuff>\n        <some-other-things>Can be anything really</some-other-things>\n      </extra-stuff>\n    </data>\n    <storage-state>retained</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    <last-four-digits>1111</last-four-digits>\n    <first-six-digits>411111</first-six-digits>\n    <card-type>visa</card-type>\n    <first-name>Newfirst</first-name>\n    <last-name>Newlast</last-name>\n    <month type=\"integer\">3</month>\n    <year type=\"integer\">2032</year>\n    <address1 nil=\"true\"/>\n    <address2 nil=\"true\"/>\n    <city nil=\"true\"/>\n    <state nil=\"true\"/>\n    <zip nil=\"true\"/>\n    <country nil=\"true\"/>\n    <phone-number nil=\"true\"/>\n    <company nil=\"true\"/>\n    <full-name>Newfirst Newlast</full-name>\n    <eligible-for-card-updater nil=\"true\"/>\n    <shipping-address1 nil=\"true\"/>\n    <shipping-address2 nil=\"true\"/>\n    <shipping-city nil=\"true\"/>\n    <shipping-state nil=\"true\"/>\n    <shipping-zip nil=\"true\"/>\n    <shipping-country nil=\"true\"/>\n    <shipping-phone-number nil=\"true\"/>\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>e3cef43464fc832f6e04f187df25af497994</fingerprint>\n    <verification-value></verification-value>\n    <number>XXXX-XXXX-XXXX-1111</number>\n  </payment-method>\n  <sub-merchant-key nil=\"true\"/>\n  <gateway-specific-response-fields>\n  </gateway-specific-response-fields>\n  <network-tokenization>\n    <provisioned type=\"boolean\">false</provisioned>\n    <token-status nil=\"true\"/>\n    <errors type=\"array\">\n      <error>\n        <key>invalidParameter</key>\n        <message>Your request does not have valid set of parameters required to process the business function.</message>\n        <action>provision_network_token</action>\n      </error>\n    </errors>\n  </network-tokenization>\n</transaction>\n"
            Network Token Attempted:
              examples:
                application/json:
                  value:
                    transaction:
                      token: 3iUAv9hUqP7x0bMxVtQKXlayFx0
                      succeeded: true
                      message: Succeeded!
                      gateway_transaction_id: '63'
                      retain_on_success: false
                      payment_method_added: false
                      response:
                        success: true
                        message: Successful purchase
                        avs_code: null
                        avs_message: null
                        cvv_code: null
                        cvv_message: null
                        pending: false
                        result_unknown: false
                        error_code: null
                        error_detail: null
                        cancelled: false
                        fraud_review: null
                        created_at: '2018-11-07T15:05:08Z'
                        updated_at: '2018-11-07T15:05:08Z'
                      payment_method:
                        token: 1rpKvP8zOUhj4Y9EDrIoIYQzzD5
                        created_at: '2017-06-26T17:04:38Z'
                        updated_at: '2018-11-07T15:05:07Z'
                        email: joey@example.com
                        data:
                          my_payment_method_identifier: '448'
                          extra_stuff:
                            some_other_things: Can be anything really
                        storage_state: retained
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Newfirst
                        last_name: Newlast
                        month: 3
                        year: 2032
                        address1: null
                        address2: null
                        city: null
                        state: null
                        zip: null
                        country: null
                        phone_number: null
                        company: null
                        full_name: Newfirst Newlast
                        eligible_for_card_updater: null
                        shipping_address1: null
                        shipping_address2: null
                        shipping_city: null
                        shipping_state: null
                        shipping_zip: null
                        shipping_country: null
                        shipping_phone_number: null
                        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: e3cef43464fc832f6e04f187df25af497994
                        verification_value: ''
                        number: XXXX-XXXX-XXXX-1111
                      sub_merchant_key: null
                      gateway_specific_response_fields: {}
                      network_tokenization:
                        attempted: 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>3iUAv9hUqP7x0bMxVtQKXlayFx0</token>\n  <succeeded type=\"boolean\">true</succeeded>\n  <message>Succeeded!</message>\n  <gateway-transaction-id>63</gateway-transaction-id>\n  <retain-on-success type=\"boolean\">false</retain-on-success>\n  <payment-method-added type=\"boolean\">false</payment-method-added>\n  <response>\n    <success type=\"boolean\">true</success>\n    <message>Successful purchase</message>\n    <avs-code nil=\"true\"/>\n    <avs-message nil=\"true\"/>\n    <cvv-code nil=\"true\"/>\n    <cvv-message nil=\"true\"/>\n    <pending type=\"boolean\">false</pending>\n    <result-unknown type=\"boolean\">false</result-unknown>\n    <error-code nil=\"true\"/>\n    <error-detail nil=\"true\"/>\n    <cancelled type=\"boolean\">false</cancelled>\n    <fraud-review nil=\"true\"/>\n    <created-at>2018-11-07T15:05:08Z</created-at>\n    <updated-at>2018-11-07T15:05:08Z</updated-at>\n  </response>\n  <payment-method>\n    <token>1rpKvP8zOUhj4Y9EDrIoIYQzzD5</token>\n    <created-at>2017-06-26T17:04:38Z</created-at>\n    <updated-at>2018-11-07T15:05:07Z</updated-at>\n    <email>joey@example.com</email>\n    <data>\n      <my-payment-method-identifier>448</my-payment-method-identifier>\n      <extra-stuff>\n        <some-other-things>Can be anything really</some-other-things>\n      </extra-stuff>\n    </data>\n    <storage-state>retained</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    <last-four-digits>1111</last-four-digits>\n    <first-six-digits>411111</first-six-digits>\n    <card-type>visa</card-type>\n    <first-name>Newfirst</first-name>\n    <last-name>Newlast</last-name>\n    <month type=\"integer\">3</month>\n    <year type=\"integer\">2032</year>\n    <address1 nil=\"true\"/>\n    <address2 nil=\"true\"/>\n    <city nil=\"true\"/>\n    <state nil=\"true\"/>\n    <zip nil=\"true\"/>\n    <country nil=\"true\"/>\n    <phone-number nil=\"true\"/>\n    <company nil=\"true\"/>\n    <full-name>Newfirst Newlast</full-name>\n    <eligible-for-card-updater nil=\"true\"/>\n    <shipping-address1 nil=\"true\"/>\n    <shipping-address2 nil=\"true\"/>\n    <shipping-city nil=\"true\"/>\n    <shipping-state nil=\"true\"/>\n    <shipping-zip nil=\"true\"/>\n    <shipping-country nil=\"true\"/>\n    <shipping-phone-number nil=\"true\"/>\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>e3cef43464fc832f6e04f187df25af497994</fingerprint>\n    <verification-value></verification-value>\n    <number>XXXX-XXXX-XXXX-1111</number>\n  </payment-method>\n  <sub-merchant-key nil=\"true\"/>\n  <gateway-specific-response-fields>\n  </gateway-specific-response-fields>\n  <network-tokenization>\n    <attempted type=\"boolean\">true</attempted>\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 Attempted Error:
              examples:
                application/json:
                  value:
                    transaction:
                      token: 3iUAv9hUqP7x0bMxVtQKXlayFx0
                      succeeded: true
                      message: Succeeded!
                      gateway_transaction_id: '63'
                      retain_on_success: false
                      payment_method_added: false
                      response:
                        success: true
                        message: Successful purchase
                        avs_code: null
                        avs_message: null
                        cvv_code: null
                        cvv_message: null
                        pending: false
                        result_unknown: false
                        error_code: null
                        error_detail: null
                        cancelled: false
                        fraud_review: null
                        created_at: '2018-11-07T15:05:08Z'
                        updated_at: '2018-11-07T15:05:08Z'
                      payment_method:
                        token: 1rpKvP8zOUhj4Y9EDrIoIYQzzD5
                        created_at: '2017-06-26T17:04:38Z'
                        updated_at: '2018-11-07T15:05:07Z'
                        email: joey@example.com
                        data:
                          my_payment_method_identifier: '448'
                          extra_stuff:
                            some_other_things: Can be anything really
                        storage_state: retained
                        test: true
                        metadata:
                          key: string value
                          another_key: 123
                          final_key: true
                        last_four_digits: '1111'
                        first_six_digits: '411111'
                        card_type: visa
                        first_name: Newfirst
                        last_name: Newlast
                        month: 3
                        year: 2032
                        address1: null
                        address2: null
                        city: null
                        state: null
                        zip: null
                        country: null
                        phone_number: null
                        company: null
                        full_name: Newfirst Newlast
                        eligible_for_card_updater: null
                        shipping_address1: null
                        shipping_address2: null
                        shipping_city: null
                        shipping_state: null
                        shipping_zip: null
                        shipping_country: null
                        shipping_phone_number: null
                        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: e3cef43464fc832f6e04f187df25af497994
                        verification_value: ''
                        number: XXXX-XXXX-XXXX-1111
                      sub_merchant_key: null
                      gateway_specific_response_fields: {}
                      network_tokenization:
                        attempted: false
                        token_status: active
                        errors:
                        - key:

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