# Non-Traditional Customers: ORC API Code and Formats
source: https://developer.mastercard.com/onboard-risk-check/documentation/code-and-formats/non-traditional/index.md

Note: This section is only for the Non-Traditional Customers.

## Error codes {#error-codes}

### Error structure {#error-structure}

Mastercard returns errors in the following structure.

```json
{
  "Errors": {
    "Error": [
      {
        "Source": "<component name>",
        "ReasonCode": "<unique code>",
        "Description": "<description of the error>",
        "Recoverable": "true/false",
        "Details": "<null>"
      }
    ]
  }
}
```

Note: For more details on ICA, please refer to [Glossary](https://developer.mastercard.com/onboard-risk-check/documentation/glossary/index.md).

### Initiate Inquiry API endpoint {#initiate-inquiry-api-endpoint}

The following is the list of service codes expected from the `POST /inquiries` endpoint.

| **Error/reason code** |              **Description**              |                                                                                                                                                    **Resolution**                                                                                                                                                     |
|-----------------------|-------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 202                   | Request Accepted.                         | Successful response. Use the IRN returned for tracking the results of the inquiry. Certain inquiry types are prohibited in certain countries. In case of partial acceptance of the request, you will receive `metadata` that shows which option is restricted for you with a message like `GEO LOCATION RESTRICTION`. |
| 400                   | Bad Request.                              | Determine that all the fields are valid and not missing. See [Non-Traditional Customers: Parameters](https://developer.mastercard.com/onboard-risk-check/documentation/parameters/non-traditional-customers-parameters/index.md).                                                                                     |
| 404                   | ClientId not found.                       | Either the ClientID provided is null or the given ClientID is not authorized. Check if onboarding was successful.                                                                                                                                                                                                     |
| 404                   | Failed to send requests to all providers. | Certain inquiry types are prohibited in the country associated with the CID specified. If your business/entity is located in a restricted country for an inquiry type, you will receive this exception in the results.                                                                                                |

<br />

### Retrieve Inquiry API endpoint {#retrieve-inquiry-api-endpoint}

The following is the list of service codes expected from the `GET /inquiries/inquiry_reference_number` endpoint.

| **Error/reason code** |                        **Description**                        |                                                                                                                                                   **Resolution**                                                                                                                                                   |
|-----------------------|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 200                   | OK.                                                           | Successful response. You will also get a copy of the input parameters in the response in addition to the risk rating report. Certain inquiry types are prohibited in certain countries. In case of any restrictions, you will receive a `status` of "GEO_LOCATION_RESTRICTION" for each option that is prohibited. |
| 404                   | IRN not found.                                                | Inquiry Reference Number is expired. Please submit a new inquiry.                                                                                                                                                                                                                                                  |
| 404                   | Resource not Found/Reference Data error (ICA/CID)/Auth error. | Check if Inquiry Reference Number (IRN) is valid. You may not have authority to view details for the given IRN.                                                                                                                                                                                                    |

<br />

### Gateway error codes {#gateway-error-codes}

In addition to service error codes, error codes can also be returned by the Mastercard gateway, which is used to verify the signature of your request, and route it to the correct location.
Refer to [Gateway error codes](https://developer.mastercard.com/platform/documentation/security-and-authentication/gateway-error-codes/) for a list of the errors returned by our Gateway, as well as resolutions for each.
