Saving an echeck token with the API

  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. Request a One-time-use Token

    Send a POST request to the Create one-time-use token endpoint.
    (Do not include any bank information or other body parameters—you will do that in step 3.)

    Copy or store the token from Nexio's response.
    It will be used in the next step.

    Example Request
    curl -X POST https://api.nexiopaysandbox.com/pay/v3/token \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic [Base64_encoded_login]'
      -d '{}'
    
    Example 200 Response
    {
      "expiration": "2018-09-18T15:43:05.664Z",
      "fraudUrl": "https://api.nexiopaysandbox.com/pay/v3/fingerprint?token=01080f80-76b8-4363-845d-67e8623bf170",
      "token": "830d36f6-a5e3-4455-9600-3a55b63e2fc2"
    }
    

  3. Post Bank Information to Nexio

    Send a POST request to the Save echeck token endpoint.
    Include the token from step 2 and the card information in the body of your request.

    Example Request
    curl -X POST https://api.nexiopaysandbox.com/pay/v3/saveECheck \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic [Base64_encoded_login]'
      -d '{
      "bank": {
        "accountHolderName": "John Doe",
        "routingNumber": "231375151"
      },
      "token": "830d36f6-a5e3-4455-9600-3a55b63e2fc2"
    }'
    

Did this page help you?