Register a new credit card

Only credit card funding is currently accessible through Tango API. If you're using a credit card to pre-fund your account, you must register it first. See how you can Register a new credit card with Tango API.

Credit cards that are successfully registered provide an activation date in the registration response. Registered credit cards are available to fund your account immediately. The first funding after registration must occur after the activation date is returned in the registration response. Any funding attempt prior to the activation date will return an error. All funding calls require the origin token returned at the time of registration.

📘

Notes:

  • A maximum of 10 credit cards can be registered in an account at a time, however, we encourage you to regularly audit your credit cards on file (every 60-90 days) and delete any credit card that you do not wish to use, or has been expired.
  • Credit card transactions are subject to a 3.5% processing fee.

Use the following endpoint to register a new credit card on your platform:

EndpointDescription
POST {URI}/creditCardsRegister a new credit card.

The following body parameters are available with this endpoint:

Body ParamsData typeDescription
customerIdentifierstringSpecify the customer associated with the credit card. It must be the customer the accountIdentifier is associated with. The string must have 5-100 characters.
accountIdentifierstringSpecify the account this credit card is associated with The string must have 5-100 characters.
ipAddressstringSpecify the The IP address of the person adding the credit card.
labelstringSpecify a label for the credit card.
creditCardobjectEnter the credit card details that is being registered (Required):
-number (string, required) Specify the account this order will be deducted from.
-expiration (string, required) Specify the card expiration date in YYYY-MM format.
-verificationNumber (string, required) Specify the 3 or 4-digit card security code on back of card (CVV2, CVC2, or CID).
billingAddressobjectEnter the billing address information for the credit card that is being registered (Required):
-firstName (string, required)
-lastName (string, required)
-addressLine1 (string, required)
-addressLine2 (string, optional)
-city (string, required)
-state (string, required)
-postalCode (string, required)
-country (string, required, 2-letter country code such as US)
-emailAddress (string, required)
contactInformationarray of objectsEnter the contact information of the any person(s) who will be notified if there are issues (Optional):
-fullName (string, optional) Used for email receipts. Specify the contact full name.
-emailAddress (string, optional) Used for email receipts. Specify the contact email address.

How to register a new credit card in the sandbox environment?

When registering a credit card in the sandbox environment, use the following card numbers for the type of card you are testing—such as Visa, MasterCard, etc. Other numbers are not supported in our Sandbox environment:

Card brandCredit card numberSecurity code
Visa4111111111111111requires 3-digit security code.
MasterCard5555555555554444requires 3-digit security code.
Discover6011111111111117requires 3-digit security code.
American Express378282246310005requires 4-digit security code.

Test credit card registered with sandbox

We recommend you to test your new credit card after registering your card with Tango API sandbox. Find out the pending credit card deposit status, simulated transitions, and the expected updates within one hour after the test:

Test amountResult
$5.55The initial response status shows PENDING, but will change to SUCCESS within one hour.
$6.55The initial response status shows PENDING, but and change to DECLINED within one hour.
$7.55The initial and final status shows DECLINED.

The following example shows the response registering Visa card with sandbox:

{
  "accountIdentifier": "string", (5-100 chars)
  "billingAddress": {
    "addressLine1": "123 Street",
    "addressLine2": "Suite 456",
    "city": "Seattle",
    "country": "US",
    "emailAddress": "conact@email.com",
    "firstName": "First",
    "lastName": "Last",
    "postalCode": "12345",
    "state": "WA"
  },
  "creditCard": {
    "expiration": "2025-12",
    "number": "4111111111111111",
    "verificationNumber": "123"
  },
  "customerIdentifier": "string", (5-100 chars)
  "ipAddress": "100.10.SAMPLE.10",
  "label": "Test Card"
}

Get an email receipt when registering your credit card

For the credit cards that are successfully registered after March 22, 2018, Tango sends credit card funding receipts to the primary email address included in the registration call as well as up to five additional specified contacts. A contact is defined by an emailAddress and fullName.

Contacts included with a successful registration call are reflected in the response. Contacts can also be retrieved at any time using GET {URI}/creditCards.

Receipts are only sent after a successful funding attempt has completed processing, the credit card has been charged, and the associated account balance is updated.

📘

Note:

For security reasons, the primary email address provided during credit card registration cannot be modified. To change the contacts where receipts are sent, the credit card must be deleted and re-registered with a new contact.


The possible response codes for this endpoint are:

  • 201 Created
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden

Rewards as a Service™ and the RaaS® API are provided by Tango Card, Inc. © 2024 Tango Card, Inc.