> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Criar cliente

> Cria um recurso de cliente com dados pessoais, de cobrança e de entrega para a inicialização do checkout

Esta requisição cria um recurso de cliente. Você precisa fornecer vários parâmetros do cliente no corpo da requisição, incluindo o identificador único do cliente no lojista externo, informações pessoais e os endereços de cobrança e de entrega.

Criar um cliente gera um `id` de cliente que pode ser usado para inicializar o checkout.

> [!NOTE]
>
> **O `merchant_customer_id` tem escopo na organização, não na conta**
>
> Se sua organização tem várias contas, o `merchant_customer_id` ainda precisa ser único entre todas elas. Criar um cliente a partir de uma conta com um id já usado por outra conta da mesma organização retorna `CUSTOMER_ID_DUPLICATED`. Consulte [Contas](https://docs.y.uno/pt-br/docs/using-yuno/organization/accounts.md#customers-and-payment-methods-are-organization-scoped) para saber como estruturar os ids se você opera várias empresas em uma mesma organização.

> [!WARNING]
>
> **Importante**
>
> Há certos objetos que não são obrigatórios ao criar um "Cliente". No entanto, quanto mais informações você fornecer, mais isso pode ajudar nas taxas de aprovação, conversão e prevenção de fraude.


## OpenAPI

````yaml openapi/pt-br/customers/create-customer.json POST /customers
openapi: 3.1.0
info:
  title: customer-api
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /customers:
    post:
      summary: Criar cliente
      operationId: create-customer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_customer_id
              properties:
                merchant_customer_id:
                  type: string
                  description: >-
                    O identificador único do cliente no lojista externo (MAX
                    255; MIN 3). Único por organização, não por conta:
                    reutilizar um id já usado por outra conta da mesma
                    organização retorna CUSTOMER_ID_DUPLICATED.
                merchant_customer_created_at:
                  type: string
                  description: >-
                    Data de registro do cliente na plataforma do lojista (MAX
                    27; MIN 27; [ISO
                    8601](https://en.wikipedia.org/wiki/ISO_8601))
                  format: date-time
                first_name:
                  type: string
                  description: O primeiro nome do cliente (MAX 255; MIN 3).
                last_name:
                  type: string
                  description: O sobrenome do cliente (MAX 255; MIN 3).
                gender:
                  type: string
                  description: O gênero do cliente.
                date_of_birth:
                  type: string
                  description: >-
                    A data de nascimento do cliente no formato YYYY-MM-DD (MAX
                    10; MIN 10).
                email:
                  type: string
                  description: O e-mail do cliente (MAX 255; MIN 3).
                nationality:
                  type: string
                  description: >-
                    A nacionalidade do cliente (MAX 2; MIN 2; [ISO
                    3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                country:
                  type: string
                  description: >-
                    O país do cliente (MAX 2; MIN 2; [ISO
                    3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                document:
                  type: object
                  description: >-
                    Especifica o objeto de documento do cliente, incluindo o
                    número e o tipo. Este objeto não é obrigatório. No entanto,
                    se você enviar essas informações, a experiência de pagamento
                    do seu usuário será aprimorada.
                  properties:
                    document_number:
                      type: string
                      description: >-
                        O número do documento do cliente (MAX 40; MIN 3). Este
                        campo é obrigatório se o objeto 'document' for incluído
                        na requisição.
                    document_type:
                      type: string
                      description: >-
                        O tipo de documento do cliente (MAX 6, MIN 3;
                        [Referência de países](country-reference)).
                phone:
                  type: object
                  description: >-
                    Especifica o objeto de número de telefone do cliente. Este
                    objeto não é obrigatório. No entanto, se você enviar essas
                    informações, a experiência de pagamento do seu usuário será
                    aprimorada.
                  properties:
                    country_code:
                      type: string
                      description: >-
                        O código de discagem do país do telefone do cliente (MAX
                        3; MIN 1). Valores possíveis: consulte a [Referência de
                        países.](country-reference) Este campo é obrigatório se
                        o objeto 'phone' for incluído na requisição.
                    number:
                      type: string
                      description: >-
                        O número de telefone do cliente, sem o código do país
                        (MAX 32; MIN 1). Este campo é obrigatório se o objeto
                        'phone' for incluído na requisição.
                billing_address:
                  type: object
                  description: >-
                    Especifica o objeto de endereço de cobrança do cliente. Este
                    objeto não é obrigatório. No entanto, se você enviar essas
                    informações, a experiência de pagamento do seu usuário será
                    aprimorada.
                  properties:
                    address_line_1:
                      type: string
                      description: >-
                        A linha principal do endereço de cobrança do cliente
                        (MAX 255; MIN 3). Este campo é obrigatório se o objeto
                        'billing_address' for incluído na requisição.
                    address_line_2:
                      type: string
                      description: >-
                        A linha secundária do endereço de cobrança do cliente
                        (MAX 255; MIN 3).
                    building_number_1:
                      type: string
                      description: O número principal do imóvel do cliente (MAX 255; MIN 3)
                    building_number_2:
                      type: string
                      description: >-
                        O número secundário do imóvel do cliente (MAX 255; MIN
                        3)
                    city:
                      type: string
                      description: >-
                        A cidade considerada para o endereço de cobrança (MAX
                        255; MIN 3). Este campo é obrigatório se o objeto
                        'billing_address' for incluído na requisição.
                    country:
                      type: string
                      description: >-
                        O país considerado para o endereço de cobrança (MAX 2;
                        MIN 2; [ISO 3166-1](country-reference)). Este campo é
                        obrigatório se o objeto 'billing_address' for incluído
                        na requisição.
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: >-
                        O estado considerado para o endereço de cobrança (MAX
                        255; MIN 3).
                    zip_code:
                      type: string
                      description: >-
                        O CEP considerado para o endereço de cobrança (MAX 10;
                        MIN 5).
                    neighborhood:
                      type: string
                      description: >-
                        O bairro da linha de endereço do cliente (MAX 255; MIN
                        1).
                  required:
                    - address_line_1
                    - city
                shipping_address:
                  type: object
                  description: >-
                    Especifica o objeto de endereço de entrega do cliente. Este
                    objeto não é obrigatório. No entanto, se você enviar essas
                    informações, a experiência de pagamento do seu usuário será
                    aprimorada.
                  properties:
                    address_line_1:
                      type: string
                      description: >-
                        A linha principal do endereço de entrega do cliente (MAX
                        255; MIN 3). Este campo é obrigatório se o objeto
                        'shipping_address' for incluído na requisição.
                    address_line_2:
                      type: string
                      description: >-
                        A linha secundária do endereço de entrega do cliente
                        (MAX 255; MIN 3).
                    building_number_1:
                      type: string
                      description: O número principal do imóvel do cliente (MAX 255; MIN 3)
                    building_number_2:
                      type: string
                      description: >-
                        O número secundário do imóvel do cliente (MAX 255; MIN
                        3)
                    city:
                      type: string
                      description: >-
                        A cidade considerada para o endereço de entrega (MAX
                        255; MIN 3). Este campo é obrigatório se o objeto
                        'shipping_address' for incluído na requisição.
                    country:
                      type: string
                      description: >-
                        O país considerado para o endereço de entrega (MAX 2;
                        MIN 2; [ISO 3166-1](country-reference)). Este campo é
                        obrigatório se o objeto 'shipping_address' for incluído
                        na requisição.
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: >-
                        O estado considerado para o endereço de entrega (MAX
                        255; MIN 3).
                    zip_code:
                      type: string
                      description: >-
                        O CEP considerado para o endereço de entrega (MAX 10;
                        MIN 5).
                    neighborhood:
                      type: string
                      description: >-
                        O bairro da linha de endereço do cliente (MAX 255; MIN
                        1).
                  required:
                    - address_line_1
                    - city
                    - country
                metadata:
                  type: array
                  description: >-
                    Especifica uma lista de objetos de metadados. Você pode
                    adicionar até 50 objetos de metadados.
                  items:
                    properties:
                      key:
                        type: string
                        description: A chave de metadados (MAX 48).
                      value:
                        type: string
                        description: O valor da chave de metadados (MAX 512).
                    required:
                      - key
                      - value
                    type: object
            examples:
              Customer (full data):
                value:
                  merchant_customer_id: '4321'
                  merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                  first_name: John
                  last_name: Doe
                  email: john.doe@email.com
                  gender: M
                  date_of_birth: '1990-02-28'
                  nationality: US
                  country: US
                  document:
                    document_type: SSN
                    document_number: 123-45-6789
                  phone:
                    number: '5551234567'
                    country_code: '1'
                  billing_address:
                    address_line_1: 123 Main St
                    address_line_2: Apt 4B
                    country: US
                    state: NY
                    city: New York
                    zip_code: '10001'
                    neighborhood: Manhattan
                  shipping_address:
                    address_line_1: 123 Main St
                    address_line_2: Apt 4B
                    country: US
                    state: NY
                    city: New York
                    zip_code: '10001'
                    neighborhood: Manhattan
                  metadata:
                    - key: ID
                      value: '123456'
              Customer (min. data):
                value:
                  merchant_customer_id: '4321'
                  first_name: John
                  last_name: Doe
                  email: john.doe@email.com
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Customer (full data):
                  value:
                    id: bf64527c-5531-4ece-bf2c-51a8e775d8e1
                    merchant_customer_id: AAAAAAAAAAAAAA0002
                    first_name: John
                    last_name: Doe
                    gender: M
                    date_of_birth: '1990-02-28'
                    email: john.doe@email.com
                    nationality: US
                    country: US
                    document:
                      document_type: SSN
                      document_number: 123-45-6789
                    phone:
                      number: '5551234567'
                      country_code: '1'
                    billing_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      country: US
                      state: NY
                      city: New York
                      zip_code: '10001'
                      neighborhood: Manhattan
                    shipping_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      country: US
                      state: NY
                      city: New York
                      zip_code: '10001'
                      neighborhood: Manhattan
                    metadata:
                      - key: ID
                        value: '123456'
                    created_at: '2025-04-24T18:54:54.351969Z'
                    updated_at: '2025-04-24T18:54:54.351971Z'
                    merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                Customer (min. data):
                  value:
                    id: fe17085f-e9fd-4882-a42a-21eacc10fbb6
                    merchant_customer_id: AAAAAAA000001
                    first_name: John
                    last_name: Doe
                    gender: null
                    date_of_birth: null
                    email: john.doe@email.com
                    nationality: null
                    country: null
                    document: null
                    phone: null
                    billing_address: null
                    shipping_address: null
                    created_at: '2025-04-24T18:54:15.805086Z'
                    updated_at: '2025-04-24T18:54:15.805088Z'
                    merchant_customer_created_at: null
              schema:
                oneOf:
                  - title: Cliente (dados completos)
                    type: object
                    properties:
                      id:
                        type: string
                        example: bf64527c-5531-4ece-bf2c-51a8e775d8e1
                      merchant_customer_id:
                        type: string
                        example: AAAAAAAAAAAAAA0002
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      gender:
                        type: string
                        example: M
                      date_of_birth:
                        type: string
                        example: '1990-02-28'
                      email:
                        type: string
                        example: john.doe@email.com
                      nationality:
                        type: string
                        example: US
                      country:
                        type: string
                        example: US
                      document:
                        type: object
                        properties:
                          document_type:
                            type: string
                            example: SSN
                          document_number:
                            type: string
                            example: 123-45-6789
                      phone:
                        type: object
                        properties:
                          number:
                            type: string
                            example: '5551234567'
                          country_code:
                            type: string
                            example: '1'
                      billing_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 4B
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                          neighborhood:
                            type: string
                            example: Manhattan
                      shipping_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 4B
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                          neighborhood:
                            type: string
                            example: Manhattan
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: ID
                            value:
                              type: string
                              example: '123456'
                      created_at:
                        type: string
                        example: '2025-04-24T18:54:54.351969Z'
                      updated_at:
                        type: string
                        example: '2025-04-24T18:54:54.351971Z'
                      merchant_customer_created_at:
                        type: string
                        example: '2022-05-09T20:46:54.786342Z'
                  - title: Cliente (dados mínimos)
                    type: object
                    properties:
                      id:
                        type: string
                        example: fe17085f-e9fd-4882-a42a-21eacc10fbb6
                      merchant_customer_id:
                        type: string
                        example: AAAAAAA000001
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      gender: {}
                      date_of_birth: {}
                      email:
                        type: string
                        example: john.doe@email.com
                      nationality: {}
                      country: {}
                      document: {}
                      phone: {}
                      billing_address: {}
                      shipping_address: {}
                      created_at:
                        type: string
                        example: '2025-04-24T18:54:15.805086Z'
                      updated_at:
                        type: string
                        example: '2025-04-24T18:54:15.805088Z'
                      merchant_customer_created_at: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid Credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.