POST
/api/public/v1/legal-entities

Create a legal entity

Create a new legal entity in your company.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Dev Tools → API, to an assistant or CLI sign-in when you approve or edit it under Dev Tools, and to a teammate under Employee → Permissions.

settings:write

Request Body

PropertyTypeDescription
typestringEntity type.
namestringLegal name.
statusstringEntity status.
countrystringCountry.
emailstringContact email.
phonestringContact phone.
mccstringMerchant category code.
productDescriptionstringProduct description.
dbastringDBA name.
websitestringWebsite URL.
autoCompliancebooleanEnable auto-compliance.
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/legal-entities" \
  -H "Authorization: Bearer your_access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "LLC",
    "name": "Acme Holdings LLC",
    "status": "FORMED",
    "country": "US",
    "email": "compliance@acme.com",
    "phone": "+15551234567",
    "mcc": "5734",
    "productDescription": "Software services"
  }'
200Example response
json
{
  "message": "Legal entity created successfully!",
  "content": {
    "legalEntity": {
      "id": "le_abc"
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Legal Entities
/legal-entities
  1. Add a legal entity and work through the formation steps.