Create private person
Use case
Here, you can learn how to create a record of a person (record of your customer) in Tuum. In this example, we will showcase the creation of a record of a private person with the following data.
Private person
"personTypeCode": "P"
The person's name is Trevor Tuum
"surname": "Tuum",
"givenName": "Trevor"
The person's United Kingdom identification number is QQ123456B
"identificationNumbers": [
{
"idNumber": "QQ123456B",
"idCountryCode": "GB",
"primary": true
}
]
The person's registration address is United Kingdom 85 Park end St Broomhill NE65 0YW
"addresses": [
{
"addressTypeCode": "R",
"countryCode": "GB",
"cityCounty": "Broomhill",
"street1": "85 Park End St",
"zip": "NE65 0YW"
}
]
Sample API call
To create a record of a person, make the following API call.
https://person-api.sandbox.tuumplatform.com/api/v2/persons
Sample request
Below is an example request body of the API call for creating a private person.
{
"personTypeCode": "P",
"surname": "Tuum",
"givenName": "Trevor",
"identificationNumbers": [
{
"idNumber": "QQ123456B",
"idCountryCode": "GB",
"primary": true
}
],
"addresses": [
{
"addressTypeCode": "R",
"countryCode": "GB",
"cityCounty": "Broomhill",
"street1": "85 Park End St",
"zip": "NE65 0YW"
}
]
}
When using the example request, please change the x-auth-token to the one you obtained with your authentication API call.
Sample response
Below you find an example response body to the API call above.
Result
A new private person ID-3726
is created and activated. The new person record is available for further actions.
Last updated
Was this helpful?