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.

circle-info

You can add different types of personal documents: ID cards, passports, driving licences and residence permits. See more in the Tuum developer portalarrow-up-right.

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

circle-info

See more about the create person documentarrow-up-right endpoint in the Tuum developer portal.

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.

chevron-rightResponsehashtag

Result

A new passport record ID-1024 was added for a private person.

Last updated

Was this helpful?