Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Companies

    The companies you sell to, with their properties and owners.

    On this page

    List companies

    GET /crm/v1/companies

    Returns companies in pages, by name.

    Parameters

    NameInTypeRequiredMeaning
    owner query string Nooptional Only the records of this owner.
    status query string Nooptional Only companies that are customers, or only prospects. One of customer, prospect
    cif query string Nooptional The company with this CIF.
    externalId query string Nooptional The record that carries this externalId.
    limit query integer Nooptional Records per page. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of records. CompanyPage
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl "$RDC_BASE_URL/crm/v1/companies?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/companies?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/companies?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/companies?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/companies?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "items": [
        {
          "id": "ffc05e95-9bb4-41f8-8389-0047121e711a",
          "name": "Market Trei Brazi SRL",
          "cif": "RO39172851",
          "owner": "ana-rusu",
          "status": "prospect",
          "industry": "Grocery store",
          "employees": 31,
          "town": "Bacău",
          "county": "Bacău",
          "source": "form",
          "summary": {
            "text": "Grocery store in Bacău with a new shop opening. Left on price in October; two requests came through the website form since.",
            "by": "ana-rusu",
            "at": "2026-11-23"
          },
          "externalId": null,
          "customFields": {},
          "revision": 1
        },
        {
          "id": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "name": "Hanul Ozana SRL",
          "cif": "RO39172541",
          "owner": "andrei-pop",
          "status": "customer",
          "industry": "Inn and restaurant",
          "employees": 18,
          "town": "Târgu Neamț",
          "county": "Neamț",
          "source": "form",
          "summary": {
            "text": "Inn and restaurant on the road to Târgu Neamț. The kitchen orders every week; a second delivery point for the events hall is being agreed.",
            "by": "andrei-pop",
            "at": "2026-11-16"
          },
          "externalId": "cust-0231",
          "customFields": {},
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Create a company

    POST /crm/v1/companies

    Records a company. It is a prospect until one of its deals is won.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    name string Yesrequired Name of the company.
    cif string Nooptional Fiscal identification code of the company.
    owner string Yesrequired Identifier of the person who owns the company.
    industry string Nooptional Line of business.
    employees integer Nooptional Number of employees.
    town string Nooptional Town.
    county string Nooptional County.
    source string Nooptional Where the company came from. One of form, referral, fair, phone
    externalId string Nooptional Your own identifier for the company. It is unique among the companies of your account.
    customFields object Nooptional Values of your custom fields, by field key. A decimal is a decimal string, a date is YYYY-MM-DD.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result. OperationResult
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The request was refused. The code is owner_not_found. Error
    409 The request was refused. The code is operation_reused or external_id_taken. Error
    422 The request was refused. The code is custom_field_unknown or custom_field_invalid. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl -X POST "$RDC_BASE_URL/crm/v1/companies" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "44a8eb19-bcfd-401a-b2b6-c411f3db86cb",
      "name": "Hanul Ozana SRL",
      "cif": "RO39172541",
      "owner": "andrei-pop",
      "industry": "Inn and restaurant",
      "employees": 18,
      "town": "Târgu Neamț",
      "county": "Neamț",
      "source": "form",
      "externalId": "cust-0231"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/companies`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "44a8eb19-bcfd-401a-b2b6-c411f3db86cb",
        "name": "Hanul Ozana SRL",
        "cif": "RO39172541",
        "owner": "andrei-pop",
        "industry": "Inn and restaurant",
        "employees": 18,
        "town": "Târgu Neamț",
        "county": "Neamț",
        "source": "form",
        "externalId": "cust-0231"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/companies',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '44a8eb19-bcfd-401a-b2b6-c411f3db86cb',
            'name': 'Hanul Ozana SRL',
            'cif': 'RO39172541',
            'owner': 'andrei-pop',
            'industry': 'Inn and restaurant',
            'employees': 18,
            'town': 'Târgu Neamț',
            'county': 'Neamț',
            'source': 'form',
            'externalId': 'cust-0231',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "44a8eb19-bcfd-401a-b2b6-c411f3db86cb",
      "name": "Hanul Ozana SRL",
      "cif": "RO39172541",
      "owner": "andrei-pop",
      "industry": "Inn and restaurant",
      "employees": 18,
      "town": "Târgu Neamț",
      "county": "Neamț",
      "source": "form",
      "externalId": "cust-0231"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/companies');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/companies");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "44a8eb19-bcfd-401a-b2b6-c411f3db86cb",
      "name": "Hanul Ozana SRL",
      "cif": "RO39172541",
      "owner": "andrei-pop",
      "industry": "Inn and restaurant",
      "employees": 18,
      "town": "Târgu Neamț",
      "county": "Neamț",
      "source": "form",
      "externalId": "cust-0231"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "44a8eb19-bcfd-401a-b2b6-c411f3db86cb",
      "status": "accepted",
      "aggregateRevision": 1
    }

    Get a company

    GET /crm/v1/companies/{companyId}

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Responses

    StatusMeaningBody
    200 The record at its current revision. Company
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The request was refused. The code is company_not_found. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl "$RDC_BASE_URL/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "id": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "name": "Hanul Ozana SRL",
      "cif": "RO39172541",
      "owner": "andrei-pop",
      "status": "customer",
      "industry": "Inn and restaurant",
      "employees": 18,
      "town": "Târgu Neamț",
      "county": "Neamț",
      "source": "form",
      "summary": {
        "text": "Inn and restaurant on the road to Târgu Neamț. The kitchen orders every week; a second delivery point for the events hall is being agreed.",
        "by": "andrei-pop",
        "at": "2026-11-16"
      },
      "externalId": "cust-0231",
      "customFields": {},
      "revision": 1
    }

    Update a company

    PATCH /crm/v1/companies/{companyId}

    Changes the fields you send and leaves the others as they are. The request is refused with 409 when expectedRevision is not the current revision.

    Parameters

    NameInTypeRequiredMeaning
    companyId path string (uuid) Yesrequired The company.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    expectedRevision integer Yesrequired The revision of the company you read.
    owner string Nooptional Identifier of the new owner.
    industry string Nooptional Line of business.
    employees integer Nooptional Number of employees.
    town string Nooptional Town.
    county string Nooptional County.
    externalId string Nooptional Your own identifier for the company. It is unique among the companies of your account.
    customFields object Nooptional Values of your custom fields, by field key. A decimal is a decimal string, a date is YYYY-MM-DD.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result. OperationResult
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The request was refused. The code is company_not_found or owner_not_found. Error
    409 The request was refused. The code is revision_conflict, operation_reused or external_id_taken. Error
    422 The request was refused. The code is custom_field_unknown or custom_field_invalid. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl -X PATCH "$RDC_BASE_URL/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "412dcfb7-fd2e-4f1e-9506-5e798a98c0a6",
      "expectedRevision": 1,
      "customFields": {
        "delivery_days": "Tuesday and Friday"
      }
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3`, {
      method: 'PATCH',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "412dcfb7-fd2e-4f1e-9506-5e798a98c0a6",
        "expectedRevision": 1,
        "customFields": {
          "delivery_days": "Tuesday and Friday"
        }
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'PATCH',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '412dcfb7-fd2e-4f1e-9506-5e798a98c0a6',
            'expectedRevision': 1,
            'customFields': {
                'delivery_days': 'Tuesday and Friday',
            },
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "412dcfb7-fd2e-4f1e-9506-5e798a98c0a6",
      "expectedRevision": 1,
      "customFields": {
        "delivery_days": "Tuesday and Friday"
      }
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'PATCH',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Patch, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/companies/61d54dde-e1f3-43da-b2fc-a4a21540e5f3");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "412dcfb7-fd2e-4f1e-9506-5e798a98c0a6",
      "expectedRevision": 1,
      "customFields": {
        "delivery_days": "Tuesday and Friday"
      }
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "412dcfb7-fd2e-4f1e-9506-5e798a98c0a6",
      "status": "accepted",
      "aggregateRevision": 2
    }