---
title: New Car API
slug: v2-apis/new-car-api
description: Learn how to use the Signzy API to fetch the price of new cars. This document provides step-by-step instructions on how to call the API, including login and authorization. It also includes sample curl commands for both preproduction and production environ
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API from Signzy is used to fetch the price of new cars.

## How to call the API

You will need to [login ](https://docs.signzy.com/sandboxapis)before sending new car price Fetch API request. You are required to pass the access token received from the login call, as authorization header in the request for New car Price API along with other parameters.

## API Input Guidelines

TransactionType should be "b" for Buy and "s" for sell.

### Sample Curl

::::Tabs
:::Tab{title="Preproduction"}
```curl
curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/...PatronId.../newcar' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Authorization: ....<access token>..... \
--header 'Content-Type: application/json' \
--data-raw '{
    "task": "price",
    "essentials": {
        "manufacturerName": "<Manufacturing company name>",
        "modelName": "<Car Model name>",
        "trimName": "<Car Trim name>",
        "transactionType": "<buy/sale>",
        "customerType": "<Type of customer>",
        "city": "<City name>"
    }
}'
```
:::

:::Tab{title="Production"}
```curl
curl --location --request POST 'https://signzy.tech/api/v2/patrons/...PatronId.../newcar' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Authorization: ....<access token>..... \
--header 'Content-Type: application/json' \
--data-raw '{
    "task": "price",
    "essentials": {
        "manufacturerName": "<Manufacturing company name>",
        "modelName": "<Car Model name>",
        "trimName": "<Car Trim name>",
        "transactionType": "<buy/sale>",
        "customerType": "<Type of customer>",
        "city": "<City name>"
    }
}'
```
:::
::::

### Input Parameters

| **PARAMETERS**              | **DESCRIPTION**                                                   | **TYPE** | **VALUE (REQUIRED /OPTIONAL)**                     |
| --------------------------- | ----------------------------------------------------------------- | -------- | -------------------------------------------------- |
| Authorization               | Contains the id parameter returned from the login step            | String   | REQUIRED                                           |
| Content-Type                | application/json                                                  | String   | REQUIRED                                           |
| task                        | Type of task to be performed-"price"                              | String   | REQUIRED                                           |
| essentials                  | This parameter contains the essential data for generating output. | String   | REQUIRED<br />REQUIRED<br />REQUIRED<br />REQUIRED |
| essentials.manufacturerName | Car Manufacturer Name                                             | String   | REQUIRED                                           |
| essentials.modelName        | Car Model Name                                                    | String   | REQUIRED<br />REQUIRED                             |
| essentials.trimName         | Car Trim Name                                                     | String   | REQUIRED                                           |
| essentials.transactionType  | Buy or Sell ("b"/"s")                                             | String   | REQUIRED                                           |
| essentials.customerType     | Type of Customer                                                  | String   | REQUIRED                                           |
| essentials.city             | City Name                                                         | String   | REQUIRED                                           |

### Sample Response

```json
{
    "essentials": {
        "manufacturerName": "Tata",
        "modelName": "Nexon",
        "trimName": "XM (S) PETROL",
        "transactionType": "b",
        "customerType": "individual",
        "city": "asind"
    },
    "id": "6332bc410xxxxxxxxxxxx",
    "patronId": "62fd034xxxxxxxxxxxxx",
    "task": "price",
    "result": {
        "price": "10,46,601"
    }
}
```

### Response Parameter

| **Parameter Name&#x20;**    | **Description**                                                   |
| --------------------------- | ----------------------------------------------------------------- |
| essentials                  | This parameter contains the essential data for generating output. |
| essentials.manufacturerName | Car Manufacturer Name                                             |
| essentials.modelName        | Car Model Name                                                    |
| essentials.trimName         | Car Trim Name                                                     |
| essentials.transactionType  | Describes Transaction type i.e. Buy or Sell ("b"/"s")             |
| essentials.customerType     | Type of Customer                                                  |
| essentials.city             | City Name<br />City Name<br />City Name                           |
| id                          | The access token generated during login request is held here.     |
| patronId                    | This parameter is returned as userId parameter of login request.  |
| task                        | This parameter gives the name of the task.                        |
| result                      | This parameter gives the output.                                  |
| result.price                | This parameter gives the price of the car                         |

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](mailto\:help@signzy.com).
:::

