> This page is for BaaS.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://en.docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.docs.api.corpx.com/_mcp/server.

# Create company accreditation (Pessoa Jurídica)

POST https://tenant.api.corpx.com/v1/accreditations/pj
Content-Type: application/json

Opens a company (PJ) account. Every partner listed in `partners[]`
receives an individual facial-biometrics link (default flow) or an
acceptance link (external biometrics flow, `partners[].biometry`). After create,
upload the required company PDFs via
`POST /v1/accreditations/{id}/documents` (see `company.legalForm`).
The account moves to `PENDING_REVIEW` after ALL partners complete
biometrics; a CorpX operator must then approve (mandatory for PJ).
Approve with missing required PDFs needs
`forceIncompleteDocuments=true` + `reason` (audited).

For `legalForm=cooperative`, `partners[]` are the **statutory
directors** (diretores estatutários), not cooperative members.

**At least one partner must have `isAdministrator: true`.** More than
one administrator is accepted. With none, the `POST` is refused here
with `400 invalid_payload` and no biometrics link is issued. The
number of partners is not limited.

**`company.tradeName` is required.** The banking provider rejects a
CNPJ without a trade name, so an empty value is refused at creation
with `400 missing_fields` instead of failing at the end of the
journey. If the company has no registered trade name, repeat the
legal name.

**Does not deduplicate.** While status is `PENDING_BIOMETRY`, repeating
`POST` with the same CNPJ creates another accreditation (`201`). After
biometry is confirmed, a further `POST` for a document already claimed
by the tenant returns `409 already_accredited`. Cancel abandoned
pendings with `POST /v1/accreditations/{id}/cancel`. **BaaS integrators only.**

**Sending each partner back to your app.** The optional `callbackUri`
takes each partner back to your app when they finish their own facial
capture, carrying `personId` and how many partners are still pending in
`remainingPeople`. It requires the URI to be registered for your tenant
beforehand — an unregistered URI returns `400 invalid_callback_uri`.

Reference: https://en.docs.api.corpx.com/baas/referencia/accreditations/create-accreditation-pj

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries).

### Body (application/json)

This endpoint expects an AccreditationCreatePJRequest.

- `company` (AccreditationCreatePjRequestCompany, required)
- `address` (AccreditationAddress, required) — Holder/company address. `cityIbgeCode` is the 7-digit IBGE municipality code.
- `partners` (list of AccreditationCreatePjRequestPartnersItems, required)
- `callbackUri` (string, optional) — Optional. Where to send the account holder back to when the step is finished (facial capture, terms acceptance or portability authorization). Without it the holder ends on a CorpX completion page, as before. The URI must be registered for your tenant by CorpX support before the first use, and the match is **exact** — no wildcards, no prefix matching. An unregistered URI is rejected at creation time with `400 invalid_callback_uri`. Accepted: `https://` and your application's own scheme (deeplink). Rejected: `http://`, `javascript:`, `data:`, `file:`, credentials in the URI, fragments (`#`), `localhost`, private/link-local IP ranges and internal suffixes (`.local`, `.internal`). On return, CorpX appends `accreditationId`, `outcome`, `personId` (for per-person steps) and `remainingPeople` (when the accreditation has more than one person). **These parameters are not proof of anything**: they travel in the address bar and the holder can edit them. Any decision with an effect must rely on the webhook or on `GET /v1/accreditations/{accreditationId}`.

## Response

### 201

Accreditation created; per-partner links are being issued.

- `accreditationId` (string, optional)
- `accountId` (string, optional) — Account id — usable in all banking endpoints once status is ACTIVE.
- `type` (enum, optional)
  - Allowed values: `pf`, `pj`
- `document` (string, optional)
- `status` (enum, optional) — Accreditation lifecycle status.
  - Allowed values: `PENDING_BIOMETRY`, `PENDING_CONSENT`, `BIOMETRY_APPROVED`, `PENDING_REVIEW`, `INTEGRATING`, `ACTIVE`, `FAILED`
- `biometryMode` (enum, optional) — unico = CorpX-managed facial biometrics (default); external = provider enabled by CorpX on request.
  - Allowed values: `unico`, `external`
- `legalForm` (enum, optional) — PJ only — corporate form from create.
  - Allowed values: `mei`, `ltda`, `sa`, `cooperative`
- `documents` (list of AccreditationCompanyDocument, optional) — PJ only — uploaded company PDFs.
- `requiredDocumentKinds` (list of enum, optional) — PJ only — kinds required for this legalForm (operator approve gate).
  - Allowed values: `company_articles`, `company_proof_of_address`, `cnpj_card`, `financial_statements`, `business_license`, `regulatory_license`, `account_opening_terms`, `other`
- `missingDocumentKinds` (list of enum, optional) — PJ only — required kinds not yet uploaded.
  - Allowed values: `company_articles`, `company_proof_of_address`, `cnpj_card`, `financial_statements`, `business_license`, `regulatory_license`, `account_opening_terms`, `other`
- `documentsOverride` (boolean, optional) — true when an operator forced approve with incomplete docs.
- `documentsOverrideBy` (string, optional)
- `documentsOverrideReason` (string, optional)
- `documentsOverrideMissing` (list of string, optional)
- `documentsOverrideAt` (datetime, optional)
- `callbackUri` (string, optional) — Optional. Where to send the account holder back to when the step is finished (facial capture, terms acceptance or portability authorization). Without it the holder ends on a CorpX completion page, as before. The URI must be registered for your tenant by CorpX support before the first use, and the match is **exact** — no wildcards, no prefix matching. An unregistered URI is rejected at creation time with `400 invalid_callback_uri`. Accepted: `https://` and your application's own scheme (deeplink). Rejected: `http://`, `javascript:`, `data:`, `file:`, credentials in the URI, fragments (`#`), `localhost`, private/link-local IP ranges and internal suffixes (`.local`, `.internal`). On return, CorpX appends `accreditationId`, `outcome`, `personId` (for per-person steps) and `remainingPeople` (when the accreditation has more than one person). **These parameters are not proof of anything**: they travel in the address bar and the holder can edit them. Any decision with an effect must rely on the webhook or on `GET /v1/accreditations/{accreditationId}`.
- `persons` (list of AccreditationPersonView, optional)
- `errorReason` (string, optional)
- `errorMessage` (string, optional)
- `partner` (AccreditationDetailPartner, optional) — Raw refusal from the banking provider, present only when a `FAILED` accreditation was refused by it. It is the same block delivered in the `accreditation.failed` webhook — the query never shows less than the webhook. `code`, `message` and `field` are the item the catalog recognized, or `message` alone when none of the provider's codes was recognized. `errors` lists every item the provider sent, in its order, with the same three keys. Every key is optional: some refusals carry `message` only, and an accreditation refused before `errors` existed has no list. Informative — branch your code on `errorReason`, not on this.
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)

## Errors

### 400 Bad Request Error

Invalid request sent by client.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 409 Conflict Error

Document already claimed by this tenant after biometry (`already_accredited`).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 422 Unprocessable Entity Error

Validation error (ownership percent, unsupported/disabled biometry provider, etc).

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 500 Internal Server Error

Unexpected server error.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### AccreditationCreatePjRequestCompany

- `legalName` (string, required)
- `tradeName` (string, required) — Trade name. Required — the banking provider rejects a CNPJ without it. If the company has no registered trade name, repeat the legal name.
- `cnpj` (string, required) — 14 digits, no punctuation.
- `email` (string, required)
- `phone` (string, required)
- `monthlyRevenue` (double, optional)
- `legalForm` (enum, optional, default: ltda) — Corporate form. Defaults to `ltda` when omitted. Drives which PDFs are required on `POST .../documents`. For `cooperative`, `partners[]` are statutory directors (diretores estatutários).
  - Allowed values: `mei`, `ltda`, `sa`, `cooperative`

### AccreditationAddress

Holder/company address. `cityIbgeCode` is the 7-digit IBGE municipality code.

- `zipCode` (string, required)
- `street` (string, required)
- `number` (string, required)
- `city` (string, required)
- `state` (string, required)
- `cityIbgeCode` (string, required)
- `complement` (string, optional)
- `neighborhood` (string, optional)

### AccreditationCreatePjRequestPartnersItems

- `name` (string, required)
- `cpf` (string, required)
- `birthDate` (date, required)
- `email` (string, required)
- `phone` (string, required)
- `ownershipPercent` (double, required)
- `isAdministrator` (boolean, optional) — Whether this partner/director is a company administrator. At least one partner in the array must carry `true`; more than one is accepted.
- `biometry` (AccreditationBiometry, optional) — Dracma verification already completed by the integrator. Send it on the holder (PF) or on every partner (PJ). The API reads the verification with the tenant Dracma credential and finishes biometrics in that call: there is no capture link and no acceptance page. Requires an active Dracma credential on the tenant.

### AccreditationCompanyDocument

- `documentId` (string, optional)
- `kind` (enum, optional)
  - Allowed values: `company_articles`, `company_proof_of_address`, `cnpj_card`, `financial_statements`, `business_license`, `regulatory_license`, `account_opening_terms`, `other`
- `fileName` (string, optional)
- `deliveryStatus` (enum, optional) — pending_upload means the slot exists but no file was PUT. Only delivered fulfils the requirement.
  - Allowed values: `pending_upload`, `scanning`, `delivered`, `rejected`
- `uploadedAt` (datetime, optional) — Present only when deliveryStatus is delivered.
- `sizeBytes` (long, optional) — Present only when deliveryStatus is delivered.

### AccreditationPersonView

Per-person biometrics/acceptance progress.

- `personId` (string, optional) — Stable identifier of this person inside the accreditation. It is the value returned in the `personId` parameter of the `callbackUri` redirect — the CPF is never placed in a URI that ends up in browser history and proxy logs.
- `cpf` (string, optional)
- `name` (string, optional)
- `biometryStatus` (enum, optional)
  - Allowed values: `PENDING`, `APPROVED`, `FAILED`, `EXPIRED`
- `biometryLink` (string, optional) — Facial capture link (default Unico flow). May be absent right after creation — it is delivered via the `accreditation.biometry.link.created` webhook as soon as it is issued.
- `acceptanceStatus` (string, optional) — External biometrics flow only (PENDING, ACCEPTED, DENIED).
- `acceptanceLink` (string, optional) — Terms acceptance page URL (external biometrics flow only). Built from the stored token; may be absent right after creation — also delivered via `accreditation.acceptance.link.created`.
- `consentStatus` (enum, optional) — Present only when the CPF already has an account and the tenant has automatic portability enabled (status `PENDING_CONSENT`). There is no new account to open: the account holder must authorize this tenant to operate the existing account.
  - Allowed values: `PENDING`, `ACCEPTED`, `DECLINED`, `DENIED`, `EXPIRED`
- `consentLink` (string, optional) — Authorization page URL — deliver it to the account holder. The page requires an identity verification (live selfie checked against official records by CPF) and discloses account number and current balance before the authorization. Also delivered via `accreditation.consent.link.created`.
- `consentExpiresAt` (datetime, optional) — Consent link expiry (7 days). The journey expires after 30 days.
- `linkExpiresAt` (datetime, optional)

### AccreditationDetailPartner

Raw refusal from the banking provider, present only when a `FAILED` accreditation was refused by it. It is the same block delivered in the `accreditation.failed` webhook — the query never shows less than the webhook. `code`, `message` and `field` are the item the catalog recognized, or `message` alone when none of the provider's codes was recognized. `errors` lists every item the provider sent, in its order, with the same three keys. Every key is optional: some refusals carry `message` only, and an accreditation refused before `errors` existed has no list. Informative — branch your code on `errorReason`, not on this.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional)
- `errors` (list of AccreditationDetailPartnerErrorsItems, optional) — Every item from the provider's error list, in the order it sent them. `code`, `message` and `field` above stay the recognized item.

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

### AccreditationBiometry

Dracma verification already completed by the integrator. Send it on the holder (PF) or on every partner (PJ). The API reads the verification with the tenant Dracma credential and finishes biometrics in that call: there is no capture link and no acceptance page. Requires an active Dracma credential on the tenant.

- `provider` (enum, required)
  - Allowed values: `dracma`
- `evidenceId` (string, required) — Verification id returned by Dracma. Must be `approved` and bound to the same CPF. Each id approves one live accreditation.
- `metadata` (map from string to any, optional) — Ignored for `provider=dracma`.

### AccreditationDetailPartnerErrorsItems

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional)

## Examples

**Request**

```json
{
  "company": {
    "legalName": "MARIA DA SILVA",
    "tradeName": "MARIA DA SILVA",
    "cnpj": "12345678000190",
    "email": "maria.silva@example.com",
    "phone": "+5511999999999",
    "monthlyRevenue": 150.75,
    "legalForm": "ltda"
  },
  "address": {
    "zipCode": "01310100",
    "street": "Avenida Paulista",
    "number": "1000",
    "city": "São Paulo",
    "state": "SP",
    "cityIbgeCode": "3550308",
    "complement": "Sala 501",
    "neighborhood": "Centro"
  },
  "partners": [
    {
      "name": "MARIA DA SILVA",
      "cpf": "12345678900",
      "birthDate": "2026-02-20",
      "email": "maria.silva@example.com",
      "phone": "+5511999999999",
      "ownershipPercent": 50,
      "isAdministrator": true,
      "biometry": {
        "provider": "dracma",
        "evidenceId": "ver_01hxyz",
        "metadata": {}
      }
    }
  ],
  "callbackUri": "https://app.yourcompany.com/onboarding/done"
}
```

**Response**

```json
{
  "accreditationId": "acr_9f8e7d6c5b4a",
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "type": "pf",
  "document": "12345678900",
  "status": "PENDING_BIOMETRY",
  "biometryMode": "unico",
  "legalForm": "mei",
  "documents": [
    {
      "documentId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
      "kind": "company_articles",
      "fileName": "MARIA DA SILVA",
      "deliveryStatus": "pending_upload",
      "uploadedAt": "2026-02-20T08:33:39Z",
      "sizeBytes": 50
    }
  ],
  "requiredDocumentKinds": [
    "company_articles"
  ],
  "missingDocumentKinds": [
    "company_articles"
  ],
  "documentsOverride": true,
  "documentsOverrideBy": "12345678900",
  "documentsOverrideReason": "12345678900",
  "documentsOverrideMissing": [
    "12345678900"
  ],
  "documentsOverrideAt": "2026-02-20T08:33:39Z",
  "callbackUri": "https://app.yourcompany.com/onboarding/done",
  "persons": [
    {
      "personId": "prs_3b1c9a7f2e4d",
      "cpf": "12345678900",
      "name": "MARIA DA SILVA",
      "biometryStatus": "PENDING",
      "biometryLink": "https://onboarding.corpx.com/c/8c1f6a2e",
      "acceptanceStatus": "COMPLETED",
      "acceptanceLink": "https://onboarding.corpx.com/c/8c1f6a2e",
      "consentStatus": "PENDING",
      "consentLink": "https://onboarding.corpx.com/c/8c1f6a2e",
      "consentExpiresAt": "2026-02-20T08:33:39Z",
      "linkExpiresAt": "2026-02-20T08:33:39Z"
    }
  ],
  "partner": {
    "code": "request.body.invalid",
    "message": "A solicitação é inválida: O número não pode exceder 10 caracteres.",
    "field": "address.number"
  },
  "createdAt": "2026-02-20T08:33:39Z",
  "updatedAt": "2026-02-20T08:33:39Z"
}
```

**SDK Code**

```python Accreditations_createAccreditationPj_example
import requests

url = "https://tenant.api.corpx.com/v1/accreditations/pj"

payload = {
    "company": {
        "legalName": "MARIA DA SILVA",
        "tradeName": "MARIA DA SILVA",
        "cnpj": "12345678000190",
        "email": "maria.silva@example.com",
        "phone": "+5511999999999",
        "monthlyRevenue": 150.75,
        "legalForm": "ltda"
    },
    "address": {
        "zipCode": "01310100",
        "street": "Avenida Paulista",
        "number": "1000",
        "city": "São Paulo",
        "state": "SP",
        "cityIbgeCode": "3550308",
        "complement": "Sala 501",
        "neighborhood": "Centro"
    },
    "partners": [
        {
            "name": "MARIA DA SILVA",
            "cpf": "12345678900",
            "birthDate": "2026-02-20",
            "email": "maria.silva@example.com",
            "phone": "+5511999999999",
            "ownershipPercent": 50,
            "isAdministrator": True,
            "biometry": {
                "provider": "dracma",
                "evidenceId": "ver_01hxyz",
                "metadata": {}
            }
        }
    ],
    "callbackUri": "https://app.yourcompany.com/onboarding/done"
}
headers = {
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Accreditations_createAccreditationPj_example
const url = 'https://tenant.api.corpx.com/v1/accreditations/pj';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"company":{"legalName":"MARIA DA SILVA","tradeName":"MARIA DA SILVA","cnpj":"12345678000190","email":"maria.silva@example.com","phone":"+5511999999999","monthlyRevenue":150.75,"legalForm":"ltda"},"address":{"zipCode":"01310100","street":"Avenida Paulista","number":"1000","city":"São Paulo","state":"SP","cityIbgeCode":"3550308","complement":"Sala 501","neighborhood":"Centro"},"partners":[{"name":"MARIA DA SILVA","cpf":"12345678900","birthDate":"2026-02-20","email":"maria.silva@example.com","phone":"+5511999999999","ownershipPercent":50,"isAdministrator":true,"biometry":{"provider":"dracma","evidenceId":"ver_01hxyz","metadata":{}}}],"callbackUri":"https://app.yourcompany.com/onboarding/done"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Accreditations_createAccreditationPj_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://tenant.api.corpx.com/v1/accreditations/pj"

	payload := strings.NewReader("{\n  \"company\": {\n    \"legalName\": \"MARIA DA SILVA\",\n    \"tradeName\": \"MARIA DA SILVA\",\n    \"cnpj\": \"12345678000190\",\n    \"email\": \"maria.silva@example.com\",\n    \"phone\": \"+5511999999999\",\n    \"monthlyRevenue\": 150.75,\n    \"legalForm\": \"ltda\"\n  },\n  \"address\": {\n    \"zipCode\": \"01310100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"cityIbgeCode\": \"3550308\",\n    \"complement\": \"Sala 501\",\n    \"neighborhood\": \"Centro\"\n  },\n  \"partners\": [\n    {\n      \"name\": \"MARIA DA SILVA\",\n      \"cpf\": \"12345678900\",\n      \"birthDate\": \"2026-02-20\",\n      \"email\": \"maria.silva@example.com\",\n      \"phone\": \"+5511999999999\",\n      \"ownershipPercent\": 50,\n      \"isAdministrator\": true,\n      \"biometry\": {\n        \"provider\": \"dracma\",\n        \"evidenceId\": \"ver_01hxyz\",\n        \"metadata\": {}\n      }\n    }\n  ],\n  \"callbackUri\": \"https://app.yourcompany.com/onboarding/done\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Accreditations_createAccreditationPj_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/accreditations/pj")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"company\": {\n    \"legalName\": \"MARIA DA SILVA\",\n    \"tradeName\": \"MARIA DA SILVA\",\n    \"cnpj\": \"12345678000190\",\n    \"email\": \"maria.silva@example.com\",\n    \"phone\": \"+5511999999999\",\n    \"monthlyRevenue\": 150.75,\n    \"legalForm\": \"ltda\"\n  },\n  \"address\": {\n    \"zipCode\": \"01310100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"cityIbgeCode\": \"3550308\",\n    \"complement\": \"Sala 501\",\n    \"neighborhood\": \"Centro\"\n  },\n  \"partners\": [\n    {\n      \"name\": \"MARIA DA SILVA\",\n      \"cpf\": \"12345678900\",\n      \"birthDate\": \"2026-02-20\",\n      \"email\": \"maria.silva@example.com\",\n      \"phone\": \"+5511999999999\",\n      \"ownershipPercent\": 50,\n      \"isAdministrator\": true,\n      \"biometry\": {\n        \"provider\": \"dracma\",\n        \"evidenceId\": \"ver_01hxyz\",\n        \"metadata\": {}\n      }\n    }\n  ],\n  \"callbackUri\": \"https://app.yourcompany.com/onboarding/done\"\n}"

response = http.request(request)
puts response.read_body
```

```java Accreditations_createAccreditationPj_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://tenant.api.corpx.com/v1/accreditations/pj")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"company\": {\n    \"legalName\": \"MARIA DA SILVA\",\n    \"tradeName\": \"MARIA DA SILVA\",\n    \"cnpj\": \"12345678000190\",\n    \"email\": \"maria.silva@example.com\",\n    \"phone\": \"+5511999999999\",\n    \"monthlyRevenue\": 150.75,\n    \"legalForm\": \"ltda\"\n  },\n  \"address\": {\n    \"zipCode\": \"01310100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"cityIbgeCode\": \"3550308\",\n    \"complement\": \"Sala 501\",\n    \"neighborhood\": \"Centro\"\n  },\n  \"partners\": [\n    {\n      \"name\": \"MARIA DA SILVA\",\n      \"cpf\": \"12345678900\",\n      \"birthDate\": \"2026-02-20\",\n      \"email\": \"maria.silva@example.com\",\n      \"phone\": \"+5511999999999\",\n      \"ownershipPercent\": 50,\n      \"isAdministrator\": true,\n      \"biometry\": {\n        \"provider\": \"dracma\",\n        \"evidenceId\": \"ver_01hxyz\",\n        \"metadata\": {}\n      }\n    }\n  ],\n  \"callbackUri\": \"https://app.yourcompany.com/onboarding/done\"\n}")
  .asString();
```

```php Accreditations_createAccreditationPj_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accreditations/pj', [
  'body' => '{
  "company": {
    "legalName": "MARIA DA SILVA",
    "tradeName": "MARIA DA SILVA",
    "cnpj": "12345678000190",
    "email": "maria.silva@example.com",
    "phone": "+5511999999999",
    "monthlyRevenue": 150.75,
    "legalForm": "ltda"
  },
  "address": {
    "zipCode": "01310100",
    "street": "Avenida Paulista",
    "number": "1000",
    "city": "São Paulo",
    "state": "SP",
    "cityIbgeCode": "3550308",
    "complement": "Sala 501",
    "neighborhood": "Centro"
  },
  "partners": [
    {
      "name": "MARIA DA SILVA",
      "cpf": "12345678900",
      "birthDate": "2026-02-20",
      "email": "maria.silva@example.com",
      "phone": "+5511999999999",
      "ownershipPercent": 50,
      "isAdministrator": true,
      "biometry": {
        "provider": "dracma",
        "evidenceId": "ver_01hxyz",
        "metadata": {}
      }
    }
  ],
  "callbackUri": "https://app.yourcompany.com/onboarding/done"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp Accreditations_createAccreditationPj_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accreditations/pj");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"company\": {\n    \"legalName\": \"MARIA DA SILVA\",\n    \"tradeName\": \"MARIA DA SILVA\",\n    \"cnpj\": \"12345678000190\",\n    \"email\": \"maria.silva@example.com\",\n    \"phone\": \"+5511999999999\",\n    \"monthlyRevenue\": 150.75,\n    \"legalForm\": \"ltda\"\n  },\n  \"address\": {\n    \"zipCode\": \"01310100\",\n    \"street\": \"Avenida Paulista\",\n    \"number\": \"1000\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"cityIbgeCode\": \"3550308\",\n    \"complement\": \"Sala 501\",\n    \"neighborhood\": \"Centro\"\n  },\n  \"partners\": [\n    {\n      \"name\": \"MARIA DA SILVA\",\n      \"cpf\": \"12345678900\",\n      \"birthDate\": \"2026-02-20\",\n      \"email\": \"maria.silva@example.com\",\n      \"phone\": \"+5511999999999\",\n      \"ownershipPercent\": 50,\n      \"isAdministrator\": true,\n      \"biometry\": {\n        \"provider\": \"dracma\",\n        \"evidenceId\": \"ver_01hxyz\",\n        \"metadata\": {}\n      }\n    }\n  ],\n  \"callbackUri\": \"https://app.yourcompany.com/onboarding/done\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Accreditations_createAccreditationPj_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "company": [
    "legalName": "MARIA DA SILVA",
    "tradeName": "MARIA DA SILVA",
    "cnpj": "12345678000190",
    "email": "maria.silva@example.com",
    "phone": "+5511999999999",
    "monthlyRevenue": 150.75,
    "legalForm": "ltda"
  ],
  "address": [
    "zipCode": "01310100",
    "street": "Avenida Paulista",
    "number": "1000",
    "city": "São Paulo",
    "state": "SP",
    "cityIbgeCode": "3550308",
    "complement": "Sala 501",
    "neighborhood": "Centro"
  ],
  "partners": [
    [
      "name": "MARIA DA SILVA",
      "cpf": "12345678900",
      "birthDate": "2026-02-20",
      "email": "maria.silva@example.com",
      "phone": "+5511999999999",
      "ownershipPercent": 50,
      "isAdministrator": true,
      "biometry": [
        "provider": "dracma",
        "evidenceId": "ver_01hxyz",
        "metadata": []
      ]
    ]
  ],
  "callbackUri": "https://app.yourcompany.com/onboarding/done"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accreditations/pj")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```