
# Test Phone Numbers

Test phone numbers are used to simulate different porting scenarios and verify that the integration with the porting API works correctly.
The test phone numbers are designed to mimic real-world scenarios.
Therefore, test portings require the same information as real portings from the mimicked provider.
When a porting is in status `informationRequired`, you need to update the porting with the required information to proceed (see `required` attribute of the porting).

To make use of a test phone number, provide one of the following phone numbers when creating a porting.
The phone numbers are organized by provider.

<ProviderTestPhoneNumbersTable
    data={{
        test: [
            {
                number: '+1 959 555 0100',
                country: 'US',
                description:
                    'This number will be ported in successfully after a few seconds.',
            },
            {
                number: '+1 959 555 0101',
                country: 'US',
                description: 'This number is not supported to be ported.',
            },
            {
                number: '+1 959 555 0102',
                country: 'US',
                description: 'This number is always declined after being requested.',
            },
            {
                number: '+1 959 555 0103',
                country: 'US',
                description:
                    'This number is always declined the first time it is requested with the `portingDeclined` decline code but succeeds after the porting information is updated.\n\nNote: When testing with Connect (or Connect Sessions), we recommend using one of the numbers that return a more specific decline code (i.e. the numbers ending with 10 - 14).',
            },
            {
                number: '+1 959 555 0105',
                country: 'US',
                description: 'This number has port protection on the provider. It will be declined the first time it is requested, and then succeed when the porting is updated.',
            },
            {
                number: '+1 959 555 0107',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotFound` decline code.',
            },
            {
                number: '+1 959 555 0108',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotActive` decline code.',
            },
            {
                number: '+1 959 555 0109',
                country: 'US',
                description: 'This number is always declined with the `portingPendingOtherProvider` decline code.',
            },
            {
                number: '+1 959 555 0110',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAccountPinRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0111',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAccountNumberRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0112',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAddressRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0113',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingFirstNameRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0114',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingLastNameRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0115',
                country: 'US',
                description: 'This number is will stay in a requested state for 5 minutes, before being ported in successfully.',
            },
            {
                number: '+1 959 555 0116',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotEligible` decline code.',
            },
            {
                number: '+1 959 555 0118',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingUserInformationMismatch` decline code, but succeeds after the porting information is updated.',
            },
        ],
        t11: [
            {
                number: '+1 959 555 0100',
                country: 'US',
                description:
                    'This number will be ported in successfully after a few seconds.',
            },
            {
                number: '+1 959 555 0101',
                country: 'US',
                description: 'This number is not supported to be ported.',
            },
            {
                number: '+1 959 555 0102',
                country: 'US',
                description: 'This number is always declined after being requested.',
            },
            {
                number: '+1 959 555 0103',
                country: 'US',
                description:
                    'This number is always declined the first time it is requested with the `portingDeclined` decline code but succeeds after the porting information is updated.\n\nNote: When testing with Connect (or Connect Sessions), we recommend using one of the numbers that return a more specific decline code (i.e. the numbers ending with 10 - 14).',
            },
            {
                number: '+1 959 555 0105',
                country: 'US',
                description: 'This number has port protection on the provider. It will be declined the first time it is requested, and then succeed when the porting is updated.',
            },
            {
                number: '+1 959 555 0107',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotFound` decline code.',
            },
            {
                number: '+1 959 555 0108',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotActive` decline code.',
            },
            {
                number: '+1 959 555 0109',
                country: 'US',
                description: 'This number is always declined with the `portingPendingOtherProvider` decline code.',
            },
            {
                number: '+1 959 555 0110',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAccountPinRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0111',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAccountNumberRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0112',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingAddressRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0113',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingFirstNameRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0114',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingLastNameRequiredOrInvalid` decline code, but succeeds after the porting information is updated.',
            },
            {
                number: '+1 959 555 0115',
                country: 'US',
                description: 'This number is will stay in a requested state for 5 minutes, before being ported in successfully.',
            },
            {
                number: '+1 959 555 0116',
                country: 'US',
                description: 'This number is always declined with the `portingPhoneNumberNotEligible` decline code.',
            },
            {
                number: '+1 959 555 0117',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingBillingPinRequiredOrInvalid` decline code, but succeeds after the billing pin of the porting is updated.',
            },
            {
                number: '+1 959 555 0118',
                country: 'US',
                description: 'This number is always declined the first time it is requested with the `portingUserInformationMismatch` decline code, but succeeds after the porting information is updated.',
            },
        ],
        t12: [
            {
                number: '+44 77 009 00000',
                country: 'GB',
                description:
                    'This number will be ported in successfully, either within a few seconds or on the scheduled date.',
            },
            {
                number: '+44 77 009 00001',
                country: 'GB',
                description: 'This number is not supported to be ported.',
            },
            {
                number: '+44 77 009 00002',
                country: 'GB',
                description: 'This number is always declined after being requested.',
            },
            {
                number: '+44 77 009 00003',
                country: 'GB',
                description:
                    'This number is declined the first time is requested but succeeds after the porting information is updated, either within a few seconds or on the scheduled date.\n\nNote: When testing with Connect (or Connect Sessions), we recommend using `+44 77 009 00010` instead',
            },
            {
                number: '+44 77 009 00006',
                country: 'GB',
                description: 'This number will result in a fast execution of scheduled portings. It has no effect on immediate portings. Instead of waiting for the scheduled day, we convert the number of days until the `scheduledOn` date into minutes and complete the porting then. E.g. a porting scheduled for two days time will complete in two minutes.',
            },
            {
                number: '+44 77 009 00010',
                country: 'GB',
                description: 'This number is always declined the first time it is requested with the `portingAccountPinRequiredOrInvalid` decline code, but succeeds after the porting information is updated, either within a few seconds or on the scheduled date.',
            },
            {
                number: '+44 77 009 00015',
                country: 'GB',
                description: 'This number is will stay in a requested state for 5 minutes, before being ported in successfully.',
            },
        ],
    }}
/>
