Create a consumer
/v1/consumers
curl --request POST \
--url https://api.oneslipstream.com/v1/consumers \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"firstname": "Eve",
"lastname": "Moneypenny",
"title": "miss",
"dob": "1975-07-27",
"addresses": [
{
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"postcode": "SE1 7TP"
}
]
}'
{
"id": "con_bPKKB3sYsukFanSsaBcMCMR2",
"description": "A special secretary",
"firstname": "Eve",
"lastname": "Moneypenny",
"metadata": {
"job": "secretary"
},
"othername": "string",
"title": "miss",
"addresses": [
{
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null"
}
],
"dob": "1975-07-26T00:00:00.000Z",
"createdAt": "2022-07-26T00:00:00.000Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
An arbitrary string attached to the object
The customer's firstname
The customer's lastname
Set of key-value pairs that you can attach to an object, useful for storing additional information about the object in a structured format
The customer's middle names or initials
The customer's title
mr
, mrs
, miss
, ms
, dr
, prof
, sir
The consumer's date of birth
The customer's addresses
Response
The unique identifier for the consumer
An arbitrary string attached to the object
The customer's firstname
The customer's lastname
Set of key-value pairs that you can attach to an object, useful for storing additional information about the object in a structured format
The customer's middle names or initials
The customer's title
mr
, mrs
, miss
, ms
, dr
, prof
, sir
The customer's addresses
The consumer's date of birth
The date and time the consumer was created
curl --request POST \
--url https://api.oneslipstream.com/v1/consumers \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"firstname": "Eve",
"lastname": "Moneypenny",
"title": "miss",
"dob": "1975-07-27",
"addresses": [
{
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"postcode": "SE1 7TP"
}
]
}'
{
"id": "con_bPKKB3sYsukFanSsaBcMCMR2",
"description": "A special secretary",
"firstname": "Eve",
"lastname": "Moneypenny",
"metadata": {
"job": "secretary"
},
"othername": "string",
"title": "miss",
"addresses": [
{
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null"
}
],
"dob": "1975-07-26T00:00:00.000Z",
"createdAt": "2022-07-26T00:00:00.000Z"
}