curl --request POST \
--url https://api.uat.frankie.one/v2/individuals \
--header 'Content-Type: application/json' \
--header 'X-Frankie-CustomerID: <x-frankie-customerid>' \
--header 'api_key: <api-key>' \
--data '
{
"individual": {
"addresses": [
{
"country": "<string>",
"addressId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "OTHER",
"typeDescription": "<string>",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"longForm": "<string>",
"unitNumber": "<string>",
"buildingName": "<string>",
"streetName": "<string>",
"streetNumber": "<string>",
"streetType": "<string>",
"neighborhood": "<string>",
"locality": "<string>",
"district": "<string>",
"subdivision": "<string>",
"postalCode": "<string>",
"careOf": "<string>",
"status": "CURRENT"
}
],
"phoneNumbers": [
{
"phoneNumberId": "ad165f64-5717-4562-b3fc-2c963f66bfa9",
"isPreferred": true,
"type": "MOBILE",
"country": "AUS",
"number": "0426192340",
"unstructuredLongForm": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"emailAddresses": [
{
"emailAddressId": "aa385f64-5717-4562-b3fc-2c963f66af21",
"type": "WORK",
"email": "leonardo_dc@outlook.com",
"isPreferred": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"customAttributes": {},
"externalReferences": [
{
"name": "CUSTOMER-REFERENCE",
"value": "CUST-00001342",
"referenceId": "24de15f64-5717-4562-b3fc-2c963f66e23e",
"type": "CUSTOMER",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"description": "This is the customer ID in the core banking system."
}
],
"documents": {
"REPORT": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"SUPPORTING": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"IDENTITY": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"OTHER": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
]
},
"alternateNames": [
{
"familyName": "Doe",
"nameId": "87654321-4321-4321-4321-210987654321",
"language": "eng",
"givenName": "John",
"middleName": "R",
"otherName": null,
"prefix": "Dr.",
"suffix": "Jr.",
"displayName": "John Doe",
"type": "OTHER"
}
],
"dateOfBirth": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"alternateDatesOfBirth": [
{
"dateOfBirthId": "<string>",
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
}
],
"gender": {},
"nationality": "AUS",
"consents": [
{
"type": "UNDER18"
}
]
},
"serviceName": "<string>",
"workflowName": "<string>",
"comment": {
"text": "Update after speaking to customer over the phone directly.",
"entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
'import requests
url = "https://api.uat.frankie.one/v2/individuals"
payload = {
"individual": {
"addresses": [
{
"country": "<string>",
"addressId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "OTHER",
"typeDescription": "<string>",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"longForm": "<string>",
"unitNumber": "<string>",
"buildingName": "<string>",
"streetName": "<string>",
"streetNumber": "<string>",
"streetType": "<string>",
"neighborhood": "<string>",
"locality": "<string>",
"district": "<string>",
"subdivision": "<string>",
"postalCode": "<string>",
"careOf": "<string>",
"status": "CURRENT"
}
],
"phoneNumbers": [
{
"phoneNumberId": "ad165f64-5717-4562-b3fc-2c963f66bfa9",
"isPreferred": True,
"type": "MOBILE",
"country": "AUS",
"number": "0426192340",
"unstructuredLongForm": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"emailAddresses": [
{
"emailAddressId": "aa385f64-5717-4562-b3fc-2c963f66af21",
"type": "WORK",
"email": "leonardo_dc@outlook.com",
"isPreferred": True,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"customAttributes": {},
"externalReferences": [
{
"name": "CUSTOMER-REFERENCE",
"value": "CUST-00001342",
"referenceId": "24de15f64-5717-4562-b3fc-2c963f66e23e",
"type": "CUSTOMER",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"description": "This is the customer ID in the core banking system."
}
],
"documents": {
"REPORT": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"SUPPORTING": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"IDENTITY": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"OTHER": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
]
},
"alternateNames": [
{
"familyName": "Doe",
"nameId": "87654321-4321-4321-4321-210987654321",
"language": "eng",
"givenName": "John",
"middleName": "R",
"otherName": None,
"prefix": "Dr.",
"suffix": "Jr.",
"displayName": "John Doe",
"type": "OTHER"
}
],
"dateOfBirth": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"alternateDatesOfBirth": [
{
"dateOfBirthId": "<string>",
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
}
],
"gender": {},
"nationality": "AUS",
"consents": [{ "type": "UNDER18" }]
},
"serviceName": "<string>",
"workflowName": "<string>",
"comment": {
"text": "Update after speaking to customer over the phone directly.",
"entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
headers = {
"api_key": "<api-key>",
"X-Frankie-CustomerID": "<x-frankie-customerid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
api_key: '<api-key>',
'X-Frankie-CustomerID': '<x-frankie-customerid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
individual: {
addresses: [
{
country: '<string>',
addressId: '<string>',
updatedAt: '2023-11-07T05:31:56Z',
type: 'OTHER',
typeDescription: '<string>',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
longForm: '<string>',
unitNumber: '<string>',
buildingName: '<string>',
streetName: '<string>',
streetNumber: '<string>',
streetType: '<string>',
neighborhood: '<string>',
locality: '<string>',
district: '<string>',
subdivision: '<string>',
postalCode: '<string>',
careOf: '<string>',
status: 'CURRENT'
}
],
phoneNumbers: [
{
phoneNumberId: 'ad165f64-5717-4562-b3fc-2c963f66bfa9',
isPreferred: true,
type: 'MOBILE',
country: 'AUS',
number: '0426192340',
unstructuredLongForm: '<string>',
updatedAt: '2023-11-07T05:31:56Z'
}
],
emailAddresses: [
{
emailAddressId: 'aa385f64-5717-4562-b3fc-2c963f66af21',
type: 'WORK',
email: 'leonardo_dc@outlook.com',
isPreferred: true,
updatedAt: '2023-11-07T05:31:56Z'
}
],
customAttributes: {},
externalReferences: [
{
name: 'CUSTOMER-REFERENCE',
value: 'CUST-00001342',
referenceId: '24de15f64-5717-4562-b3fc-2c963f66e23e',
type: 'CUSTOMER',
metadata: {},
updatedAt: '2023-11-07T05:31:56Z',
description: 'This is the customer ID in the core banking system.'
}
],
documents: {
REPORT: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
SUPPORTING: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
IDENTITY: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
OTHER: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
]
},
alternateNames: [
{
familyName: 'Doe',
nameId: '87654321-4321-4321-4321-210987654321',
language: 'eng',
givenName: 'John',
middleName: 'R',
otherName: null,
prefix: 'Dr.',
suffix: 'Jr.',
displayName: 'John Doe',
type: 'OTHER'
}
],
dateOfBirth: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
alternateDatesOfBirth: [
{
dateOfBirthId: '<string>',
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
}
],
gender: {},
nationality: 'AUS',
consents: [{type: 'UNDER18'}]
},
serviceName: '<string>',
workflowName: '<string>',
comment: {
text: 'Update after speaking to customer over the phone directly.',
entityId: '3fa85f64-5717-4562-b3fc-2c963f66afa6'
}
})
};
fetch('https://api.uat.frankie.one/v2/individuals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uat.frankie.one/v2/individuals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'individual' => [
'addresses' => [
[
'country' => '<string>',
'addressId' => '<string>',
'updatedAt' => '2023-11-07T05:31:56Z',
'type' => 'OTHER',
'typeDescription' => '<string>',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'longForm' => '<string>',
'unitNumber' => '<string>',
'buildingName' => '<string>',
'streetName' => '<string>',
'streetNumber' => '<string>',
'streetType' => '<string>',
'neighborhood' => '<string>',
'locality' => '<string>',
'district' => '<string>',
'subdivision' => '<string>',
'postalCode' => '<string>',
'careOf' => '<string>',
'status' => 'CURRENT'
]
],
'phoneNumbers' => [
[
'phoneNumberId' => 'ad165f64-5717-4562-b3fc-2c963f66bfa9',
'isPreferred' => true,
'type' => 'MOBILE',
'country' => 'AUS',
'number' => '0426192340',
'unstructuredLongForm' => '<string>',
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'emailAddresses' => [
[
'emailAddressId' => 'aa385f64-5717-4562-b3fc-2c963f66af21',
'type' => 'WORK',
'email' => 'leonardo_dc@outlook.com',
'isPreferred' => true,
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'customAttributes' => [
],
'externalReferences' => [
[
'name' => 'CUSTOMER-REFERENCE',
'value' => 'CUST-00001342',
'referenceId' => '24de15f64-5717-4562-b3fc-2c963f66e23e',
'type' => 'CUSTOMER',
'metadata' => [
],
'updatedAt' => '2023-11-07T05:31:56Z',
'description' => 'This is the customer ID in the core banking system.'
]
],
'documents' => [
'REPORT' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'SUPPORTING' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'IDENTITY' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'OTHER' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
]
],
'alternateNames' => [
[
'familyName' => 'Doe',
'nameId' => '87654321-4321-4321-4321-210987654321',
'language' => 'eng',
'givenName' => 'John',
'middleName' => 'R',
'otherName' => null,
'prefix' => 'Dr.',
'suffix' => 'Jr.',
'displayName' => 'John Doe',
'type' => 'OTHER'
]
],
'dateOfBirth' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'alternateDatesOfBirth' => [
[
'dateOfBirthId' => '<string>',
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
]
],
'gender' => [
],
'nationality' => 'AUS',
'consents' => [
[
'type' => 'UNDER18'
]
]
],
'serviceName' => '<string>',
'workflowName' => '<string>',
'comment' => [
'text' => 'Update after speaking to customer over the phone directly.',
'entityId' => '3fa85f64-5717-4562-b3fc-2c963f66afa6'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Frankie-CustomerID: <x-frankie-customerid>",
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uat.frankie.one/v2/individuals"
payload := strings.NewReader("{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("X-Frankie-CustomerID", "<x-frankie-customerid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.uat.frankie.one/v2/individuals")
.header("api_key", "<api-key>")
.header("X-Frankie-CustomerID", "<x-frankie-customerid>")
.header("Content-Type", "application/json")
.body("{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uat.frankie.one/v2/individuals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_key"] = '<api-key>'
request["X-Frankie-CustomerID"] = '<x-frankie-customerid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}"
response = http.request(request)
puts response.read_bodyCreate an individual entity
Creates an Individual entity object which can be used to store data about an individual. You can optionally include documents, attachments, references etc. to the entity. Information stored in an entity object can be used to verify the individual against external data sources for the purposes of eKYC, or in other verifications supported by FrankieOne.
curl --request POST \
--url https://api.uat.frankie.one/v2/individuals \
--header 'Content-Type: application/json' \
--header 'X-Frankie-CustomerID: <x-frankie-customerid>' \
--header 'api_key: <api-key>' \
--data '
{
"individual": {
"addresses": [
{
"country": "<string>",
"addressId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "OTHER",
"typeDescription": "<string>",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"longForm": "<string>",
"unitNumber": "<string>",
"buildingName": "<string>",
"streetName": "<string>",
"streetNumber": "<string>",
"streetType": "<string>",
"neighborhood": "<string>",
"locality": "<string>",
"district": "<string>",
"subdivision": "<string>",
"postalCode": "<string>",
"careOf": "<string>",
"status": "CURRENT"
}
],
"phoneNumbers": [
{
"phoneNumberId": "ad165f64-5717-4562-b3fc-2c963f66bfa9",
"isPreferred": true,
"type": "MOBILE",
"country": "AUS",
"number": "0426192340",
"unstructuredLongForm": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"emailAddresses": [
{
"emailAddressId": "aa385f64-5717-4562-b3fc-2c963f66af21",
"type": "WORK",
"email": "leonardo_dc@outlook.com",
"isPreferred": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"customAttributes": {},
"externalReferences": [
{
"name": "CUSTOMER-REFERENCE",
"value": "CUST-00001342",
"referenceId": "24de15f64-5717-4562-b3fc-2c963f66e23e",
"type": "CUSTOMER",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"description": "This is the customer ID in the core banking system."
}
],
"documents": {
"REPORT": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"SUPPORTING": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"IDENTITY": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"OTHER": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": true,
"isExternallyVerified": true,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": {
"uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg"
},
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
]
},
"alternateNames": [
{
"familyName": "Doe",
"nameId": "87654321-4321-4321-4321-210987654321",
"language": "eng",
"givenName": "John",
"middleName": "R",
"otherName": null,
"prefix": "Dr.",
"suffix": "Jr.",
"displayName": "John Doe",
"type": "OTHER"
}
],
"dateOfBirth": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"alternateDatesOfBirth": [
{
"dateOfBirthId": "<string>",
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
}
],
"gender": {},
"nationality": "AUS",
"consents": [
{
"type": "UNDER18"
}
]
},
"serviceName": "<string>",
"workflowName": "<string>",
"comment": {
"text": "Update after speaking to customer over the phone directly.",
"entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
'import requests
url = "https://api.uat.frankie.one/v2/individuals"
payload = {
"individual": {
"addresses": [
{
"country": "<string>",
"addressId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "OTHER",
"typeDescription": "<string>",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"longForm": "<string>",
"unitNumber": "<string>",
"buildingName": "<string>",
"streetName": "<string>",
"streetNumber": "<string>",
"streetType": "<string>",
"neighborhood": "<string>",
"locality": "<string>",
"district": "<string>",
"subdivision": "<string>",
"postalCode": "<string>",
"careOf": "<string>",
"status": "CURRENT"
}
],
"phoneNumbers": [
{
"phoneNumberId": "ad165f64-5717-4562-b3fc-2c963f66bfa9",
"isPreferred": True,
"type": "MOBILE",
"country": "AUS",
"number": "0426192340",
"unstructuredLongForm": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"emailAddresses": [
{
"emailAddressId": "aa385f64-5717-4562-b3fc-2c963f66af21",
"type": "WORK",
"email": "leonardo_dc@outlook.com",
"isPreferred": True,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"customAttributes": {},
"externalReferences": [
{
"name": "CUSTOMER-REFERENCE",
"value": "CUST-00001342",
"referenceId": "24de15f64-5717-4562-b3fc-2c963f66e23e",
"type": "CUSTOMER",
"metadata": {},
"updatedAt": "2023-11-07T05:31:56Z",
"description": "This is the customer ID in the core banking system."
}
],
"documents": {
"REPORT": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"SUPPORTING": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"IDENTITY": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
],
"OTHER": [
{
"country": "AUS",
"class": "IDENTITY",
"documentId": "92de15f64-5717-4562-b3fc-2c963f6665a7",
"expiryDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"issueDate": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"primaryIdentifier": "000734130",
"secondaryIdentifier": "P0001975",
"isDigital": True,
"isExternallyVerified": True,
"subtype": "Photo Comparison",
"subdivision": "VIC",
"validFrom": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"validTo": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"supplementaryData": {
"reference": "1",
"nameOnCardLine1": "<string>",
"nameOnCardLine2": "<string>",
"nameOnCardLine3": "<string>",
"nameOnCardLine4": "<string>",
"middleNameOnCard": "<string>"
},
"customAttributes": {},
"attachments": [
{
"data": { "uri": "https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg" },
"attachmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"mimeType": "<string>",
"pageNumber": 123,
"type": "<string>",
"location": "<string>",
"lastMalwareScanAt": "2023-11-07T05:31:56Z"
}
]
}
]
},
"alternateNames": [
{
"familyName": "Doe",
"nameId": "87654321-4321-4321-4321-210987654321",
"language": "eng",
"givenName": "John",
"middleName": "R",
"otherName": None,
"prefix": "Dr.",
"suffix": "Jr.",
"displayName": "John Doe",
"type": "OTHER"
}
],
"dateOfBirth": {
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
},
"alternateDatesOfBirth": [
{
"dateOfBirthId": "<string>",
"year": "1990",
"month": "03",
"day": "27",
"unstructured": "12 Rajab 1445 AH",
"type": "GREGORIAN"
}
],
"gender": {},
"nationality": "AUS",
"consents": [{ "type": "UNDER18" }]
},
"serviceName": "<string>",
"workflowName": "<string>",
"comment": {
"text": "Update after speaking to customer over the phone directly.",
"entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
headers = {
"api_key": "<api-key>",
"X-Frankie-CustomerID": "<x-frankie-customerid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
api_key: '<api-key>',
'X-Frankie-CustomerID': '<x-frankie-customerid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
individual: {
addresses: [
{
country: '<string>',
addressId: '<string>',
updatedAt: '2023-11-07T05:31:56Z',
type: 'OTHER',
typeDescription: '<string>',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
longForm: '<string>',
unitNumber: '<string>',
buildingName: '<string>',
streetName: '<string>',
streetNumber: '<string>',
streetType: '<string>',
neighborhood: '<string>',
locality: '<string>',
district: '<string>',
subdivision: '<string>',
postalCode: '<string>',
careOf: '<string>',
status: 'CURRENT'
}
],
phoneNumbers: [
{
phoneNumberId: 'ad165f64-5717-4562-b3fc-2c963f66bfa9',
isPreferred: true,
type: 'MOBILE',
country: 'AUS',
number: '0426192340',
unstructuredLongForm: '<string>',
updatedAt: '2023-11-07T05:31:56Z'
}
],
emailAddresses: [
{
emailAddressId: 'aa385f64-5717-4562-b3fc-2c963f66af21',
type: 'WORK',
email: 'leonardo_dc@outlook.com',
isPreferred: true,
updatedAt: '2023-11-07T05:31:56Z'
}
],
customAttributes: {},
externalReferences: [
{
name: 'CUSTOMER-REFERENCE',
value: 'CUST-00001342',
referenceId: '24de15f64-5717-4562-b3fc-2c963f66e23e',
type: 'CUSTOMER',
metadata: {},
updatedAt: '2023-11-07T05:31:56Z',
description: 'This is the customer ID in the core banking system.'
}
],
documents: {
REPORT: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
SUPPORTING: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
IDENTITY: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
],
OTHER: [
{
country: 'AUS',
class: 'IDENTITY',
documentId: '92de15f64-5717-4562-b3fc-2c963f6665a7',
expiryDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
issueDate: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
primaryIdentifier: '000734130',
secondaryIdentifier: 'P0001975',
isDigital: true,
isExternallyVerified: true,
subtype: 'Photo Comparison',
subdivision: 'VIC',
validFrom: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
validTo: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
supplementaryData: {
reference: '1',
nameOnCardLine1: '<string>',
nameOnCardLine2: '<string>',
nameOnCardLine3: '<string>',
nameOnCardLine4: '<string>',
middleNameOnCard: '<string>'
},
customAttributes: {},
attachments: [
{
data: {
uri: 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
},
attachmentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
filename: '<string>',
mimeType: '<string>',
pageNumber: 123,
type: '<string>',
location: '<string>',
lastMalwareScanAt: '2023-11-07T05:31:56Z'
}
]
}
]
},
alternateNames: [
{
familyName: 'Doe',
nameId: '87654321-4321-4321-4321-210987654321',
language: 'eng',
givenName: 'John',
middleName: 'R',
otherName: null,
prefix: 'Dr.',
suffix: 'Jr.',
displayName: 'John Doe',
type: 'OTHER'
}
],
dateOfBirth: {
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
},
alternateDatesOfBirth: [
{
dateOfBirthId: '<string>',
year: '1990',
month: '03',
day: '27',
unstructured: '12 Rajab 1445 AH',
type: 'GREGORIAN'
}
],
gender: {},
nationality: 'AUS',
consents: [{type: 'UNDER18'}]
},
serviceName: '<string>',
workflowName: '<string>',
comment: {
text: 'Update after speaking to customer over the phone directly.',
entityId: '3fa85f64-5717-4562-b3fc-2c963f66afa6'
}
})
};
fetch('https://api.uat.frankie.one/v2/individuals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.uat.frankie.one/v2/individuals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'individual' => [
'addresses' => [
[
'country' => '<string>',
'addressId' => '<string>',
'updatedAt' => '2023-11-07T05:31:56Z',
'type' => 'OTHER',
'typeDescription' => '<string>',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'longForm' => '<string>',
'unitNumber' => '<string>',
'buildingName' => '<string>',
'streetName' => '<string>',
'streetNumber' => '<string>',
'streetType' => '<string>',
'neighborhood' => '<string>',
'locality' => '<string>',
'district' => '<string>',
'subdivision' => '<string>',
'postalCode' => '<string>',
'careOf' => '<string>',
'status' => 'CURRENT'
]
],
'phoneNumbers' => [
[
'phoneNumberId' => 'ad165f64-5717-4562-b3fc-2c963f66bfa9',
'isPreferred' => true,
'type' => 'MOBILE',
'country' => 'AUS',
'number' => '0426192340',
'unstructuredLongForm' => '<string>',
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'emailAddresses' => [
[
'emailAddressId' => 'aa385f64-5717-4562-b3fc-2c963f66af21',
'type' => 'WORK',
'email' => 'leonardo_dc@outlook.com',
'isPreferred' => true,
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'customAttributes' => [
],
'externalReferences' => [
[
'name' => 'CUSTOMER-REFERENCE',
'value' => 'CUST-00001342',
'referenceId' => '24de15f64-5717-4562-b3fc-2c963f66e23e',
'type' => 'CUSTOMER',
'metadata' => [
],
'updatedAt' => '2023-11-07T05:31:56Z',
'description' => 'This is the customer ID in the core banking system.'
]
],
'documents' => [
'REPORT' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'SUPPORTING' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'IDENTITY' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
],
'OTHER' => [
[
'country' => 'AUS',
'class' => 'IDENTITY',
'documentId' => '92de15f64-5717-4562-b3fc-2c963f6665a7',
'expiryDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'issueDate' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'primaryIdentifier' => '000734130',
'secondaryIdentifier' => 'P0001975',
'isDigital' => true,
'isExternallyVerified' => true,
'subtype' => 'Photo Comparison',
'subdivision' => 'VIC',
'validFrom' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'validTo' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'supplementaryData' => [
'reference' => '1',
'nameOnCardLine1' => '<string>',
'nameOnCardLine2' => '<string>',
'nameOnCardLine3' => '<string>',
'nameOnCardLine4' => '<string>',
'middleNameOnCard' => '<string>'
],
'customAttributes' => [
],
'attachments' => [
[
'data' => [
'uri' => 'https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg'
],
'attachmentId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'filename' => '<string>',
'mimeType' => '<string>',
'pageNumber' => 123,
'type' => '<string>',
'location' => '<string>',
'lastMalwareScanAt' => '2023-11-07T05:31:56Z'
]
]
]
]
],
'alternateNames' => [
[
'familyName' => 'Doe',
'nameId' => '87654321-4321-4321-4321-210987654321',
'language' => 'eng',
'givenName' => 'John',
'middleName' => 'R',
'otherName' => null,
'prefix' => 'Dr.',
'suffix' => 'Jr.',
'displayName' => 'John Doe',
'type' => 'OTHER'
]
],
'dateOfBirth' => [
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
],
'alternateDatesOfBirth' => [
[
'dateOfBirthId' => '<string>',
'year' => '1990',
'month' => '03',
'day' => '27',
'unstructured' => '12 Rajab 1445 AH',
'type' => 'GREGORIAN'
]
],
'gender' => [
],
'nationality' => 'AUS',
'consents' => [
[
'type' => 'UNDER18'
]
]
],
'serviceName' => '<string>',
'workflowName' => '<string>',
'comment' => [
'text' => 'Update after speaking to customer over the phone directly.',
'entityId' => '3fa85f64-5717-4562-b3fc-2c963f66afa6'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Frankie-CustomerID: <x-frankie-customerid>",
"api_key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uat.frankie.one/v2/individuals"
payload := strings.NewReader("{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("X-Frankie-CustomerID", "<x-frankie-customerid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.uat.frankie.one/v2/individuals")
.header("api_key", "<api-key>")
.header("X-Frankie-CustomerID", "<x-frankie-customerid>")
.header("Content-Type", "application/json")
.body("{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uat.frankie.one/v2/individuals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_key"] = '<api-key>'
request["X-Frankie-CustomerID"] = '<x-frankie-customerid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"individual\": {\n \"addresses\": [\n {\n \"country\": \"<string>\",\n \"addressId\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"type\": \"OTHER\",\n \"typeDescription\": \"<string>\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"longForm\": \"<string>\",\n \"unitNumber\": \"<string>\",\n \"buildingName\": \"<string>\",\n \"streetName\": \"<string>\",\n \"streetNumber\": \"<string>\",\n \"streetType\": \"<string>\",\n \"neighborhood\": \"<string>\",\n \"locality\": \"<string>\",\n \"district\": \"<string>\",\n \"subdivision\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"careOf\": \"<string>\",\n \"status\": \"CURRENT\"\n }\n ],\n \"phoneNumbers\": [\n {\n \"phoneNumberId\": \"ad165f64-5717-4562-b3fc-2c963f66bfa9\",\n \"isPreferred\": true,\n \"type\": \"MOBILE\",\n \"country\": \"AUS\",\n \"number\": \"0426192340\",\n \"unstructuredLongForm\": \"<string>\",\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"emailAddresses\": [\n {\n \"emailAddressId\": \"aa385f64-5717-4562-b3fc-2c963f66af21\",\n \"type\": \"WORK\",\n \"email\": \"leonardo_dc@outlook.com\",\n \"isPreferred\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"customAttributes\": {},\n \"externalReferences\": [\n {\n \"name\": \"CUSTOMER-REFERENCE\",\n \"value\": \"CUST-00001342\",\n \"referenceId\": \"24de15f64-5717-4562-b3fc-2c963f66e23e\",\n \"type\": \"CUSTOMER\",\n \"metadata\": {},\n \"updatedAt\": \"2023-11-07T05:31:56Z\",\n \"description\": \"This is the customer ID in the core banking system.\"\n }\n ],\n \"documents\": {\n \"REPORT\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"SUPPORTING\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"IDENTITY\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ],\n \"OTHER\": [\n {\n \"country\": \"AUS\",\n \"class\": \"IDENTITY\",\n \"documentId\": \"92de15f64-5717-4562-b3fc-2c963f6665a7\",\n \"expiryDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"issueDate\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"primaryIdentifier\": \"000734130\",\n \"secondaryIdentifier\": \"P0001975\",\n \"isDigital\": true,\n \"isExternallyVerified\": true,\n \"subtype\": \"Photo Comparison\",\n \"subdivision\": \"VIC\",\n \"validFrom\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"validTo\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"supplementaryData\": {\n \"reference\": \"1\",\n \"nameOnCardLine1\": \"<string>\",\n \"nameOnCardLine2\": \"<string>\",\n \"nameOnCardLine3\": \"<string>\",\n \"nameOnCardLine4\": \"<string>\",\n \"middleNameOnCard\": \"<string>\"\n },\n \"customAttributes\": {},\n \"attachments\": [\n {\n \"data\": {\n \"uri\": \"https://s3.amazonaws.com/dev/41963bc5feff322020137de233c3be0fac6/croppedFrontID/38d54232-b840-431d-b248-152345fe214.jpg\"\n },\n \"attachmentId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"filename\": \"<string>\",\n \"mimeType\": \"<string>\",\n \"pageNumber\": 123,\n \"type\": \"<string>\",\n \"location\": \"<string>\",\n \"lastMalwareScanAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n }\n ]\n },\n \"alternateNames\": [\n {\n \"familyName\": \"Doe\",\n \"nameId\": \"87654321-4321-4321-4321-210987654321\",\n \"language\": \"eng\",\n \"givenName\": \"John\",\n \"middleName\": \"R\",\n \"otherName\": null,\n \"prefix\": \"Dr.\",\n \"suffix\": \"Jr.\",\n \"displayName\": \"John Doe\",\n \"type\": \"OTHER\"\n }\n ],\n \"dateOfBirth\": {\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n },\n \"alternateDatesOfBirth\": [\n {\n \"dateOfBirthId\": \"<string>\",\n \"year\": \"1990\",\n \"month\": \"03\",\n \"day\": \"27\",\n \"unstructured\": \"12 Rajab 1445 AH\",\n \"type\": \"GREGORIAN\"\n }\n ],\n \"gender\": {},\n \"nationality\": \"AUS\",\n \"consents\": [\n {\n \"type\": \"UNDER18\"\n }\n ]\n },\n \"serviceName\": \"<string>\",\n \"workflowName\": \"<string>\",\n \"comment\": {\n \"text\": \"Update after speaking to customer over the phone directly.\",\n \"entityId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Headers
Your API key provided by FrankieOne
"245c765b124a098d09ef8765...."
Your Customer ID provided by FrankieOne
"12345678-1234-1234-1234-123456789012"
Your Customer Child ID provided by FrankieOne
"87654321-4321-4321-4321-210987654321"
Open string that can be used to define the "channel" the request comes in from. It can potentially be used in routing and risk calculations upon request. Default values that can be used are: api portal smartui Any alphanumeric string is supported though. Anything over 64 characters will be truncated.
Username provided by API caller
"fred.flintstone@frankieone.com"
Query Parameters
Determines what level of detail to return in the response
- id: Return just an id
- meta: Return all metadata only, no links or base64 data
- base64: Return all metadata and data in base64 format
id, meta, base64 Body
Create an individual
Was this page helpful?