Skip to main content
POST
/
customers
Register a new customer
curl --request POST \
  --url https://fxaas-dev.acorianacorretora.com.br/customers \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Invalid authorization header"
}
'
{
  "id": "<string>",
  "tax_id": "<string>",
  "legal_type": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "name": "<string>",
  "email": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string
required

Authorization header

Example:

"Bearer Token"

Body

application/json

Customer to be created

name
string
required

The name of the customer or business.

tax_id
string
required

CPF or CNPJ of the customer.

pix_key
string
required

PIX key associated with the customer.

Response

Created

id
string
required

Unique identifier for the customer

tax_id
string
required

Customer's tax identification number

Legal classification of the customer

created_at
string<date-time>
required

Timestamp when the customer record was created

status
string
required

Current status of the customer

name
string | null

Customer's name

email
string | null

Customer's email address

updated_at
string<date-time> | null

Timestamp when the customer record was last updated

deleted_at
string<date-time> | null

Timestamp when the customer record was deleted (if applicable)