# Contact

{% tabs %}
{% tab title="Attributes " %}

| Attributes    | Type      | Description                                                                                                                                |
| ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `id`          | `integer` | Id to identity the contacts uniquely                                                                                                       |
| `accountSlug` | `integer` | slug to identify account                                                                                                                   |
| `warehouseId` | `integer` | Id to identify fulfillment center                                                                                                          |
| `contactCode` | `string`  | unique contact identification code                                                                                                         |
| `contactName` | `string`  | Name of contact                                                                                                                            |
| `networkKey`  | `string`  | unique key identifier for every workspace                                                                                                  |
| `contactType` | `string`  | Different types of contact[`Enum`](/eshopbox-developers/setting/contacts.md#enum-type) `: vendor , location , customer , collection agent` |
| `gstin`       | `string`  | The registered `GSTIN` number of contact                                                                                                   |
| `address`     | object    | The registered address of the contact                                                                                                      |
| `contact`     | `object`  | The registered email/phone number of contact                                                                                               |
| `status`      | `string`  | Different status of the contact [`Enum`](/eshopbox-developers/setting/contacts.md#enum-status) `: active , archieved`                      |
| `createdAt`   | `string`  | The time at which contact is created                                                                                                       |
| `updatedAt`   | `string`  | The time at which contact is updated                                                                                                       |
| {% endtab %}  |           |                                                                                                                                            |

{% tab title="Sample Object" %}

```
{     
      "contactName": "MONTE CARLO FASHIONS LTD.UNIT-6",
      "contactCode": "PW52",
      "contactType": "vendor",
      "networkKey": "montecarlo",
      "address": {
               "addressLine": "Khasra no 5/16/2,17, Near Subash Chowk, Sohana Road Village Behrampur",
               "city": "gurgaon",
               "pincode": "122018",
               "state": "HARYANA",
               "country": "India"
            },    
      "gstin": "06AADCB2230M1ZX",
      "contact": {
                 "phoneNumber": "87564435",
                 "email":"montecarlo.eshop@gmail.com"
            },
      "status":="active",
      "customField": [
                {
                    "label": "occassion",
                    "internalName": "occassion",
                    "value": [
                        "eid",
                        "holi",
                        "classy"
                    ]
                },
                {
                    "label": "batch",
                    "internalName": "batch",
                    "value": [
                        "currency"
                    ]
                }
            ],
    "createdAt": "2019-04-08T12:41:05.000+05:30",
    "updatedAt": "2019-04-08T12:41:05.000+05:30"
}
```

{% endtab %}
{% endtabs %}

## Address Object

| Attribute               | Type     | Descriptions                          |
| ----------------------- | -------- | ------------------------------------- |
| `address{}.addressLine` | `string` | The registered address of the contact |
| `address{}.city`        | `string` | Registered city of the contact        |
| `address{}.state`       | `string` | Registered state of the contact       |
| `address{}.pincode`     | `string` | Registered pin-code of the contact    |
| `address{}.country`     | `string` | Registered country of the contact     |

## Contact Object

| Attribute               | Type     | Descriptions                       |
| ----------------------- | -------- | ---------------------------------- |
| `contact{}.phoneNumber` | `string` | Registered phone number of contact |
| `contact{}.email`       | `string` | Registered email of the contact    |

## Enum: type

| Attribute          | Descriptions                         |
| ------------------ | ------------------------------------ |
| `vendor`           | Contact is of vendor type            |
| `location`         | Contact is of location type          |
| `customer`         | Contact is of customer type          |
| `collection agent` | Contact is of collection agents type |

## Enum: status

| Attribute   | Descriptions                  |
| ----------- | ----------------------------- |
| `active`    | Contact is active.            |
| `archieved` | Contact is not active/hidden. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/setting/contacts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
