Running an echeck transaction with the API

Background
Before starting this tutorial, make sure you understand the following topics from the Quick start section:
  1. Configure Your Account

    Contact Integrations Support to ensure your merchant ID and account have access to the proper API endpoint.
    (You may be asked to provide additional information such as Gateway, TokenEx, or Kount credentials.)

  2. Save an Echeck Token

    You may save an echeck token with your own form, with the save echeck token iframe, or directly through the API. Echeck tokens can be used to process through any MID on your account. They are not restricted to a specific merchant account or currency.

  3. Post Payment Information to Nexio

    Post payment details along with the card token to the Run echeck transaction endpoint.

    curl -X POST https://api.nexiopaysandbox.com/pay/v3/processECheck \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic [Base64_encoded_login]'
      -d '{
      "data": {
        "amount": 29.99,
        "currency": "USD"
      },
      "tokenex": {
        "token": "aafb1033-599a-4392-859e-f98033fc37f5"
      }
    }'