Create a new Client

Create a new client

post

Creates a client entry with optional personal details.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
businessnamestringRequired

Name of the business

Body
ds_namestringOptional
ds_surnamestringOptional
ds_phonestringOptional

Phone number with country code

emailstringOptional
opt_in_statusinteger · enumOptional

0: Not requested, 100: pending, 200: opt-in accepted

Possible values:
Responses
200

Client created successfully

application/json
post
/clients
POST /ext/v2/{businessname}/clients HTTP/1.1
Host: api.pingueen.it/ext/v2/{businessname}
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "ds_name": "text",
  "ds_surname": "text",
  "ds_phone": "text",
  "email": "text",
  "opt_in_status": 0
}
200

Client created successfully

{
  "success": true
}

Last updated