Sandbox

Activate test functionality within the partner-testing sandbox environment

The partner-testing domain allows for testing certain edge cases, which can be activated using various techniques outlined in this document.

Sandbox testing features

Submit payment

API reference

The test environment uses Braintree's Sandbox, which only accepts specific test credit card numbers. Use values from their documentation to trigger different responses:

Payment errors

Payment processing is affected by the "charged" transaction amount in testing, due to having Braintree's Sandbox enabled. When binding out a quote, your payment will depend on your selected coverages, covered drivers and vehicles, as well as invoice period. As a result, quoted profiles can be modified in order to test specific payment processor responses from Braintree. For example, you will see a Processor declined error if checking out with a monthly payment ranging from $2000.00-2999.99, or a 3000 failed processor response if paying the full-term price for a quote between $3000.00-3999.99.

Please refer to Braintree's Sandbox documentation describing transaction amounts for more information.

Testing Personas

When working with a quote, there are hard-coded "Personas" that you can use for testing. The Personas are designed to go through certain paths in the code when generating a quote. The Persona used during the flow is based off of the license number you provide for the Primary Named Insured driver. The single exception follows below

A prefill driver, Sang Starnes, will always be presented. The default coverage for this prefill driver is Covered. To decline coverage please include the following excerpt:

        {
            "id": "{{id}}",
            "status": "Not in household"
        }

Accepted statuses are: Covered, Declined, Not in Household.

Deny-listed Driver

If any driver on a quote has one of these driver's licenses, then Root may not rate the quote. This is to simulate a driver who Root has decided is not desirable for any reason.

License StateLicense Number
AK0000111
AL00000111
AR000000111
AZ000000111
CAA0000111
CO000000111
CT000000111
DC000000111
DE0000111
FLA000000000111
GA000000111
HIH00000111
IA123AZ0111
ID000000111
ILS00000000111
IN000000111
KSK00000111
KYS00000111
LA000000111
MA000000111
MDS000000000111
ME0000111
MIS000000000111
MNA000000000111
MO000000111
MS000000111
MT0000000000111
NC000000000111
ND000000111
NEA00000111
NHNHL00000111
NJA00000000000111
NM000000111
NV0000000111
NY000000111
OHRT000111
OK000000111
OR000000111
PA00000111
RI00000111
SC000000111
SD000111
TN000000111
TX00000111
UT0000000111
VAA00000111
VT00000111
WAA00000000111
WIF0000000000111
WV0000111
WY0000000111

Prefill Needs Driver's License

A prefill report can be ordered without a driver's license, but our vendors sometimes need it in order to find records. You can trigger this response by having the pni driver with first name NODRIVERSLICENSE. This will always trigger a 400 bad_request reponse in our testing environment

Prefill Many Drivers & Vehicles Mindy

When the PNI has this license number pattern we will find many drivers and vehicles in our prefill report in our testing environment.

License StateLicense Number
AK0000040
AL00000040
AR000000040
AZ000000040
CAA0000040
CO000000040
CT000000040
DC000000040
DE0000040
FLA000000000040
GA000000040
HIH00000040
IA123AZ0040
ID000000040
ILS00000000040
IN000000040
KSK00000040
KYS00000040
LA000000040
MA000000040
MDS000000000040
ME0000040
MIS000000000040
MNA000000000040
MO000000040
MS000000040
MT0000000000040
NC000000000040
ND000000040
NEA00000040
NHNHL00000040
NJA00000000000040
NM000000040
NV0000000040
NY000000040
OHRT000040
OK000000040
OR000000040
PA00000040
RI00000040
SC000000040
SD000040
TN000000040
TX00000040
UT0000000040
VAA00000040
VT00000040
WAA00000000040
WIF0000000000040
WV0000040
WY0000000040

Prefill No-hit Nancy

When the PNI has this license number pattern we will not find any prefill data in our testing environment.

License StateLicense Number
AK0000004
AL00000004
AR000000004
AZ000000004
CAA0000004
CO000000004
CT000000004
DC000000004
DE0000004
FLA000000000004
GA000000004
HIH00000004
IA123AZ0004
ID000000004
ILS00000000004
IN000000004
KSK00000004
KYS00000004
LA000000004
MA000000004
MDS000000000004
ME0000004
MIS000000000004
MNA000000000004
MO000000004
MS000000004
MT0000000000004
NC000000000004
ND000000004
NEA00000004
NHNHL00000004
NJA00000000000004
NM000000004
NV0000000004
NY000000004
OHRT000004
OK000000004
OR000000004
PA00000004
RI00000004
SC000000004
SD000004
TN000000004
TX00000004
UT0000000004
VAA00000004
VT00000004
WAA00000000004
WIF0000000000004
WV0000004
WY0000000004

Forcing Underwriting Declined

When a PNI has a driver's license ending in 555 they will receive a quote status of underwriting_declined after finalization.

License StateLicense Number
AK0000555
AL00000555
AR000000555
AZ000000555
CAA0000555
CO000000555
CT000000555
DC000000555
DE0000555
FLA000000000555
GA000000555
HIH00000555
IA123AZ0555
ID000000555
ILS00000000555
IN000000555
KSK00000555
KYS00000555
LA000000555
MA000000555
MDS000000000555
ME0000555
MIS000000000555
MNA000000000555
MO000000555
MS000000555
MT0000000000555
NC000000000555
ND000000555
NEA00000555
NHNHL00000555
NJA00000000000555
NM000000555
NV0000000555
NY000000555
OHRT000555
OK000000555
OR000000555
PA00000555
RI00000555
SC000000555
SD000555
TN000000555
TX00000555
UT0000000555
VAA00000555
VT00000555
WAA00000000555
WIF0000000000555
WV0000555
WY0000000555

Forcing Underwriting Pending

When a PNI has a driver's license ending in 444 they will receive a quote status of underwriting_pending after finalization. One hour later that quote will become underwriting_approved.

License StateLicense Number
AK0000444
AL00000444
AR000000444
AZ000000444
CAA0000444
CO000000444
CT000000444
DC000000444
DE0000444
FLA000000000444
GA000000444
HIH00000444
IA123AZ0444
ID000000444
ILS00000000444
IN000000444
KSK00000444
KYS00000444
LA000000444
MA000000444
MDS000000000444
ME0000444
MIS000000000444
MNA000000000444
MO000000444
MS000000444
MT0000000000444
NC000000000444
ND000000444
NEA00000444
NHNHL00000444
NJA00000000000444
NM000000444
NV0000000444
NY000000444
OHRT000444
OK000000444
OR000000444
PA00000444
RI00000444
SC000000444
SD000444
TN000000444
TX00000444
UT0000000444
VAA00000444
VT00000444
WAA00000000444
WIF0000000000444
WV0000444
WY0000000444

Higher Down Payment

When any covered driver has a driver's license ending in 777, the finalized quote will require a higher payment for the first month of coverage and lower payments for subsequent months, if paid monthly.

License StateLicense Number
AK0000777
AL00000777
AR000000777
AZ000000777
CAA0000777
CO000000777
CT000000777
DC000000777
DE0000777
FLA000000000777
GA000000777
HIH00000777
IA123AZ0777
ID000000777
ILS00000000777
IN000000777
KSK00000777
KYS00000777
LA000000777
MA000000777
MDS000000000777
ME0000777
MIS000000000777
MNA000000000777
MO000000777
MS000000777
MT0000000000777
NC000000000777
ND000000777
NEA00000777
NHNHL00000777
NJA00000000000777
NM000000777
NV0000000777
NY000000777
OHRT000777
OK000000777
OR000000777
PA00000777
RI00000777
SC000000777
SD000777
TN000000777
TX00000777
UT0000000777
VAA00000777
VT00000777
WAA00000000777
WIF0000000000777
WV0000777
WY0000000777

Lower Down Payment

When any covered driver has a driver's license ending in 776, the finalized quote will require a lower payment for the first month of coverage and higher payments for subsequent months, if paid monthly.

License StateLicense Number
AK0000776
AL00000776
AR000000776
AZ000000776
CAA0000776
CO000000776
CT000000776
DC000000776
DE0000776
FLA000000000776
GA000000776
HIH00000776
IA123AZ0776
ID000000776
ILS00000000776
IN000000776
KSK00000776
KYS00000776
LA000000776
MA000000776
MDS000000000776
ME0000776
MIS000000000776
MNA000000000776
MO000000776
MS000000776
MT0000000000776
NC000000000776
ND000000776
NEA00000776
NHNHL00000776
NJA00000000000776
NM000000776
NV0000000776
NY000000776
OHRT000776
OK000000776
OR000000776
PA00000776
RI00000776
SC000000776
SD000776
TN000000776
TX00000776
UT0000000776
VAA00000776
VT00000776
WAA00000000776
WIF0000000000776
WV0000776
WY0000000776