---
updatedAt: 2025-05-19T20:33:48.000Z
agentTools:
  projectIndex: https://docs.upswot.com/llms.txt
---

# All contacts info

Get all company contacts' information

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "NORMALIZED DATA",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://app.upswot.com/{tenant}",
      "variables": {
        "tenant": {
          "default": "admin"
        }
      }
    }
  ],
  "paths": {
    "/api/v1/normalized-data/{companyId}/accountancy/contacts": {
      "get": {
        "tags": [
          "Accountancy"
        ],
        "summary": "All contacts info",
        "description": "Get all company contacts' information",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "Company ID to get data",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "description": "Page number<br/>Default - 1",
            "schema": {
              "maximum": 9999,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "description": "Objects per page<br/>Default - 100",
            "schema": {
              "maximum": 500,
              "minimum": 10,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "description": "Property to sort by",
            "schema": {
              "enum": [
                "serviceName",
                "name",
                "createDate",
                "email",
                "baseCurrency",
                "countryApp",
                "countryCode",
                "typeApp",
                "typeSystem",
                "statusApp",
                "statusSystem"
              ]
            }
          },
          {
            "name": "Desc",
            "in": "query",
            "description": "Sort by ascending or descending order. Descending by default.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "FilterQuery",
            "in": "query",
            "description": "Filter by entity field<br/>Available values: serviceName, name, createDate, email, typeSystem, statusSystem. <br/>For more info visit <a href=\"https://docs.upswot.com/reference/querying\" target=\"_blank\">here</a>.",
            "schema": {
              "maxLength": 2048,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Dto.StructuredDataDto_-Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.ContactDto-_"
                },
                "example": {
                  "data": [
                    {
                      "serviceId": "94de1ee7-873c-4e79-84fe-e7108aa9a6d4",
                      "serviceName": "QuickBooks",
                      "lastUpdatedOn": "2024-03-07T08:47:46.255144+00:00",
                      "id": "3e6800cc-4646-404e-9b4a-0bfb9d205207",
                      "origId": "62",
                      "name": "ExampleCustomer",
                      "identifiers": [
                        {
                          "typeApp": "PrimaryTaxIdentifier",
                          "value": ""
                        },
                        {
                          "typeApp": "ResaleNum",
                          "value": ""
                        },
                        {
                          "typeApp": "SecondaryTaxIdentifier",
                          "value": ""
                        }
                      ],
                      "createDate": "2023-11-02T16:46:07+00:00",
                      "email": "",
                      "phone": "",
                      "website": "",
                      "baseCurrency": "USD",
                      "countryApp": "",
                      "countryCode": "",
                      "addresses": [
                        {
                          "typeSystem": "SHIPPING",
                          "typeApp": "ShipAddr",
                          "addressFull": "",
                          "postcode": "",
                          "region": "",
                          "city": "",
                          "street": "",
                          "countryApp": "",
                          "countryCode": ""
                        },
                        {
                          "typeSystem": "BILLING",
                          "typeApp": "BillAddr",
                          "addressFull": "",
                          "postcode": "",
                          "region": "",
                          "city": "",
                          "street": "",
                          "countryApp": "",
                          "countryCode": ""
                        }
                      ],
                      "typeApp": "CUSTOMER",
                      "typeSystem": "CUSTOMER",
                      "statusApp": "True",
                      "statusSystem": "ACTIVE",
                      "openBalances": [
                        {
                          "balanceAmount": 400,
                          "balanceTypeSystem": "RECEIVABLE",
                          "balanceTypeApp": "CustomerBalance"
                        }
                      ]
                    }
                  ],
                  "pagination": {
                    "pageNumber": 1,
                    "pageSize": 100,
                    "count": 100
                  }
                }
              }
            }
          },
          "400": {
            "description": "Problems with parameters",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.Common.ErrorResponse"
                },
                "example": {
                  "code": 400,
                  "message": "Property 'PageNumber' validation error. The field PageNumber must be between 1 and 9999.",
                  "details": null,
                  "traceId": "8c86588f-a583-4411-8e9b-1e5d616b79b7"
                }
              }
            }
          },
          "401": {
            "description": "Your request was not properly authorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.Common.ErrorResponse"
                },
                "example": {
                  "code": 401,
                  "message": "Unauthorized",
                  "details": null,
                  "traceId": "7f6b26da-a8ac-4a46-95ba-1e1d1b1c9c75"
                }
              }
            }
          },
          "403": {
            "description": "Access Denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.Common.ErrorResponse"
                },
                "example": {
                  "code": 403,
                  "message": "Access Denied",
                  "details": null,
                  "traceId": "5c7d6194-faf2-434b-b29e-be440d203662"
                }
              }
            }
          },
          "404": {
            "description": "There is no company with such ID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.Common.ErrorResponse"
                },
                "example": {
                  "code": 404,
                  "message": "There are no data for the company with id ecbe801d-79f7-4205-8358-640a07ddc14f on page 1.",
                  "details": null,
                  "traceId": "af3d9d12-61f9-48a0-a7e9-97df9635e611"
                }
              }
            }
          },
          "500": {
            "description": "Server-side Issue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.Common.ErrorResponse"
                },
                "example": {
                  "code": 500,
                  "message": "Server Error",
                  "details": null,
                  "traceId": "2d8dddbb-2958-4e2e-8e68-48c08081d136"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Upswot.Admin.Controllers.v1.Common.ErrorResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "nullable": true
          },
          "traceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.AddressDto": {
        "type": "object",
        "properties": {
          "typeSystem": {
            "type": "string",
            "description": "Address type in the upSWOT system:<br/>\"BILLING\" - billing address<br/>\"SHIPPING\" - shipping address<br/>\"ACTUAL\" - actual head office address<br/>\"LEGAL\" - registered office address<br/>\"OTHER\" - other.",
            "nullable": true
          },
          "typeApp": {
            "type": "string",
            "description": "Address type in a third-party app",
            "nullable": true
          },
          "addressFull": {
            "type": "string",
            "description": "Full address",
            "nullable": true
          },
          "postcode": {
            "type": "string",
            "description": "Index",
            "nullable": true
          },
          "region": {
            "type": "string",
            "description": "Region",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street and house number",
            "nullable": true
          },
          "countryApp": {
            "type": "string",
            "description": "Name/country code in a third-party app",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "Country code (ISO 3166-3 Country Codes)",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.ContactDto": {
        "type": "object",
        "properties": {
          "serviceId": {
            "type": "string",
            "description": "Service identifier in a third-party app",
            "format": "uuid"
          },
          "serviceName": {
            "type": "string",
            "description": "Service name",
            "nullable": true
          },
          "lastUpdatedOn": {
            "type": "string",
            "description": "Date of last update",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "Internal identifier of the table record",
            "format": "uuid"
          },
          "origId": {
            "type": "string",
            "description": "Third-party app account identifier",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Company short name",
            "nullable": true
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.IdentifierDto"
            },
            "nullable": true
          },
          "createDate": {
            "type": "string",
            "description": "Counterparty creation date in a third-party app",
            "format": "date-time",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Company email",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Company phone",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Company website",
            "nullable": true
          },
          "baseCurrency": {
            "type": "string",
            "description": "Company base currency (ISO 4217 character code)",
            "nullable": true
          },
          "countryApp": {
            "type": "string",
            "description": "Country name/code in a third-party app",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "Country code (ISO 3166-3 Country Codes)",
            "nullable": true
          },
          "addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.AddressDto"
            },
            "nullable": true
          },
          "typeApp": {
            "type": "string",
            "description": "Company type in a third-party app",
            "nullable": true
          },
          "typeSystem": {
            "type": "string",
            "description": "Company type in the upSWOT system: \"CUSTOMER\", \"SUPPLIER\", \"CUSTOMER-SUPPLIER\", \"PARTNER\",  \"OTHER\".",
            "nullable": true
          },
          "statusApp": {
            "type": "string",
            "description": "Status in a third-party app",
            "nullable": true
          },
          "statusSystem": {
            "type": "string",
            "description": "Status in the upSWOT system: ACTIVE, INACTIVE.",
            "nullable": true
          },
          "openBalances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.OpenBalanceDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.IdentifierDto": {
        "type": "object",
        "properties": {
          "typeApp": {
            "type": "string",
            "description": "Identifier name in a third-party app",
            "nullable": true
          },
          "value": {
            "type": "string",
            "description": "Identifier value",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.OpenBalanceDto": {
        "type": "object",
        "properties": {
          "balanceAmount": {
            "type": "number",
            "description": "Balance amount",
            "format": "double"
          },
          "balanceTypeSystem": {
            "type": "string",
            "description": "Balance type in the upSWOT system: \"RECEIVABLE\", \"PAYABLE\".",
            "nullable": true
          },
          "balanceTypeApp": {
            "type": "string",
            "description": "Balance type in a third-party app",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Dto.PaginationDataDto": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "description": "Page number",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "description": "Objects per page",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "description": "Total objects count",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Dto.StructuredDataDto_-Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.ContactDto-_": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Accountancy.Contact.Dto.ContactDto"
            },
            "description": "Row with objects",
            "nullable": true
          },
          "pagination": {
            "$ref": "#/components/schemas/Upswot.Admin.Controllers.v1.NormalizedData.StructuredData.Dto.PaginationDataDto"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "To get token, first call /api/AuthService/GetToken",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```