2 Check user status




Success scenarios

2.1 User status: OK

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "OK"
}


2.2 User status: User barred

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "USER_BARRED"
}


2.3 User status: User suspended

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550146


Test

Action

Expected result

1

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "USER_SUSPENDED"
}


2.4 User status: User not enabled

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "USER_NOT_ENABLED"
}


2.5 User status: Unknown

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "UNKNOWN"
}


Failure scenarios

2.6 Error response: Invalid BangoUserId (closed account)

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

An HTTP response code 200 (OK) should be returned with the following body:

{
  "responseCode": "OK",
  "responseMessage": "Success",
  "bangoUserId": "{bangoUserId}",
  "identificationMethodKey": "{NETWORK_KEY}",
  "status": "INVALID_BANGOUSERID"
}


2.7 Error response: Not found (incorrect UserId)

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
  "responseCode": "NOT_FOUND",
  "responseMessage": "Invalid User ID"
}


2.8 Error response: Bad request

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
  "responseCode": "BAD_REQUEST",
  "responseMessage": "Invalid request."
}


2.9 Error response: Service unavailable

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": "{bangoUserId}",
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "OK"
}


2.10 Error response: Internal error

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": {bangoUserId},
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": "OK"
}


2.11 Error response: Connect error

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": {bangoUserId},
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": OK
}


2.12 Error response: Connect timeout

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": {bangoUserId},
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": OK
}


2.13 Error response: Failure

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": {bangoUserId},
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": OK
}


2.14 Error response: Unauthorized

To use Bango's test payment provider 'TestPay' to test these scenarios generate a userId using the following details:

UK format

identificationMethodKey

GBR_BANGO
MSISDN447710900120

USA format

identificationMethodKey

USA_BANGO
MSISDN12025550120


Test

Action

Expected result

1

Send a GET request to https://api.bango.net/v5/identity/{bangoUserId}

An HTTP response code 200 (OK) should be returned with the following body:

{
 "responseCode": "OK",
 "responseMessage": "Success",
 "bangoUserId": {bangoUserId},
 "identificationMethodKey": "{NETWORK_KEY}",
 "status": OK
}