# New Egyptian Car License

***

```markdown
This API provides Data Extraction for the Egyptian Car License.
```

## Egyptian New Car License OCR &#x20;

<mark style="color:green;">`POST`</mark> `https://valifystage.com/api/v1/ocr/`

#### Headers

| Name                                            | Type   | Description            |
| ----------------------------------------------- | ------ | ---------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json       |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer \<access-token> |

#### Request&#x20;

<table><thead><tr><th>Name</th><th width="130">Type</th><th width="314">Description</th></tr></thead><tbody><tr><td>document_type<mark style="color:red;">*</mark></td><td>string</td><td>new_egy_car_license</td></tr><tr><td>data<mark style="color:red;">*</mark></td><td>object</td><td>Object containing the parameters below:<br><code>{</code> <br><code>"img": &#x3C;string> # Required</code><br><code>"bundle_key": &#x3C;string>, # Required</code><br><code>"lang": &#x3C;string></code> <br><code>}</code><br></td></tr></tbody></table>

**Status Codes**

{% tabs %}
{% tab title="✅200 Success" %}

```python
{
    "result": {
        "traffic_dept": "<string>",
        "traffic_unit": "<string>",
        "vehicle_type": "<string>",
        "license_type": "<string>",
        "plate_num": "<string>",
        "name": "<string>",
        "brand": "<string>",
        "model": "<string>",
        "model_year": "<string>",
        "body_type": "<string>",
        "color": "<string>",
        "motor_num": "<string>",
        "engine_capacity": "<string>",
        "cylinder": "<string>",
        "fuel_type": "<string>",
        "chassis_num": "<string>",
        "release_date": "<string>",
        "expiry_date": "<string>",
        "inspection_date": "<string>",
        "remarks": "<string>",
        "insurance_number": "<string>",
        "passenger_num": "<string>",
        "tax_expiry_date": "<string>"
    },
    "transaction_id": "<string>",
    "trials_remaining": "<int>"
}

```

{% endtab %}

{% tab title="400 Missing input data" %}

```python
{
    "message": "Bad Request – invalid request received (e.g. missing Bundle key, required parameters or invalid json) | Make sure all the required parameters are included"
}
```

{% endtab %}

{% tab title="401 Invalid bundle key" %}

```python
{
    "message": "Unauthorized – your Bundle key is invalid"
}
```

{% endtab %}

{% tab title="403 Access token error" %}

```python
{
    "message": "Forbidden – specified access_token could not be found"
}
```

{% endtab %}

{% tab title="404 Check the endpoint" %}

```python
{
    "message": "Not Found"
}
```

{% endtab %}

{% tab title="415 The format should be base64" %}

```python
{
    "message": "Unsupported Media Type"
}
```

{% endtab %}

{% tab title="422 Check Valify error codes" %}

```python
{
    "message": "<error-description>",
    "error_code": <valify-error-code>
}
```

{% endtab %}

{% tab title="500 Contact us" %}

```python
{
    "message": "Internal Server Error"
}
```

{% endtab %}
{% endtabs %}

***
