Tutorials

Originate a pull transaction

8min

How to originate an Account Funding Transaction (AFT)

In this tutorial, you'll learn how to:

✅ Register the relevant webhooks

✅ Sign up a card

✅ Start a pull transaction

This tutorial assumes you have a knowledge of APIs and how they work. Refer to the API overview page for more details.

An Account Funding Transaction (AFT) lets you pull funds from a debit card for specific purposes. You can use an AFT to fund a wallet or a prepaid card. Or, you can use it to initiate a person to person (P2P) transfer through the card network rails. AFTs are not allowed for buying goods and services.

The tutorial uses these API endpoints:

API

Description

Signs up a card

Starts a pull payment

The tutorial uses these webhooks:

Webhook

Description

CardAuthorized

  • Reports when a card authorization attempt is completed
  • Shows you the status of the card

Transaction

Reports a transaction

Before you begin

Make sure you have:

  • Successfully registered to receive webhook event notifications
  • Signed up the card you are pushing funds to
  • requestId - your unique reference ID
  • cardToken - the token you received when you signed up the card
  • The dollar amount to send

Register the relevant webhook events

Use this endpoint, POST /api/WebhookRegistrations, to sign up to receive the webhooks available for P2C. These webhooks report relevant events back to your system in real-time. This keeps you up to date on each transaction.

Sign up a card

To start a transaction you must first register a card. We use different endpoints to be able to secure your customer's debit card numbers. To register a card, send Cross River the card number. The card number is instantly converted into a token. Cross River doesn't save any card number information. Doing this asynchronously allows Cross River to store your customer's card information. This ensures that you don't need to retrieve the card information again. It also keeps your customer's data secure.

  1. Call POST /api/Card .
  2. When a card is registered, Cross River validates the card with the relevant card network. This makes sure the card is a valid card and that it is allowed to receive payments.
  3. The CardAuthorized webhook is triggered.
Sample request POST /api/Card


Start a pull transaction

When you start a transfer, you are requesting funds (as the recipient) from a payor.

  1. Authenticate into the Cross River system. This returns a token to you.
  2. Use the token to call POST /api/PullTransaction.
  3. Cross River sends this request to the card networks. The networks route the transaction to the appropriate bank.
  4. The issuing bank (of the registered debit card) receives the transaction.
  5. The issuing bank either authorizes or declines the transaction.
  6. If the transaction is authorized, Cross River responds to your API call as shown below.
Sample request POST /api/PullTransaction

Sample response POST /api/PullTransaction




🤔
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.



Updated 30 Sep 2024
Doc contributor
Doc contributor
Did this page help you?