Errors in Care Cost Pricing API

Errors can occur under the following scenarios:

  • Mandatory data not submitted
  • Authorization failed
  • Internal server error

Please check the HTTP status code and description to get more details about the error. You can also refer to the API spec for details on the structure of error responses. You can download the spec here.

Errors when get a price for the procedure

  • When Care Cost Pricing API returns HTTP status code 500, it indicates that Care Cost Pricing API encounters an unexpected condition that prevents the completion of your request. Please try to send the request again. If the issue still happens after retry, contact our support.

  • When Care Cost Price API returns HTTP status code 404, it indicates that the API cannot find the price documents based on the Id you provided. Please check the error description for more details. The example below shows that the price Id does not exist when Care Cost Pricing API returns HTTP 404 status code

    "instance": "2de90def-d705-49f0-8068-80fd4a4e465f",
    "status": 400,
    "detail": "Request validation failed. Please check your message.",
    "errors": {
        "FCPA201": "PriceQueryRequest.Procedure field is required."

*One possible reason is that the input fields in the request body do not pass validation. When this happens, the API will return HTTP status code 400 and details on the validation failure. Please see the example below:

    "instance": "4d108594-e91e-4fb9-9816-2c53288f1a36",
    "status": 404,
    "detail": "Invalid query id. Please use GetPrices to get a new id.",
    "errors": {}

When error will be returned to the user when the CCP API service is down or Azure cloud and Unexpected service internal error.

  "instance": "0a5cfe40-2d52-4773-9dd0-3f6bd6505f85",
  "status": 500,
  "detail": "Unexpected error occurred. Please try again.",
  "errors": {
    "FCPA001": "An unexpected issue has occurred. Please try again and contact support if the problem persists."