Consumer

Create Consumer

POST

Create a new Consumer if one does not exist for the given partner and pc_id

Request

This endpoint expects an object.
pcid
stringRequired
external_id
stringOptional
first_name
stringOptional
last_name
stringOptional
email
stringOptional
phone_number
stringOptional
date_of_birth
stringOptional
address_line1
stringOptional
address_line2
stringOptional
address_city
stringOptional
address_state
stringOptional
address_zip
stringOptional

Response

This endpoint returns an object
pcid
string
external_id
stringOptional
first_name
stringOptional
last_name
stringOptional
email
stringOptional
phone_number
stringOptional
date_of_birth
stringOptional
address_line1
stringOptional
address_line2
stringOptional
address_city
stringOptional
address_state
stringOptional
address_zip
stringOptional
POST
1curl -X POST /v2/consumer/ \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "pcid": "pcid"
6}'
200
Successful
1{
2 "pcid": "pcid",
3 "external_id": "external_id",
4 "first_name": "first_name",
5 "last_name": "last_name",
6 "email": "email",
7 "phone_number": "phone_number",
8 "date_of_birth": "date_of_birth",
9 "address_line1": "address_line1",
10 "address_line2": "address_line2",
11 "address_city": "address_city",
12 "address_state": "address_state",
13 "address_zip": "address_zip"
14}