POST
/
accounting
/
contacts
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/contacts/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "contact_name": "asc"
  },
  "filter": {
    "name": {
      "eq": "Mr. John Doe"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "addresses": {
          "data": [
            {
              "city": "Metropolis",
              "country": "Countryland",
              "data_model": "CONTACTS",
              "data_model_id": "1013",
              "locality": "Downtown",
              "pincode": "12345",
              "platform_id": "_CONTACTS_1013_BILLING",
              "state": "Stateville",
              "street": "123 Main Street",
              "type": "BILLING",
              "updated_at": "2023-11-06T10:00:00.000Z"
            }
          ]
        },
        "contact_name": "Mr. John Doe",
        "contact_type": "CUSTOMER",
        "currency": {
          "data": {
            "code": null,
            "exchange_rate": null,
            "is_base_currency": null,
            "name": null,
            "platform_id": null,
            "symbol": null,
            "updated_at": null
          }
        },
        "currency_id": null,
        "external_links": {
          "data": [
            {
              "data_model": "CONTACTS",
              "data_model_id": "3770712000001721005",
              "link": "https://www.rootfi.dev",
              "platform_id": "CONTACTS_3770712000001721005_WEBSITE",
              "type": "WEBSITE",
              "updated_at": "2023-11-05T00:00:00.000Z"
            }
          ]
        },
        "name": "Mr. John Doe",
        "phone_numbers": {
          "data": [
            {
              "data_model": "CONTACTS",
              "data_model_id": "3770712000001721005",
              "number": "+919*********",
              "platform_id": "CONTACTS_3770712000001721005_MOBILE",
              "type": "MOBILE",
              "updated_at": "2023-11-05T00:00:00.000Z"
            }
          ]
        },
        "platform_id": "1013",
        "registration_number": null,
        "rootfi_company_id": 1672,
        "rootfi_created_at": "2023-10-25T13:39:41.216Z",
        "rootfi_id": 443583,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2023-10-25T13:39:41.201Z",
        "status": "ARCHIVED",
        "tax_number": null,
        "updated_at": "2023-09-25T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2023-10-25T13:39:41.201Z",
  "response_timestamp": "2023-10-25T13:39:41.201Z"
}

A contact is an individual or company that buys or sells goods or services from a business. Commonly referred to a customer on a corresponding invoice or a vendor for a bill

Authorizations

api_key
string
headerrequired

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server