0% found this document useful (0 votes)
1 views

ResponseModel

The document outlines various error responses for Enrollment, GetRates, and GetRenewalQuote APIs, detailing specific status codes and associated messages for invalid requests. Common issues include missing required fields, invalid formats, and unrecognized promo codes. Each case specifies the nature of the error and the required corrections to successfully process the requests.

Uploaded by

Sabas Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

ResponseModel

The document outlines various error responses for Enrollment, GetRates, and GetRenewalQuote APIs, detailing specific status codes and associated messages for invalid requests. Common issues include missing required fields, invalid formats, and unrecognized promo codes. Each case specifies the nature of the error and the required corrections to successfully process the requests.

Uploaded by

Sabas Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Create Enrollment API

Case – 1

Status Code – 400

{
"Message": "The request is invalid.",
"ModelState": {
"currentRequest.FirstName": [
"The FirstName field is required."
],
"currentRequest.EmailAddress": [
"The EmailAddress field is required.",
"The EmailAddress field is not a valid e-mail address."
],
"currentRequest.ServiceType": [
"MoveIn and Switching are the only valid values"
]
}
}

{
"Message": "The request is invalid.",
"ModelState": {
"currentRequest.FirstName": [
"The field FirstName must be a string or array type with a maximum le
ngth of '50'."
]
}
}

Case -2

Status Code - 400

{
"Message": "Mobile Phone should be formatted as XXXXXXXXXX."
}

Case – 2

Status Code - 404

{
"Message": "PromoCode:, PROMO was not found."
}
GetRates API

Case - 1

Status Code - 404

{
"Message": "ZipCode:, xxx did not return any TDSPs."
}

Case – 2

Status Code – 400

{
"Message": "Either Provider_duns or ZipCode must be supplied."
}

GetRenewalQuote API

Case -1

Status Code – 404

{
"Message": "AccountNumber:, 1812319999 and BillingZipCode: 77339 did not retu
rn a renewal account."
}

Case – 2

Status Code – 400

{
"Message": "The request is invalid.",
"ModelState": {
"currentRequest": [
"Required property 'RateID' not found in JSON. Path '', line 7, posit
ion 1."
],
"currentRequest.AccountNumber": [
"The AccountNumber field is required."
],
"currentRequest.BillingZipCode": [
"The BillingZipCode field is required."
]
}
}

You might also like