POST
/
customers
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": "pepito@gmail.com",
  "phoneNumber": "3013111111",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Customer created successfully.

The response is of type object.