Testing Instruments

This page contains card numbers and ACH accounts that can be used with sandbox integrations to test various behaviors before launch. You can also use the accounts on this page to trigger specific error codes and verify that they are correctly handled.

RevOps charges the primary instrument of an account, whether card or ACH, only when invoices are sent to customers for payment.

Presumptions:

  1. You have reviewed the RevOps Accounts and Instruments APIs
  2. You have developer credentials in RevOps and access to your API key. If not, talk to your admin.a
  3. You have reviewed Invoices and Invoice Payment

Credit Card Testing

Basic Testing

The following table contains a list of basic credit cards that you use to test your sandbox integrations. Genuine credit cards cannot be used in test mode. For each card below, you can use any valid expiration date in the future with any random CVV.

Card Number Brand CVV Expiration Date
4242424242424242 Visa Any 3 digits Any future date
4000056655665556 Visa (debit) Any 3 digits Any future date
5555555555554444 Mastercard Any 3 digits Any future date
2223003122003222 Mastercard (2-series) Any 3 digits Any future date
5200828282828210 Mastercard (debit) Any 3 digits Any future date
5105105105105100 Mastercard (prepaid) Any 3 digits Any future date
378282246310005 American Express Any 4 digits Any future date
371449635398431 American Express Any 4 digits Any future date
6011111111111117 Discover Any 3 digits Any future date
6011000990139424 Discover Any 3 digits Any future date
3056930009020004 Diners Club Any 3 digits Any future date
36227206271667 Diners Club (14 digit card) Any 3 digits Any future date
3566002020360505 JCB Any 3 digits Any future date
6200000000000005 UnionPay Any 3 digits Any future date

Available Balances

To test adding funds directly to available balances, use one of the following cards:

Card Number Description
4000000000000077 Charge succeeds; Funds added directly to available balance
4000003720000278 Charge succeeds; Funds added directly to available balance

Error Testing

The tables below contain card numbers that you can use to test specific error conditions and verification checks. You can also test different scenarios that occur when a card charge is declined.

Verification Failures

Verification checks happen when an instrument is created and when charging a card.

Card Number Description
4000000000000010 The addressline1check and addresszipcheck verifications fail.
4000000000000028 Charge succeeds but the addressline1check verification fails.
4000000000000036 The addresszipcheck verification fails.
4000000000000044 Charge succeeds but the addresszipcheck and addressline1check verifications are both unavailable.
4000000000000101 If a CVC number is provided, the cvc_check fails.
4000000000000341 This card is accepted as a valid instrument, but attempts to charge fail.

You can also force a verification failure by providing an invalid expiration date or CVV:

  1. Invalid month (e.g, 13)
  2. Invalid year (e.g., 1970)
  3. Invalid CVV (use a two digit number)

Declined Charges

The following table contains cards that are declined with a specific error code.

Card Number Description
4000000000000002 Charge is declined with a card_declined code.
4000000000009995 Charge is declined with a carddeclined code. The declinecode attribute is insufficient_funds.
4000000000009987 Charge is declined with a carddeclined code. The declinecode attribute is lost_card.
4000000000009979 Charge is declined with a carddeclined code. The declinecode attribute is stolen_card.
4000000000000069 Charge is declined with an expired_card code.
4000000000000127 Charge is declined with an incorrect_cvc code.
4000000000000119 Charge is declined with a processing_error code.
4242424242424241 Charge is declined with an incorrect_number code as the card number fails the Luhn check.

ACH Testing

Basic Testing

You can test successful ACH charges in your sandbox integrations using the following bank routing and account numbers:

Routing Number Account Number Description
110000000 000123456789 All charges succeed

Error Testing

You can test failed ACH charges in your sandbox integrations using these bank routing and account numbers.

Routing Number Account Number Description
110000000 000111111116 All charges fail
110000000 000111111113 Account has been closed
110000000 000222222227 Insufficient funds
110000000 000333333335 Debits are not authorized for this account
110000000 000444444440 Invalid currency

Manual ACH Verification

To test successful and failed manual ACH verifications, use the following amounts:

Microdeposits Description
[32, 45] Successful microdeposit verifcation
[Any other numbers] Failed microdeposit verification