Businesses

Gets a list of all team's businesses.

Request

  • Base URL
    https://api.railz.ai
  • Auth
    HTTP bearer

Query parameters

businessNamestring
Example:Railz
businessNameOrUuidstring
Example:BIZ-123

Partial or full business name or UUID.

integrationUuidsstring[]

One or more integration uuids related to businesses to filter by.

[
  "INT-123"
]
statusstring[]

The status of a business. If no status is provided then it fetches all

limitnumber
offsetnumber

Response

Example response

{
  "meta": {
    "count": 1,
    "offset": 1,
    "limit": 1,
    "currentPage": 1,
    "totalPages": 1
  },
  "data": [
    {
      "businessUuid": "BIZ-0f1ef788-54eb-4ed1-a7d3-5605febe6d84",
      "businessName": "Railz",
      "status": "active",
      "createdAt": "2020-12-25T01:02:03Z",
      "updatedAt": "2020-12-25T01:02:03Z",
      "metadata": [
        {
          "name": "new business1",
          "value": "canada",
          "webhookLocation": [
            "header",
            "body"
          ]
        }
      ],
      "connections": [
        {
          "connectionUuid": "CON-e66400c1-4d2f-4683-9bea-275799943695",
          "firstRecordDate": "2020-12-25T01:02:03Z",
          "serviceName": "xero",
          "description": "TD Bank",
          "status": "active",
          "createdAt": "2020-12-25T01:02:03Z",
          "updatedAt": "2020-12-25T01:02:03Z",
          "disconnectReason": "disconnectedByCustomer",
          "institution": {
            "name": "Citizens bank",
            "logo": "https://serverlogo.url"
          },
          "isMockData": true,
          "serviceAccountRef": {
            "id": "12345",
            "entityRef": {
              "id": "100"
            }
          },
          "connectionId": "CON-e66400c1-4d2f-4683-9bea-275799943695"
        }
      ]
    }
  ]
}

Changes

    • breaking

      removed the enum value active from the query request parameter status

    • breaking

      removed the enum value inactive from the query request parameter status

    • breaking

      removed the enum value new from the query request parameter status

    • breaking

      for the query request parameter status, the minItems was increased from 0 to 1

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      removed the required property //// from the response with the status

    • breaking

      removed the required property //// from the response with the status

    • warning

      added the new dynamics365Finance enum value to the //// response property for the response status

    • warning

      added the new dynamics365Finance enum value to the //// response property for the response status

    • warning

      added the new dynamicsBusinessCentral enum value to the //// response property for the response status

    • warning

      added the new dynamicsBusinessCentral enum value to the //// response property for the response status

    • warning

      added the new freshbooks enum value to the //// response property for the response status

    • warning

      added the new freshbooks enum value to the //// response property for the response status

    • warning

      added the new myob enum value to the //// response property for the response status

    • warning

      added the new myob enum value to the //// response property for the response status

    • warning

      added the new oracleNetsuite enum value to the //// response property for the response status

    • warning

      added the new oracleNetsuite enum value to the //// response property for the response status

    • warning

      added the new quickbooks enum value to the //// response property for the response status

    • warning

      added the new quickbooks enum value to the //// response property for the response status

    • warning

      added the new quickbooksDesktop enum value to the //// response property for the response status

    • warning

      added the new quickbooksDesktop enum value to the //// response property for the response status

    • warning

      added the new sageBusinessCloud enum value to the //// response property for the response status

    • warning

      added the new sageBusinessCloud enum value to the //// response property for the response status

    • warning

      added the new sageIntacct enum value to the //// response property for the response status

    • warning

      added the new sageIntacct enum value to the //// response property for the response status

    • warning

      added the new wave enum value to the //// response property for the response status

    • warning

      added the new wave enum value to the //// response property for the response status

    • warning

      added the new xero enum value to the //// response property for the response status

    • warning

      added the new xero enum value to the //// response property for the response status

    • warning

      added the new zohoBooks enum value to the //// response property for the response status

    • warning

      added the new zohoBooks enum value to the //// response property for the response status

    • info

      added the new optional query request parameter businessNameOrUuid

    • info

      added the new optional query request parameter integrationUuids

    • info

      for the query request parameter limit, the max was increased from 100.00 to 500.00

    • info

      for the query request parameter status, the type was generalized from string to array

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property //// to the response with the status

    • info

      added the required property //// to the response with the status

    • info

      the response required property //// became not read-only for the status

    • info

      the response required property //// became not read-only for the status

    • info

      the response required property //// became not read-only for the status

    • info

      the response required property //// became not read-only for the status