Create person document
Use case
In this example, we will review how to add a document record for a person.
Use case data
API parameters with values
Adding a document record for a private person ID-3392
.
...persons/ID-3392/documents
Adding the person's passport details.
{
"issuingCountry": "GB",
"number": "0124R5M1P5",
"documentTypeCode": "PASSPORT",
"expiryDate": "2025-01-03"
}
Sample API call
To create a person document, make the following API call.
https://person-api.sandbox.tuumplatform.com/api/v1/persons/ID-3392/documents
Sample request
Below is an example request body of the API call for creating a person document.
{
"issuingCountry": "GB",
"number": "0124R5M1P5",
"documentTypeCode": "PASSPORT",
"expiryDate": "2025-01-03"
}
Sample response
Below you will find an example response to the API call from above.
Result
A new passport record ID-1024
was added for a private person.
Last updated
Was this helpful?