> ## Documentation Index
> Fetch the complete documentation index at: https://developers.portao3.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# /realms/{realmId}/organizations/{organizationId}/customer



## OpenAPI

````yaml /api-reference/registry.openapi.json post /realms/{realmId}/organizations/{organizationId}/customer
openapi: 3.0.3
info:
  title: Registry
  version: 1.0.0
  description: >-
    Portão 3 registry API. Generated by tools/openapi from code (routes +
    security) and the hand-written spec (request/response bodies). Confidence
    tiers: generated:typed=10 copied:manual=0 unknown=6.
servers:
  - url: https://api.registry.v2.portao3.com.br/
    description: production
  - url: https://api.registry.dev.3pers.com.br/
    description: development
security:
  - bearerAuth: []
tags:
  - name: Customer Billing
  - name: Customers
  - name: Companies
paths:
  /realms/{realmId}/organizations/{organizationId}/customer:
    post:
      tags:
        - Customers
      summary: /realms/{realmId}/organizations/{organizationId}/customer
      operationId: postRealmsByRealmIdOrganizationsByOrganizationIdCustomer
      parameters:
        - name: realmId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                trandingName:
                  type: string
                email:
                  type: string
                  format: email
                  pattern: >-
                    ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                phoneNumber:
                  type: string
                  pattern: ^\+55[0-9]{10,11}$
                document:
                  type: string
                  minLength: 1
                  pattern: ^[A-Za-z0-9]+$
                address:
                  type: object
                  properties:
                    city:
                      type: string
                      minLength: 1
                      maxLength: 50
                    neighborhood:
                      type: string
                      minLength: 1
                      maxLength: 100
                      pattern: ^[A-Za-zÀ-ú 0-9.,\-]+$
                    number:
                      type: string
                      minLength: 1
                      pattern: ^[A-Za-z0-9\-]+$
                    state:
                      type: string
                      enum:
                        - AC
                        - AL
                        - AP
                        - AM
                        - BA
                        - CE
                        - ES
                        - GO
                        - MA
                        - MT
                        - MS
                        - MG
                        - PA
                        - PB
                        - PR
                        - PE
                        - PI
                        - RJ
                        - RN
                        - RS
                        - RO
                        - RR
                        - SC
                        - SP
                        - SE
                        - TO
                        - DF
                    street:
                      type: string
                      minLength: 1
                      maxLength: 100
                      pattern: ^[A-Za-zÀ-ú 0-9.,\-]+$
                    postalCode:
                      type: string
                      minLength: 1
                      pattern: ^[0-9]{5}-[0-9]{3}$
                    complement:
                      type: string
                      maxLength: 50
                  required:
                    - city
                    - neighborhood
                    - number
                    - state
                    - street
                    - postalCode
                customFields:
                  type: object
                  additionalProperties: {}
              required:
                - name
                - email
                - phoneNumber
                - document
                - address
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  address:
                    type: object
                    properties:
                      street:
                        type: string
                      number:
                        type: string
                      complement:
                        type: string
                      neighborhood:
                        type: string
                      city:
                        type: string
                      state:
                        type: string
                      postalCode:
                        type: string
                  name:
                    type: string
                  document:
                    type: string
                  documentType:
                    type: string
                  trandingName:
                    type: string
                  email:
                    type: string
                  phoneNumber:
                    type: string
                  hash:
                    type: string
                  customFields:
                    type: object
                    additionalProperties: {}
                    description: >-
                      The `{ [slug]: value }` wire/storage map (custom-fields
                      map-shape migration, issue #5167 Phase 4) — replaces the
                      retired def-stamped array element (`{id, label, values,
                      identifier, externalIdentifier, type, version}`). Stored
                      verbatim; no validation at this layer (step 4).
                required:
                  - id
                  - hash
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````