Skip to main content
POST
/
customers
Creates a new customer
curl --request POST \
  --url https://prod.api.palomma.com/v0/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reference": "<string>",
  "name": "<string>",
  "documentType": "cc",
  "documentNumber": "<string>",
  "email": "<string>",
  "phoneNumber": "<string>"
}'
{
  "id": "01HPR57X6QR5ZRKEEKBSDBW4RA",
  "reference": "<string>",
  "name": "Pepito Perez",
  "documentType": "cc",
  "documentNumber": "1037551022",
  "email": "[email protected]",
  "phoneNumber": "3013111111",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
name
string
required
documentType
enum<string>
required
Available options:
cc,
ce,
nit
documentNumber
string
required
email
string
required
phoneNumber
string
required
reference
string

Response

id
string
Example:
reference
string
name
string
Example:
documentType
enum<string>
Available options:
cc,
ce,
nit
documentNumber
string
Example:
email
string
Example:
phoneNumber
string
Example:
createdAt
string<date-time>
updatedAt
string<date-time>