<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
        SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
       title="Register new customer by CVR" id="registerCustomerByCvr">

    <!-- AUTO-GENERATED, DO NOT EDIT -->
    <p>This endpoint documentation is generated directly from <code>openapi.yaml</code>.</p>
    <chapter title="Endpoint" id="endpoint">
        <code-block lang="http">POST /auth/register/cvr</code-block>
    </chapter>
    <chapter title="Operation" id="operation">
        <p>Operation ID: <code>registerCustomerByCvr</code></p>
        <p>Register a new customer account using Danish CVR number</p>
    </chapter>
    <chapter title="Authentication" id="authentication"><p>No authentication required.</p></chapter>
    <chapter title="Request Body" id="request-body">
        <p>Required: yes.</p>
        <p>Content type: <code>application/json</code></p>
        <code-block lang="json">
{
  &quot;properties&quot;: {
    &quot;companyPhone&quot;: {
      &quot;description&quot;: &quot;Company phone number&quot;,
      &quot;example&quot;: 21754690,
      &quot;maximum&quot;: 9999999999,
      &quot;minimum&quot;: 10000000,
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;contactEmail&quot;: {
      &quot;description&quot;: &quot;Contact email&quot;,
      &quot;example&quot;: &quot;contact@company.dk&quot;,
      &quot;format&quot;: &quot;email&quot;,
      &quot;maxLength&quot;: 255,
      &quot;minLength&quot;: 5,
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;contactName&quot;: {
      &quot;description&quot;: &quot;Contact person name&quot;,
      &quot;example&quot;: &quot;Mikkel&quot;,
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;contactPhone&quot;: {
      &quot;description&quot;: &quot;Contact phone number&quot;,
      &quot;example&quot;: 21754690,
      &quot;maximum&quot;: 9999999999,
      &quot;minimum&quot;: 10000000,
      &quot;type&quot;: &quot;integer&quot;
    },
    &quot;cvr&quot;: {
      &quot;description&quot;: &quot;Danish CVR number&quot;,
      &quot;example&quot;: &quot;44794780&quot;,
      &quot;maxLength&quot;: 20,
      &quot;minLength&quot;: 8,
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;g_recaptcha_response&quot;: {
      &quot;description&quot;: &quot;reCAPTCHA verification token&quot;,
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;invoiceEmail&quot;: {
      &quot;description&quot;: &quot;Email for invoices&quot;,
      &quot;example&quot;: &quot;invoice@company.dk&quot;,
      &quot;format&quot;: &quot;email&quot;,
      &quot;maxLength&quot;: 255,
      &quot;minLength&quot;: 5,
      &quot;type&quot;: &quot;string&quot;
    }
  },
  &quot;required&quot;: [
    &quot;cvr&quot;,
    &quot;companyPhone&quot;,
    &quot;invoiceEmail&quot;,
    &quot;contactEmail&quot;,
    &quot;contactPhone&quot;,
    &quot;contactName&quot;,
    &quot;g_recaptcha_response&quot;
  ],
  &quot;type&quot;: &quot;object&quot;
}
        </code-block>
    </chapter>
    <chapter title="Responses" id="responses">
        <table>
            <tr><td>Status</td><td>Description</td><td>Content Types</td></tr>
            <tr><td>201</td><td>Customer registered successfully</td><td>application/json</td></tr>
            <tr><td>400</td><td></td><td></td></tr>
        </table>
        <p>Schema for response <code>201</code> (<code>application/json</code>):</p>
        <code-block lang="json">
{}
        </code-block>
    </chapter>
</topic>
