---
title: "Criar cliente"
method: POST
path: "/customers"
---

# Criar cliente

`POST /customers`

Este recurso cria um objeto `customer` que representa um cliente.

## Request body

- object
  - `name` string, required — Nome do cliente. Max: 64 caracteres.
  - `email` string — E-mail do cliente. Max: 64 caracteres
  - `code` string — Código de referência do cliente no sistema da loja. Max: 52 caracteres
  - `document` string — CPF, CNPJ ou PASSAPORTE do cliente. Max: 16 caracteres para CPF e CNPJ e Max: 50 caracteres para PASSAPORTE
  - `document_type` string — Tipo de documento. Valores possíveis: CPF, CNPJ ou PASSPORT.
  - `type` string, required — Tipo de cliente. Valores possíveis: **individual** (pessoa física) ou **company** (pessoa jurídica).<br>**Obrigatório**, caso o `document` seja enviado.
  - `gender` string — Sexo do cliente . Valores possíveis: **male** ou **female**
  - `address` object — Endereço do cliente. [Saiba mais sobre endereços](https://docs.mundipagg.com/v1/reference#enderecos)
  - `phones` object — Telefones do cliente. [Saiba mais sobre o telefones](https://docs.mundipagg.com/v1/reference#telefones)
    - `home_phone` object — Telefone residencial do cliente. [Saiba mais sobre o telefones](https://docs.mundipagg.com/v1/reference#telefones)
    - `mobile_phone` object — Telefone móvel do cliente. [Saiba mais sobre o telefones](https://docs.mundipagg.com/v1/reference#telefones)
  - `birthdate` string, date — Data de nascimento do cliente.
  - `metadata` string — Objeto chave/valor utilizado para armazenar informações adicionais sobre o cliente. [Saiba mais sobre metadata](https://docs.mundipagg.com/v1/reference#metadata)

## Response `200`

200

- object
  - `id` string
  - `name` string
  - `email` string
  - `code` string
  - `document` string
  - `document_type` string
  - `type` string
  - `gender` string
  - `delinquent` boolean
  - `address` object
    - `id` string
    - `line_1` string
    - `line_2` string
    - `zip_code` string
    - `city` string
    - `state` string
    - `country` string
    - `status` string
    - `created_at` string
    - `updated_at` string
  - `created_at` string
  - `updated_at` string
  - `birthdate` string
  - `phones` object
    - `home_phone` object
      - `country_code` string
      - `number` string
      - `area_code` string
    - `mobile_phone` object
      - `country_code` string
      - `number` string
      - `area_code` string
  - `metadata` object
    - `id` string
    - `company` string

## Other responses

- `422` — 422

---

[API](https://skmtc.net/mundipagg/apis/mundipagg-api.md) · [All operations](https://skmtc.net/mundipagg/apis/mundipagg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mundipagg/mundipagg-api/versions/1ddb9f03a82d/schema)
