curl --request POST \
--url https://api.uat.frankie.one/compliance/v1.2/business/ownership/query \
--header 'Content-Type: application/json' \
--header 'X-Frankie-CustomerID: <x-frankie-customerid>' \
--header 'api_key: <api-key>' \
--data '
{
"organisation": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": true,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": true,
"aliases": [
"<string>"
],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": true,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": true,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": true,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": {
"abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": [
"<string>"
],
"date": "2023-11-07T05:31:56Z",
"entityStatus": [
"<string>"
],
"goodsAndServicesTax": [
"<string>"
],
"mainBusinessPhysicalAddress": [
"<string>"
],
"mainName": [
"<string>"
],
"mainTradingName": [
"<string>"
]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
}
},
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"associations": [
{
"addedBy": "<string>",
"entity": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": true,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": true,
"aliases": [
"<string>"
],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": true,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": true,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": true,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": {
"abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": [
"<string>"
],
"date": "2023-11-07T05:31:56Z",
"entityStatus": [
"<string>"
],
"goodsAndServicesTax": [
"<string>"
],
"mainBusinessPhysicalAddress": [
"<string>"
],
"mainName": [
"<string>"
],
"mainTradingName": [
"<string>"
]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
}
},
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"percentageHeld": {
"beneficially": 123,
"jointly": 123,
"nonBeneficially": 123
},
"roles": [
{
"type": "<string>",
"typeDescription": "<string>"
}
]
}
]
}
'import requests
url = "https://api.uat.frankie.one/compliance/v1.2/business/ownership/query"
payload = {
"organisation": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": True,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": True,
"aliases": ["<string>"],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": True,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": True,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": True,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": { "abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": ["<string>"],
"date": "2023-11-07T05:31:56Z",
"entityStatus": ["<string>"],
"goodsAndServicesTax": ["<string>"],
"mainBusinessPhysicalAddress": ["<string>"],
"mainName": ["<string>"],
"mainTradingName": ["<string>"]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
} },
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"associations": [
{
"addedBy": "<string>",
"entity": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": True,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": True,
"aliases": ["<string>"],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": True,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": True,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": True,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": { "abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": ["<string>"],
"date": "2023-11-07T05:31:56Z",
"entityStatus": ["<string>"],
"goodsAndServicesTax": ["<string>"],
"mainBusinessPhysicalAddress": ["<string>"],
"mainName": ["<string>"],
"mainTradingName": ["<string>"]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
} },
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"percentageHeld": {
"beneficially": 123,
"jointly": 123,
"nonBeneficially": 123
},
"roles": [
{
"type": "<string>",
"typeDescription": "<string>"
}
]
}
]
}
headers = {
"X-Frankie-CustomerID": "<x-frankie-customerid>",
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Frankie-CustomerID': '<x-frankie-customerid>',
api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
organisation: {
addresses: [
{
country: 'AUS',
addressId: '86932629-bdb4-158f-e670-741e89ff78ba',
addressType: 'REGISTERED_OFFICE',
buildingName: 'Highland Tower',
careOf: '<string>',
endDate: '0001-01-01',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
longForm: '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
postalCode: '3000',
region: 'MELBOURNE',
startDate: '2023-03-10',
state: 'VIC',
streetName: '9 ROYCE AVENUE',
streetNumber: 'FLAT 27',
streetType: 'Road',
suburb: 'Testburb',
town: 'MELBOURNE',
unitNumber: 'FLAT 27',
unstructuredLongForm: '<string>'
}
],
dateOfBirth: {
country: 'AUS',
dateOfBirth: '1978-11-12',
locality: 'Brisbane',
unstructuredDateOfBirth: '<string>',
yearOfBirth: '1978'
},
entityId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
entityProfile: '<string>',
entityType: 'ORGANISATION',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
flags: [{flag: '<string>', value: 123}],
gender: 'F',
identityDocs: [
{
country: 'AUS',
idType: 'DRIVERS_LICENCE',
docScan: [
{
ScanDelete: true,
scanCreated: '2020-06-02',
scanData: 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
scanDataRetrievalState: 'NORMAL',
scanDocId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
scanFilename: 'Important Document - ID1234567.pdf',
scanMIME: 'image/png',
scanPageNum: 1,
scanSide: 'F',
scanType: 'PDF'
}
],
documentId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
documentStatus: 'DOC_SCANNED',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
idExpiry: '2020-02-01',
idIssued: '1972-11-04',
idNumber: '123456789',
idSubType: '<string>',
region: 'VIC'
}
],
organisationData: {
adverseCreditDataPresent: true,
aliases: ['<string>'],
class: {code: '<string>', description: '<string>'},
contactDetails: {
email: '<string>',
faxNumber: '<string>',
telephoneNumber: '<string>',
websiteURL: '<string>'
},
disclosingEntityIndicator: true,
extractedDate: '2023-12-25',
includesNonBeneficiallyHeld: true,
industryCodes: [{code: '<string>', description: '<string>'}],
industryDeclarations: [{description: '<string>', language: '<string>'}],
kycCustomerType: '<string>',
lastCheckDate: '2023-12-25',
legalFormDetails: {
basis: '<string>',
capital: '<string>',
comments: '<string>',
control: '<string>',
incorp: '<string>',
partner: '<string>',
responsibility: '<string>',
stocks: '<string>'
},
normalisedLegalStatus: '<string>',
ownershipResolved: true,
registeredName: '<string>',
registration: {
countryIso: '<string>',
date: '2023-12-25',
number: '<string>',
previousNumber: '<string>',
registryCode: '<string>',
registryDescription: '<string>',
state: '<string>',
unstructuredDate: '<string>',
unstructuredFoundationDate: '<string>'
},
registries: {
abr: {
abn: '<string>',
acn: '<string>',
addresses: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
postcode: '<string>',
stateCode: '<string>'
}
],
businessNames: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
name: '<string>',
type: '<string>'
}
],
charityEndorsements: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
type: '<string>'
}
],
charityTypes: [
{
description: '<string>',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z'
}
],
description: '<string>',
dgrEndorsements: [{endorsedFrom: '2023-11-07T05:31:56Z', endorsedTo: '2023-11-07T05:31:56Z'}],
gst: [{effectiveFrom: '2023-11-07T05:31:56Z', effectiveTo: '2023-11-07T05:31:56Z'}],
historicalChanges: [
{
businessName: ['<string>'],
date: '2023-11-07T05:31:56Z',
entityStatus: ['<string>'],
goodsAndServicesTax: ['<string>'],
mainBusinessPhysicalAddress: ['<string>'],
mainName: ['<string>'],
mainTradingName: ['<string>']
}
],
lastUpdated: '2023-11-07T05:31:56Z',
name: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
status: '<string>',
statusEffectiveFrom: '<string>',
type: '<string>',
typeCode: '<string>',
updatedDate: '2023-11-07T05:31:56Z'
}
},
reviewDate: '2023-12-25',
shareStructure: [
{
amountDue: 123,
amountPaid: 123,
classCode: '<string>',
classTitle: '<string>',
docNumber: '<string>',
docNumberQualifier: '<string>',
sharesIssued: 123,
status: '<string>'
}
],
startDate: '2023-12-25',
status: {code: '<string>', description: '<string>'},
subType: {code: '<string>', description: '<string>'},
subclass: {code: '<string>', description: '<string>'},
type: {code: '<string>', description: '<string>'}
}
},
associations: [
{
addedBy: '<string>',
entity: {
addresses: [
{
country: 'AUS',
addressId: '86932629-bdb4-158f-e670-741e89ff78ba',
addressType: 'REGISTERED_OFFICE',
buildingName: 'Highland Tower',
careOf: '<string>',
endDate: '0001-01-01',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
longForm: '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
postalCode: '3000',
region: 'MELBOURNE',
startDate: '2023-03-10',
state: 'VIC',
streetName: '9 ROYCE AVENUE',
streetNumber: 'FLAT 27',
streetType: 'Road',
suburb: 'Testburb',
town: 'MELBOURNE',
unitNumber: 'FLAT 27',
unstructuredLongForm: '<string>'
}
],
dateOfBirth: {
country: 'AUS',
dateOfBirth: '1978-11-12',
locality: 'Brisbane',
unstructuredDateOfBirth: '<string>',
yearOfBirth: '1978'
},
entityId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
entityProfile: '<string>',
entityType: 'ORGANISATION',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
flags: [{flag: '<string>', value: 123}],
gender: 'F',
identityDocs: [
{
country: 'AUS',
idType: 'DRIVERS_LICENCE',
docScan: [
{
ScanDelete: true,
scanCreated: '2020-06-02',
scanData: 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
scanDataRetrievalState: 'NORMAL',
scanDocId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
scanFilename: 'Important Document - ID1234567.pdf',
scanMIME: 'image/png',
scanPageNum: 1,
scanSide: 'F',
scanType: 'PDF'
}
],
documentId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
documentStatus: 'DOC_SCANNED',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
idExpiry: '2020-02-01',
idIssued: '1972-11-04',
idNumber: '123456789',
idSubType: '<string>',
region: 'VIC'
}
],
organisationData: {
adverseCreditDataPresent: true,
aliases: ['<string>'],
class: {code: '<string>', description: '<string>'},
contactDetails: {
email: '<string>',
faxNumber: '<string>',
telephoneNumber: '<string>',
websiteURL: '<string>'
},
disclosingEntityIndicator: true,
extractedDate: '2023-12-25',
includesNonBeneficiallyHeld: true,
industryCodes: [{code: '<string>', description: '<string>'}],
industryDeclarations: [{description: '<string>', language: '<string>'}],
kycCustomerType: '<string>',
lastCheckDate: '2023-12-25',
legalFormDetails: {
basis: '<string>',
capital: '<string>',
comments: '<string>',
control: '<string>',
incorp: '<string>',
partner: '<string>',
responsibility: '<string>',
stocks: '<string>'
},
normalisedLegalStatus: '<string>',
ownershipResolved: true,
registeredName: '<string>',
registration: {
countryIso: '<string>',
date: '2023-12-25',
number: '<string>',
previousNumber: '<string>',
registryCode: '<string>',
registryDescription: '<string>',
state: '<string>',
unstructuredDate: '<string>',
unstructuredFoundationDate: '<string>'
},
registries: {
abr: {
abn: '<string>',
acn: '<string>',
addresses: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
postcode: '<string>',
stateCode: '<string>'
}
],
businessNames: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
name: '<string>',
type: '<string>'
}
],
charityEndorsements: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
type: '<string>'
}
],
charityTypes: [
{
description: '<string>',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z'
}
],
description: '<string>',
dgrEndorsements: [{endorsedFrom: '2023-11-07T05:31:56Z', endorsedTo: '2023-11-07T05:31:56Z'}],
gst: [{effectiveFrom: '2023-11-07T05:31:56Z', effectiveTo: '2023-11-07T05:31:56Z'}],
historicalChanges: [
{
businessName: ['<string>'],
date: '2023-11-07T05:31:56Z',
entityStatus: ['<string>'],
goodsAndServicesTax: ['<string>'],
mainBusinessPhysicalAddress: ['<string>'],
mainName: ['<string>'],
mainTradingName: ['<string>']
}
],
lastUpdated: '2023-11-07T05:31:56Z',
name: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
status: '<string>',
statusEffectiveFrom: '<string>',
type: '<string>',
typeCode: '<string>',
updatedDate: '2023-11-07T05:31:56Z'
}
},
reviewDate: '2023-12-25',
shareStructure: [
{
amountDue: 123,
amountPaid: 123,
classCode: '<string>',
classTitle: '<string>',
docNumber: '<string>',
docNumberQualifier: '<string>',
sharesIssued: 123,
status: '<string>'
}
],
startDate: '2023-12-25',
status: {code: '<string>', description: '<string>'},
subType: {code: '<string>', description: '<string>'},
subclass: {code: '<string>', description: '<string>'},
type: {code: '<string>', description: '<string>'}
}
},
percentageHeld: {beneficially: 123, jointly: 123, nonBeneficially: 123},
roles: [{type: '<string>', typeDescription: '<string>'}]
}
]
})
};
fetch('https://api.uat.frankie.one/compliance/v1.2/business/ownership/query', 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/compliance/v1.2/business/ownership/query",
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([
'organisation' => [
'addresses' => [
[
'country' => 'AUS',
'addressId' => '86932629-bdb4-158f-e670-741e89ff78ba',
'addressType' => 'REGISTERED_OFFICE',
'buildingName' => 'Highland Tower',
'careOf' => '<string>',
'endDate' => '0001-01-01',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'longForm' => '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
'postalCode' => '3000',
'region' => 'MELBOURNE',
'startDate' => '2023-03-10',
'state' => 'VIC',
'streetName' => '9 ROYCE AVENUE',
'streetNumber' => 'FLAT 27',
'streetType' => 'Road',
'suburb' => 'Testburb',
'town' => 'MELBOURNE',
'unitNumber' => 'FLAT 27',
'unstructuredLongForm' => '<string>'
]
],
'dateOfBirth' => [
'country' => 'AUS',
'dateOfBirth' => '1978-11-12',
'locality' => 'Brisbane',
'unstructuredDateOfBirth' => '<string>',
'yearOfBirth' => '1978'
],
'entityId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'entityProfile' => '<string>',
'entityType' => 'ORGANISATION',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'flags' => [
[
'flag' => '<string>',
'value' => 123
]
],
'gender' => 'F',
'identityDocs' => [
[
'country' => 'AUS',
'idType' => 'DRIVERS_LICENCE',
'docScan' => [
[
'ScanDelete' => true,
'scanCreated' => '2020-06-02',
'scanData' => 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
'scanDataRetrievalState' => 'NORMAL',
'scanDocId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'scanFilename' => 'Important Document - ID1234567.pdf',
'scanMIME' => 'image/png',
'scanPageNum' => 1,
'scanSide' => 'F',
'scanType' => 'PDF'
]
],
'documentId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'documentStatus' => 'DOC_SCANNED',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'idExpiry' => '2020-02-01',
'idIssued' => '1972-11-04',
'idNumber' => '123456789',
'idSubType' => '<string>',
'region' => 'VIC'
]
],
'organisationData' => [
'adverseCreditDataPresent' => true,
'aliases' => [
'<string>'
],
'class' => [
'code' => '<string>',
'description' => '<string>'
],
'contactDetails' => [
'email' => '<string>',
'faxNumber' => '<string>',
'telephoneNumber' => '<string>',
'websiteURL' => '<string>'
],
'disclosingEntityIndicator' => true,
'extractedDate' => '2023-12-25',
'includesNonBeneficiallyHeld' => true,
'industryCodes' => [
[
'code' => '<string>',
'description' => '<string>'
]
],
'industryDeclarations' => [
[
'description' => '<string>',
'language' => '<string>'
]
],
'kycCustomerType' => '<string>',
'lastCheckDate' => '2023-12-25',
'legalFormDetails' => [
'basis' => '<string>',
'capital' => '<string>',
'comments' => '<string>',
'control' => '<string>',
'incorp' => '<string>',
'partner' => '<string>',
'responsibility' => '<string>',
'stocks' => '<string>'
],
'normalisedLegalStatus' => '<string>',
'ownershipResolved' => true,
'registeredName' => '<string>',
'registration' => [
'countryIso' => '<string>',
'date' => '2023-12-25',
'number' => '<string>',
'previousNumber' => '<string>',
'registryCode' => '<string>',
'registryDescription' => '<string>',
'state' => '<string>',
'unstructuredDate' => '<string>',
'unstructuredFoundationDate' => '<string>'
],
'registries' => [
'abr' => [
'abn' => '<string>',
'acn' => '<string>',
'addresses' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'postcode' => '<string>',
'stateCode' => '<string>'
]
],
'businessNames' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'type' => '<string>'
]
],
'charityEndorsements' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'type' => '<string>'
]
],
'charityTypes' => [
[
'description' => '<string>',
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'description' => '<string>',
'dgrEndorsements' => [
[
'endorsedFrom' => '2023-11-07T05:31:56Z',
'endorsedTo' => '2023-11-07T05:31:56Z'
]
],
'gst' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'historicalChanges' => [
[
'businessName' => [
'<string>'
],
'date' => '2023-11-07T05:31:56Z',
'entityStatus' => [
'<string>'
],
'goodsAndServicesTax' => [
'<string>'
],
'mainBusinessPhysicalAddress' => [
'<string>'
],
'mainName' => [
'<string>'
],
'mainTradingName' => [
'<string>'
]
]
],
'lastUpdated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'statusEffectiveFrom' => '<string>',
'type' => '<string>',
'typeCode' => '<string>',
'updatedDate' => '2023-11-07T05:31:56Z'
]
],
'reviewDate' => '2023-12-25',
'shareStructure' => [
[
'amountDue' => 123,
'amountPaid' => 123,
'classCode' => '<string>',
'classTitle' => '<string>',
'docNumber' => '<string>',
'docNumberQualifier' => '<string>',
'sharesIssued' => 123,
'status' => '<string>'
]
],
'startDate' => '2023-12-25',
'status' => [
'code' => '<string>',
'description' => '<string>'
],
'subType' => [
'code' => '<string>',
'description' => '<string>'
],
'subclass' => [
'code' => '<string>',
'description' => '<string>'
],
'type' => [
'code' => '<string>',
'description' => '<string>'
]
]
],
'associations' => [
[
'addedBy' => '<string>',
'entity' => [
'addresses' => [
[
'country' => 'AUS',
'addressId' => '86932629-bdb4-158f-e670-741e89ff78ba',
'addressType' => 'REGISTERED_OFFICE',
'buildingName' => 'Highland Tower',
'careOf' => '<string>',
'endDate' => '0001-01-01',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'longForm' => '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
'postalCode' => '3000',
'region' => 'MELBOURNE',
'startDate' => '2023-03-10',
'state' => 'VIC',
'streetName' => '9 ROYCE AVENUE',
'streetNumber' => 'FLAT 27',
'streetType' => 'Road',
'suburb' => 'Testburb',
'town' => 'MELBOURNE',
'unitNumber' => 'FLAT 27',
'unstructuredLongForm' => '<string>'
]
],
'dateOfBirth' => [
'country' => 'AUS',
'dateOfBirth' => '1978-11-12',
'locality' => 'Brisbane',
'unstructuredDateOfBirth' => '<string>',
'yearOfBirth' => '1978'
],
'entityId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'entityProfile' => '<string>',
'entityType' => 'ORGANISATION',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'flags' => [
[
'flag' => '<string>',
'value' => 123
]
],
'gender' => 'F',
'identityDocs' => [
[
'country' => 'AUS',
'idType' => 'DRIVERS_LICENCE',
'docScan' => [
[
'ScanDelete' => true,
'scanCreated' => '2020-06-02',
'scanData' => 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
'scanDataRetrievalState' => 'NORMAL',
'scanDocId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'scanFilename' => 'Important Document - ID1234567.pdf',
'scanMIME' => 'image/png',
'scanPageNum' => 1,
'scanSide' => 'F',
'scanType' => 'PDF'
]
],
'documentId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'documentStatus' => 'DOC_SCANNED',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'idExpiry' => '2020-02-01',
'idIssued' => '1972-11-04',
'idNumber' => '123456789',
'idSubType' => '<string>',
'region' => 'VIC'
]
],
'organisationData' => [
'adverseCreditDataPresent' => true,
'aliases' => [
'<string>'
],
'class' => [
'code' => '<string>',
'description' => '<string>'
],
'contactDetails' => [
'email' => '<string>',
'faxNumber' => '<string>',
'telephoneNumber' => '<string>',
'websiteURL' => '<string>'
],
'disclosingEntityIndicator' => true,
'extractedDate' => '2023-12-25',
'includesNonBeneficiallyHeld' => true,
'industryCodes' => [
[
'code' => '<string>',
'description' => '<string>'
]
],
'industryDeclarations' => [
[
'description' => '<string>',
'language' => '<string>'
]
],
'kycCustomerType' => '<string>',
'lastCheckDate' => '2023-12-25',
'legalFormDetails' => [
'basis' => '<string>',
'capital' => '<string>',
'comments' => '<string>',
'control' => '<string>',
'incorp' => '<string>',
'partner' => '<string>',
'responsibility' => '<string>',
'stocks' => '<string>'
],
'normalisedLegalStatus' => '<string>',
'ownershipResolved' => true,
'registeredName' => '<string>',
'registration' => [
'countryIso' => '<string>',
'date' => '2023-12-25',
'number' => '<string>',
'previousNumber' => '<string>',
'registryCode' => '<string>',
'registryDescription' => '<string>',
'state' => '<string>',
'unstructuredDate' => '<string>',
'unstructuredFoundationDate' => '<string>'
],
'registries' => [
'abr' => [
'abn' => '<string>',
'acn' => '<string>',
'addresses' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'postcode' => '<string>',
'stateCode' => '<string>'
]
],
'businessNames' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'type' => '<string>'
]
],
'charityEndorsements' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'type' => '<string>'
]
],
'charityTypes' => [
[
'description' => '<string>',
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'description' => '<string>',
'dgrEndorsements' => [
[
'endorsedFrom' => '2023-11-07T05:31:56Z',
'endorsedTo' => '2023-11-07T05:31:56Z'
]
],
'gst' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'historicalChanges' => [
[
'businessName' => [
'<string>'
],
'date' => '2023-11-07T05:31:56Z',
'entityStatus' => [
'<string>'
],
'goodsAndServicesTax' => [
'<string>'
],
'mainBusinessPhysicalAddress' => [
'<string>'
],
'mainName' => [
'<string>'
],
'mainTradingName' => [
'<string>'
]
]
],
'lastUpdated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'statusEffectiveFrom' => '<string>',
'type' => '<string>',
'typeCode' => '<string>',
'updatedDate' => '2023-11-07T05:31:56Z'
]
],
'reviewDate' => '2023-12-25',
'shareStructure' => [
[
'amountDue' => 123,
'amountPaid' => 123,
'classCode' => '<string>',
'classTitle' => '<string>',
'docNumber' => '<string>',
'docNumberQualifier' => '<string>',
'sharesIssued' => 123,
'status' => '<string>'
]
],
'startDate' => '2023-12-25',
'status' => [
'code' => '<string>',
'description' => '<string>'
],
'subType' => [
'code' => '<string>',
'description' => '<string>'
],
'subclass' => [
'code' => '<string>',
'description' => '<string>'
],
'type' => [
'code' => '<string>',
'description' => '<string>'
]
]
],
'percentageHeld' => [
'beneficially' => 123,
'jointly' => 123,
'nonBeneficially' => 123
],
'roles' => [
[
'type' => '<string>',
'typeDescription' => '<string>'
]
]
]
]
]),
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/compliance/v1.2/business/ownership/query"
payload := strings.NewReader("{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Frankie-CustomerID", "<x-frankie-customerid>")
req.Header.Add("api_key", "<api-key>")
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/compliance/v1.2/business/ownership/query")
.header("X-Frankie-CustomerID", "<x-frankie-customerid>")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uat.frankie.one/compliance/v1.2/business/ownership/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Frankie-CustomerID"] = '<x-frankie-customerid>'
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"flags": "kyb_target",
"organisationCheckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationCheckResult": {
"entityCategories": {},
"entityCheckErrors": {},
"entityCheckResults": {},
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"ownershipCheckDate": "2023-11-07T05:31:56Z",
"ownershipCheckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownershipQueryError": {
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
},
"ownershipQueryResult": {
"associatedEntities": {},
"blockingEntityDetails": {},
"blockingEntityIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"entityCreatedDate": "2023-11-07T05:31:56Z",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityUpdatedDate": "2023-11-07T05:31:56Z",
"otherOwners": {},
"ownershipDetails": {},
"ownershipPolicy": {
"blockingDefinitions": [
"<string>"
],
"blockingThreshold": 123,
"uboThreshold": 123
},
"uncategorisedEntities": {}
},
"reportError": {
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
},
"reportResult": {
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"scanDocId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"uboResponse": {
"supplied_data": {
"abn": 99001234321,
"acn": 342225,
"customer_reference": "WBC000ABC123",
"name": "Worldwide Widget Pty. Ltd."
},
"asic_search_timestamp": "2016-08-29T09:12:33.001Z",
"business_details": {
"ABN": "<string>",
"ACN": "<string>",
"ARBN": "<string>",
"anzsic_code": "<string>",
"giin": "<string>",
"registered_name": "<string>",
"asic_company_type": "<string>",
"business_names": [
"<string>"
],
"date_registered_with_asic": "2023-12-25",
"entity_id": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"place_of_business": {
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
},
"public_company": true,
"registered_office": {
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
},
"regulatory_information": {
"licence_details": "<string>",
"licence_number": "<string>",
"licence_verified": true,
"regulatory_body": "<string>"
},
"state_registered_with_asic": "<string>",
"stock_exchange_data": {
"approved_exchange": true,
"exchange": "<string>",
"exchange_ticker": "<string>",
"supporting_document_links": [
"<string>"
],
"supporting_evidence_in_pdf": true
},
"trading_names": [
"<string>"
]
},
"business_screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
},
"error_message": "<string>",
"issues_list": [
{
"issue_description": "Date of birth not found",
"issue_location": "ultimate_beneficial_owner.0.date_of_birth"
}
],
"non_individual_beneficial_owners": [
{
"beneficially_held": true,
"percent_owned": 123,
"entity_type": "APUB",
"name": "Widget Trust Corpoation Inc.",
"stock_exchange_data": {
"approved_exchange": true,
"exchange": "<string>",
"exchange_ticker": "<string>",
"supporting_document_links": [
"<string>"
],
"supporting_evidence_in_pdf": true
}
}
],
"officeholders": [
{
"beneficially_held": true,
"percent_owned": 123,
"role": "Director",
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"date_of_birth": "1969-01-01",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "JAN MICHAEL VINCENT",
"screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
}
}
],
"supplied_data_matches": {
"matched_acn": true,
"matched_company_type": true,
"matched_name": true
},
"ultimate_beneficial_owners": [
{
"beneficially_held": true,
"percent_owned": 123,
"role": "Director",
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"date_of_birth": "1969-01-01",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "JAN MICHAEL VINCENT",
"screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
}
}
]
}
}{
"checkId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"function": "<string>",
"linkURL": "<string>",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX"
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}(AUS Only) Create Business Entity and Query UBO
Process a request for ownership details for an Australian organisation ONLY.
See below for more general international queries.
At a minimum, you just need to supply an ACN or ABN and we can retrieve the rest. You also have the option of supplying company name, type (as per ABR types) and both ABN/ACN and we’ll attempt to verify that that data matches what is on record before attempting any further verification and validation.
KYC/AML for a selection of entities associated with an organisation and/or the organisation itself can optionally be run, but not by default. To enable KYC/AML checks one or more entity categories must be provided. If such a list of entity categories is given then default checks based on configuration will be run for those categories. If a check type is also provided in the request then that type will be used for entities representing individual entities, and the AML subset of that check will be used for organisations if any. Specifying a check type without an entity category will result in an error.
NOTE: A 202 ACCEPT response will be returned if there are full ownership details to be retrieved or there is entity verification requested. In this case results will be pushed using the Push Notification API below and you will be able to retrieve the results using the Retrieve API.
If only basic ownership (profile only) is requested with no entity verification, then the result will be a 200 OK.
More details on how to use this API and interpret the results can be found here:
curl --request POST \
--url https://api.uat.frankie.one/compliance/v1.2/business/ownership/query \
--header 'Content-Type: application/json' \
--header 'X-Frankie-CustomerID: <x-frankie-customerid>' \
--header 'api_key: <api-key>' \
--data '
{
"organisation": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": true,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": true,
"aliases": [
"<string>"
],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": true,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": true,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": true,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": {
"abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": [
"<string>"
],
"date": "2023-11-07T05:31:56Z",
"entityStatus": [
"<string>"
],
"goodsAndServicesTax": [
"<string>"
],
"mainBusinessPhysicalAddress": [
"<string>"
],
"mainName": [
"<string>"
],
"mainTradingName": [
"<string>"
]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
}
},
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"associations": [
{
"addedBy": "<string>",
"entity": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": true,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": true,
"aliases": [
"<string>"
],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": true,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": true,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": true,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": {
"abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": [
"<string>"
],
"date": "2023-11-07T05:31:56Z",
"entityStatus": [
"<string>"
],
"goodsAndServicesTax": [
"<string>"
],
"mainBusinessPhysicalAddress": [
"<string>"
],
"mainName": [
"<string>"
],
"mainTradingName": [
"<string>"
]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
}
},
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"percentageHeld": {
"beneficially": 123,
"jointly": 123,
"nonBeneficially": 123
},
"roles": [
{
"type": "<string>",
"typeDescription": "<string>"
}
]
}
]
}
'import requests
url = "https://api.uat.frankie.one/compliance/v1.2/business/ownership/query"
payload = {
"organisation": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": True,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": True,
"aliases": ["<string>"],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": True,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": True,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": True,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": { "abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": ["<string>"],
"date": "2023-11-07T05:31:56Z",
"entityStatus": ["<string>"],
"goodsAndServicesTax": ["<string>"],
"mainBusinessPhysicalAddress": ["<string>"],
"mainName": ["<string>"],
"mainTradingName": ["<string>"]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
} },
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"associations": [
{
"addedBy": "<string>",
"entity": {
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"dateOfBirth": {
"country": "AUS",
"dateOfBirth": "1978-11-12",
"locality": "Brisbane",
"unstructuredDateOfBirth": "<string>",
"yearOfBirth": "1978"
},
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"entityProfile": "<string>",
"entityType": "ORGANISATION",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"flags": [
{
"flag": "<string>",
"value": 123
}
],
"gender": "F",
"identityDocs": [
{
"country": "AUS",
"idType": "DRIVERS_LICENCE",
"docScan": [
{
"ScanDelete": True,
"scanCreated": "2020-06-02",
"scanData": "VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==",
"scanDataRetrievalState": "NORMAL",
"scanDocId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"scanFilename": "Important Document - ID1234567.pdf",
"scanMIME": "image/png",
"scanPageNum": 1,
"scanSide": "F",
"scanType": "PDF"
}
],
"documentId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"documentStatus": "DOC_SCANNED",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"idExpiry": "2020-02-01",
"idIssued": "1972-11-04",
"idNumber": "123456789",
"idSubType": "<string>",
"region": "VIC"
}
],
"organisationData": {
"adverseCreditDataPresent": True,
"aliases": ["<string>"],
"class": {
"code": "<string>",
"description": "<string>"
},
"contactDetails": {
"email": "<string>",
"faxNumber": "<string>",
"telephoneNumber": "<string>",
"websiteURL": "<string>"
},
"disclosingEntityIndicator": True,
"extractedDate": "2023-12-25",
"includesNonBeneficiallyHeld": True,
"industryCodes": [
{
"code": "<string>",
"description": "<string>"
}
],
"industryDeclarations": [
{
"description": "<string>",
"language": "<string>"
}
],
"kycCustomerType": "<string>",
"lastCheckDate": "2023-12-25",
"legalFormDetails": {
"basis": "<string>",
"capital": "<string>",
"comments": "<string>",
"control": "<string>",
"incorp": "<string>",
"partner": "<string>",
"responsibility": "<string>",
"stocks": "<string>"
},
"normalisedLegalStatus": "<string>",
"ownershipResolved": True,
"registeredName": "<string>",
"registration": {
"countryIso": "<string>",
"date": "2023-12-25",
"number": "<string>",
"previousNumber": "<string>",
"registryCode": "<string>",
"registryDescription": "<string>",
"state": "<string>",
"unstructuredDate": "<string>",
"unstructuredFoundationDate": "<string>"
},
"registries": { "abr": {
"abn": "<string>",
"acn": "<string>",
"addresses": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"postcode": "<string>",
"stateCode": "<string>"
}
],
"businessNames": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"name": "<string>",
"type": "<string>"
}
],
"charityEndorsements": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z",
"type": "<string>"
}
],
"charityTypes": [
{
"description": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"description": "<string>",
"dgrEndorsements": [
{
"endorsedFrom": "2023-11-07T05:31:56Z",
"endorsedTo": "2023-11-07T05:31:56Z"
}
],
"gst": [
{
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveTo": "2023-11-07T05:31:56Z"
}
],
"historicalChanges": [
{
"businessName": ["<string>"],
"date": "2023-11-07T05:31:56Z",
"entityStatus": ["<string>"],
"goodsAndServicesTax": ["<string>"],
"mainBusinessPhysicalAddress": ["<string>"],
"mainName": ["<string>"],
"mainTradingName": ["<string>"]
}
],
"lastUpdated": "2023-11-07T05:31:56Z",
"name": "<string>",
"registeredDate": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusEffectiveFrom": "<string>",
"type": "<string>",
"typeCode": "<string>",
"updatedDate": "2023-11-07T05:31:56Z"
} },
"reviewDate": "2023-12-25",
"shareStructure": [
{
"amountDue": 123,
"amountPaid": 123,
"classCode": "<string>",
"classTitle": "<string>",
"docNumber": "<string>",
"docNumberQualifier": "<string>",
"sharesIssued": 123,
"status": "<string>"
}
],
"startDate": "2023-12-25",
"status": {
"code": "<string>",
"description": "<string>"
},
"subType": {
"code": "<string>",
"description": "<string>"
},
"subclass": {
"code": "<string>",
"description": "<string>"
},
"type": {
"code": "<string>",
"description": "<string>"
}
}
},
"percentageHeld": {
"beneficially": 123,
"jointly": 123,
"nonBeneficially": 123
},
"roles": [
{
"type": "<string>",
"typeDescription": "<string>"
}
]
}
]
}
headers = {
"X-Frankie-CustomerID": "<x-frankie-customerid>",
"api_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Frankie-CustomerID': '<x-frankie-customerid>',
api_key: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
organisation: {
addresses: [
{
country: 'AUS',
addressId: '86932629-bdb4-158f-e670-741e89ff78ba',
addressType: 'REGISTERED_OFFICE',
buildingName: 'Highland Tower',
careOf: '<string>',
endDate: '0001-01-01',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
longForm: '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
postalCode: '3000',
region: 'MELBOURNE',
startDate: '2023-03-10',
state: 'VIC',
streetName: '9 ROYCE AVENUE',
streetNumber: 'FLAT 27',
streetType: 'Road',
suburb: 'Testburb',
town: 'MELBOURNE',
unitNumber: 'FLAT 27',
unstructuredLongForm: '<string>'
}
],
dateOfBirth: {
country: 'AUS',
dateOfBirth: '1978-11-12',
locality: 'Brisbane',
unstructuredDateOfBirth: '<string>',
yearOfBirth: '1978'
},
entityId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
entityProfile: '<string>',
entityType: 'ORGANISATION',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
flags: [{flag: '<string>', value: 123}],
gender: 'F',
identityDocs: [
{
country: 'AUS',
idType: 'DRIVERS_LICENCE',
docScan: [
{
ScanDelete: true,
scanCreated: '2020-06-02',
scanData: 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
scanDataRetrievalState: 'NORMAL',
scanDocId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
scanFilename: 'Important Document - ID1234567.pdf',
scanMIME: 'image/png',
scanPageNum: 1,
scanSide: 'F',
scanType: 'PDF'
}
],
documentId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
documentStatus: 'DOC_SCANNED',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
idExpiry: '2020-02-01',
idIssued: '1972-11-04',
idNumber: '123456789',
idSubType: '<string>',
region: 'VIC'
}
],
organisationData: {
adverseCreditDataPresent: true,
aliases: ['<string>'],
class: {code: '<string>', description: '<string>'},
contactDetails: {
email: '<string>',
faxNumber: '<string>',
telephoneNumber: '<string>',
websiteURL: '<string>'
},
disclosingEntityIndicator: true,
extractedDate: '2023-12-25',
includesNonBeneficiallyHeld: true,
industryCodes: [{code: '<string>', description: '<string>'}],
industryDeclarations: [{description: '<string>', language: '<string>'}],
kycCustomerType: '<string>',
lastCheckDate: '2023-12-25',
legalFormDetails: {
basis: '<string>',
capital: '<string>',
comments: '<string>',
control: '<string>',
incorp: '<string>',
partner: '<string>',
responsibility: '<string>',
stocks: '<string>'
},
normalisedLegalStatus: '<string>',
ownershipResolved: true,
registeredName: '<string>',
registration: {
countryIso: '<string>',
date: '2023-12-25',
number: '<string>',
previousNumber: '<string>',
registryCode: '<string>',
registryDescription: '<string>',
state: '<string>',
unstructuredDate: '<string>',
unstructuredFoundationDate: '<string>'
},
registries: {
abr: {
abn: '<string>',
acn: '<string>',
addresses: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
postcode: '<string>',
stateCode: '<string>'
}
],
businessNames: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
name: '<string>',
type: '<string>'
}
],
charityEndorsements: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
type: '<string>'
}
],
charityTypes: [
{
description: '<string>',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z'
}
],
description: '<string>',
dgrEndorsements: [{endorsedFrom: '2023-11-07T05:31:56Z', endorsedTo: '2023-11-07T05:31:56Z'}],
gst: [{effectiveFrom: '2023-11-07T05:31:56Z', effectiveTo: '2023-11-07T05:31:56Z'}],
historicalChanges: [
{
businessName: ['<string>'],
date: '2023-11-07T05:31:56Z',
entityStatus: ['<string>'],
goodsAndServicesTax: ['<string>'],
mainBusinessPhysicalAddress: ['<string>'],
mainName: ['<string>'],
mainTradingName: ['<string>']
}
],
lastUpdated: '2023-11-07T05:31:56Z',
name: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
status: '<string>',
statusEffectiveFrom: '<string>',
type: '<string>',
typeCode: '<string>',
updatedDate: '2023-11-07T05:31:56Z'
}
},
reviewDate: '2023-12-25',
shareStructure: [
{
amountDue: 123,
amountPaid: 123,
classCode: '<string>',
classTitle: '<string>',
docNumber: '<string>',
docNumberQualifier: '<string>',
sharesIssued: 123,
status: '<string>'
}
],
startDate: '2023-12-25',
status: {code: '<string>', description: '<string>'},
subType: {code: '<string>', description: '<string>'},
subclass: {code: '<string>', description: '<string>'},
type: {code: '<string>', description: '<string>'}
}
},
associations: [
{
addedBy: '<string>',
entity: {
addresses: [
{
country: 'AUS',
addressId: '86932629-bdb4-158f-e670-741e89ff78ba',
addressType: 'REGISTERED_OFFICE',
buildingName: 'Highland Tower',
careOf: '<string>',
endDate: '0001-01-01',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
longForm: '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
postalCode: '3000',
region: 'MELBOURNE',
startDate: '2023-03-10',
state: 'VIC',
streetName: '9 ROYCE AVENUE',
streetNumber: 'FLAT 27',
streetType: 'Road',
suburb: 'Testburb',
town: 'MELBOURNE',
unitNumber: 'FLAT 27',
unstructuredLongForm: '<string>'
}
],
dateOfBirth: {
country: 'AUS',
dateOfBirth: '1978-11-12',
locality: 'Brisbane',
unstructuredDateOfBirth: '<string>',
yearOfBirth: '1978'
},
entityId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
entityProfile: '<string>',
entityType: 'ORGANISATION',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
flags: [{flag: '<string>', value: 123}],
gender: 'F',
identityDocs: [
{
country: 'AUS',
idType: 'DRIVERS_LICENCE',
docScan: [
{
ScanDelete: true,
scanCreated: '2020-06-02',
scanData: 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
scanDataRetrievalState: 'NORMAL',
scanDocId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
scanFilename: 'Important Document - ID1234567.pdf',
scanMIME: 'image/png',
scanPageNum: 1,
scanSide: 'F',
scanType: 'PDF'
}
],
documentId: '84a9a860-68ae-4d7d-9a53-54a1116d5051',
documentStatus: 'DOC_SCANNED',
extraData: [{kvpKey: 'ACN', kvpType: 'id.external', kvpValue: '406655338'}],
idExpiry: '2020-02-01',
idIssued: '1972-11-04',
idNumber: '123456789',
idSubType: '<string>',
region: 'VIC'
}
],
organisationData: {
adverseCreditDataPresent: true,
aliases: ['<string>'],
class: {code: '<string>', description: '<string>'},
contactDetails: {
email: '<string>',
faxNumber: '<string>',
telephoneNumber: '<string>',
websiteURL: '<string>'
},
disclosingEntityIndicator: true,
extractedDate: '2023-12-25',
includesNonBeneficiallyHeld: true,
industryCodes: [{code: '<string>', description: '<string>'}],
industryDeclarations: [{description: '<string>', language: '<string>'}],
kycCustomerType: '<string>',
lastCheckDate: '2023-12-25',
legalFormDetails: {
basis: '<string>',
capital: '<string>',
comments: '<string>',
control: '<string>',
incorp: '<string>',
partner: '<string>',
responsibility: '<string>',
stocks: '<string>'
},
normalisedLegalStatus: '<string>',
ownershipResolved: true,
registeredName: '<string>',
registration: {
countryIso: '<string>',
date: '2023-12-25',
number: '<string>',
previousNumber: '<string>',
registryCode: '<string>',
registryDescription: '<string>',
state: '<string>',
unstructuredDate: '<string>',
unstructuredFoundationDate: '<string>'
},
registries: {
abr: {
abn: '<string>',
acn: '<string>',
addresses: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
postcode: '<string>',
stateCode: '<string>'
}
],
businessNames: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
name: '<string>',
type: '<string>'
}
],
charityEndorsements: [
{
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z',
type: '<string>'
}
],
charityTypes: [
{
description: '<string>',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveTo: '2023-11-07T05:31:56Z'
}
],
description: '<string>',
dgrEndorsements: [{endorsedFrom: '2023-11-07T05:31:56Z', endorsedTo: '2023-11-07T05:31:56Z'}],
gst: [{effectiveFrom: '2023-11-07T05:31:56Z', effectiveTo: '2023-11-07T05:31:56Z'}],
historicalChanges: [
{
businessName: ['<string>'],
date: '2023-11-07T05:31:56Z',
entityStatus: ['<string>'],
goodsAndServicesTax: ['<string>'],
mainBusinessPhysicalAddress: ['<string>'],
mainName: ['<string>'],
mainTradingName: ['<string>']
}
],
lastUpdated: '2023-11-07T05:31:56Z',
name: '<string>',
registeredDate: '2023-11-07T05:31:56Z',
status: '<string>',
statusEffectiveFrom: '<string>',
type: '<string>',
typeCode: '<string>',
updatedDate: '2023-11-07T05:31:56Z'
}
},
reviewDate: '2023-12-25',
shareStructure: [
{
amountDue: 123,
amountPaid: 123,
classCode: '<string>',
classTitle: '<string>',
docNumber: '<string>',
docNumberQualifier: '<string>',
sharesIssued: 123,
status: '<string>'
}
],
startDate: '2023-12-25',
status: {code: '<string>', description: '<string>'},
subType: {code: '<string>', description: '<string>'},
subclass: {code: '<string>', description: '<string>'},
type: {code: '<string>', description: '<string>'}
}
},
percentageHeld: {beneficially: 123, jointly: 123, nonBeneficially: 123},
roles: [{type: '<string>', typeDescription: '<string>'}]
}
]
})
};
fetch('https://api.uat.frankie.one/compliance/v1.2/business/ownership/query', 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/compliance/v1.2/business/ownership/query",
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([
'organisation' => [
'addresses' => [
[
'country' => 'AUS',
'addressId' => '86932629-bdb4-158f-e670-741e89ff78ba',
'addressType' => 'REGISTERED_OFFICE',
'buildingName' => 'Highland Tower',
'careOf' => '<string>',
'endDate' => '0001-01-01',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'longForm' => '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
'postalCode' => '3000',
'region' => 'MELBOURNE',
'startDate' => '2023-03-10',
'state' => 'VIC',
'streetName' => '9 ROYCE AVENUE',
'streetNumber' => 'FLAT 27',
'streetType' => 'Road',
'suburb' => 'Testburb',
'town' => 'MELBOURNE',
'unitNumber' => 'FLAT 27',
'unstructuredLongForm' => '<string>'
]
],
'dateOfBirth' => [
'country' => 'AUS',
'dateOfBirth' => '1978-11-12',
'locality' => 'Brisbane',
'unstructuredDateOfBirth' => '<string>',
'yearOfBirth' => '1978'
],
'entityId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'entityProfile' => '<string>',
'entityType' => 'ORGANISATION',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'flags' => [
[
'flag' => '<string>',
'value' => 123
]
],
'gender' => 'F',
'identityDocs' => [
[
'country' => 'AUS',
'idType' => 'DRIVERS_LICENCE',
'docScan' => [
[
'ScanDelete' => true,
'scanCreated' => '2020-06-02',
'scanData' => 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
'scanDataRetrievalState' => 'NORMAL',
'scanDocId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'scanFilename' => 'Important Document - ID1234567.pdf',
'scanMIME' => 'image/png',
'scanPageNum' => 1,
'scanSide' => 'F',
'scanType' => 'PDF'
]
],
'documentId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'documentStatus' => 'DOC_SCANNED',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'idExpiry' => '2020-02-01',
'idIssued' => '1972-11-04',
'idNumber' => '123456789',
'idSubType' => '<string>',
'region' => 'VIC'
]
],
'organisationData' => [
'adverseCreditDataPresent' => true,
'aliases' => [
'<string>'
],
'class' => [
'code' => '<string>',
'description' => '<string>'
],
'contactDetails' => [
'email' => '<string>',
'faxNumber' => '<string>',
'telephoneNumber' => '<string>',
'websiteURL' => '<string>'
],
'disclosingEntityIndicator' => true,
'extractedDate' => '2023-12-25',
'includesNonBeneficiallyHeld' => true,
'industryCodes' => [
[
'code' => '<string>',
'description' => '<string>'
]
],
'industryDeclarations' => [
[
'description' => '<string>',
'language' => '<string>'
]
],
'kycCustomerType' => '<string>',
'lastCheckDate' => '2023-12-25',
'legalFormDetails' => [
'basis' => '<string>',
'capital' => '<string>',
'comments' => '<string>',
'control' => '<string>',
'incorp' => '<string>',
'partner' => '<string>',
'responsibility' => '<string>',
'stocks' => '<string>'
],
'normalisedLegalStatus' => '<string>',
'ownershipResolved' => true,
'registeredName' => '<string>',
'registration' => [
'countryIso' => '<string>',
'date' => '2023-12-25',
'number' => '<string>',
'previousNumber' => '<string>',
'registryCode' => '<string>',
'registryDescription' => '<string>',
'state' => '<string>',
'unstructuredDate' => '<string>',
'unstructuredFoundationDate' => '<string>'
],
'registries' => [
'abr' => [
'abn' => '<string>',
'acn' => '<string>',
'addresses' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'postcode' => '<string>',
'stateCode' => '<string>'
]
],
'businessNames' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'type' => '<string>'
]
],
'charityEndorsements' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'type' => '<string>'
]
],
'charityTypes' => [
[
'description' => '<string>',
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'description' => '<string>',
'dgrEndorsements' => [
[
'endorsedFrom' => '2023-11-07T05:31:56Z',
'endorsedTo' => '2023-11-07T05:31:56Z'
]
],
'gst' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'historicalChanges' => [
[
'businessName' => [
'<string>'
],
'date' => '2023-11-07T05:31:56Z',
'entityStatus' => [
'<string>'
],
'goodsAndServicesTax' => [
'<string>'
],
'mainBusinessPhysicalAddress' => [
'<string>'
],
'mainName' => [
'<string>'
],
'mainTradingName' => [
'<string>'
]
]
],
'lastUpdated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'statusEffectiveFrom' => '<string>',
'type' => '<string>',
'typeCode' => '<string>',
'updatedDate' => '2023-11-07T05:31:56Z'
]
],
'reviewDate' => '2023-12-25',
'shareStructure' => [
[
'amountDue' => 123,
'amountPaid' => 123,
'classCode' => '<string>',
'classTitle' => '<string>',
'docNumber' => '<string>',
'docNumberQualifier' => '<string>',
'sharesIssued' => 123,
'status' => '<string>'
]
],
'startDate' => '2023-12-25',
'status' => [
'code' => '<string>',
'description' => '<string>'
],
'subType' => [
'code' => '<string>',
'description' => '<string>'
],
'subclass' => [
'code' => '<string>',
'description' => '<string>'
],
'type' => [
'code' => '<string>',
'description' => '<string>'
]
]
],
'associations' => [
[
'addedBy' => '<string>',
'entity' => [
'addresses' => [
[
'country' => 'AUS',
'addressId' => '86932629-bdb4-158f-e670-741e89ff78ba',
'addressType' => 'REGISTERED_OFFICE',
'buildingName' => 'Highland Tower',
'careOf' => '<string>',
'endDate' => '0001-01-01',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'longForm' => '42a Test Eagle Road, Testville, TST 123-TST, Testalia',
'postalCode' => '3000',
'region' => 'MELBOURNE',
'startDate' => '2023-03-10',
'state' => 'VIC',
'streetName' => '9 ROYCE AVENUE',
'streetNumber' => 'FLAT 27',
'streetType' => 'Road',
'suburb' => 'Testburb',
'town' => 'MELBOURNE',
'unitNumber' => 'FLAT 27',
'unstructuredLongForm' => '<string>'
]
],
'dateOfBirth' => [
'country' => 'AUS',
'dateOfBirth' => '1978-11-12',
'locality' => 'Brisbane',
'unstructuredDateOfBirth' => '<string>',
'yearOfBirth' => '1978'
],
'entityId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'entityProfile' => '<string>',
'entityType' => 'ORGANISATION',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'flags' => [
[
'flag' => '<string>',
'value' => 123
]
],
'gender' => 'F',
'identityDocs' => [
[
'country' => 'AUS',
'idType' => 'DRIVERS_LICENCE',
'docScan' => [
[
'ScanDelete' => true,
'scanCreated' => '2020-06-02',
'scanData' => 'VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==',
'scanDataRetrievalState' => 'NORMAL',
'scanDocId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'scanFilename' => 'Important Document - ID1234567.pdf',
'scanMIME' => 'image/png',
'scanPageNum' => 1,
'scanSide' => 'F',
'scanType' => 'PDF'
]
],
'documentId' => '84a9a860-68ae-4d7d-9a53-54a1116d5051',
'documentStatus' => 'DOC_SCANNED',
'extraData' => [
[
'kvpKey' => 'ACN',
'kvpType' => 'id.external',
'kvpValue' => '406655338'
]
],
'idExpiry' => '2020-02-01',
'idIssued' => '1972-11-04',
'idNumber' => '123456789',
'idSubType' => '<string>',
'region' => 'VIC'
]
],
'organisationData' => [
'adverseCreditDataPresent' => true,
'aliases' => [
'<string>'
],
'class' => [
'code' => '<string>',
'description' => '<string>'
],
'contactDetails' => [
'email' => '<string>',
'faxNumber' => '<string>',
'telephoneNumber' => '<string>',
'websiteURL' => '<string>'
],
'disclosingEntityIndicator' => true,
'extractedDate' => '2023-12-25',
'includesNonBeneficiallyHeld' => true,
'industryCodes' => [
[
'code' => '<string>',
'description' => '<string>'
]
],
'industryDeclarations' => [
[
'description' => '<string>',
'language' => '<string>'
]
],
'kycCustomerType' => '<string>',
'lastCheckDate' => '2023-12-25',
'legalFormDetails' => [
'basis' => '<string>',
'capital' => '<string>',
'comments' => '<string>',
'control' => '<string>',
'incorp' => '<string>',
'partner' => '<string>',
'responsibility' => '<string>',
'stocks' => '<string>'
],
'normalisedLegalStatus' => '<string>',
'ownershipResolved' => true,
'registeredName' => '<string>',
'registration' => [
'countryIso' => '<string>',
'date' => '2023-12-25',
'number' => '<string>',
'previousNumber' => '<string>',
'registryCode' => '<string>',
'registryDescription' => '<string>',
'state' => '<string>',
'unstructuredDate' => '<string>',
'unstructuredFoundationDate' => '<string>'
],
'registries' => [
'abr' => [
'abn' => '<string>',
'acn' => '<string>',
'addresses' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'postcode' => '<string>',
'stateCode' => '<string>'
]
],
'businessNames' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'type' => '<string>'
]
],
'charityEndorsements' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z',
'type' => '<string>'
]
],
'charityTypes' => [
[
'description' => '<string>',
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'description' => '<string>',
'dgrEndorsements' => [
[
'endorsedFrom' => '2023-11-07T05:31:56Z',
'endorsedTo' => '2023-11-07T05:31:56Z'
]
],
'gst' => [
[
'effectiveFrom' => '2023-11-07T05:31:56Z',
'effectiveTo' => '2023-11-07T05:31:56Z'
]
],
'historicalChanges' => [
[
'businessName' => [
'<string>'
],
'date' => '2023-11-07T05:31:56Z',
'entityStatus' => [
'<string>'
],
'goodsAndServicesTax' => [
'<string>'
],
'mainBusinessPhysicalAddress' => [
'<string>'
],
'mainName' => [
'<string>'
],
'mainTradingName' => [
'<string>'
]
]
],
'lastUpdated' => '2023-11-07T05:31:56Z',
'name' => '<string>',
'registeredDate' => '2023-11-07T05:31:56Z',
'status' => '<string>',
'statusEffectiveFrom' => '<string>',
'type' => '<string>',
'typeCode' => '<string>',
'updatedDate' => '2023-11-07T05:31:56Z'
]
],
'reviewDate' => '2023-12-25',
'shareStructure' => [
[
'amountDue' => 123,
'amountPaid' => 123,
'classCode' => '<string>',
'classTitle' => '<string>',
'docNumber' => '<string>',
'docNumberQualifier' => '<string>',
'sharesIssued' => 123,
'status' => '<string>'
]
],
'startDate' => '2023-12-25',
'status' => [
'code' => '<string>',
'description' => '<string>'
],
'subType' => [
'code' => '<string>',
'description' => '<string>'
],
'subclass' => [
'code' => '<string>',
'description' => '<string>'
],
'type' => [
'code' => '<string>',
'description' => '<string>'
]
]
],
'percentageHeld' => [
'beneficially' => 123,
'jointly' => 123,
'nonBeneficially' => 123
],
'roles' => [
[
'type' => '<string>',
'typeDescription' => '<string>'
]
]
]
]
]),
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/compliance/v1.2/business/ownership/query"
payload := strings.NewReader("{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Frankie-CustomerID", "<x-frankie-customerid>")
req.Header.Add("api_key", "<api-key>")
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/compliance/v1.2/business/ownership/query")
.header("X-Frankie-CustomerID", "<x-frankie-customerid>")
.header("api_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uat.frankie.one/compliance/v1.2/business/ownership/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Frankie-CustomerID"] = '<x-frankie-customerid>'
request["api_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"organisation\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"associations\": [\n {\n \"addedBy\": \"<string>\",\n \"entity\": {\n \"addresses\": [\n {\n \"country\": \"AUS\",\n \"addressId\": \"86932629-bdb4-158f-e670-741e89ff78ba\",\n \"addressType\": \"REGISTERED_OFFICE\",\n \"buildingName\": \"Highland Tower\",\n \"careOf\": \"<string>\",\n \"endDate\": \"0001-01-01\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"longForm\": \"42a Test Eagle Road, Testville, TST 123-TST, Testalia\",\n \"postalCode\": \"3000\",\n \"region\": \"MELBOURNE\",\n \"startDate\": \"2023-03-10\",\n \"state\": \"VIC\",\n \"streetName\": \"9 ROYCE AVENUE\",\n \"streetNumber\": \"FLAT 27\",\n \"streetType\": \"Road\",\n \"suburb\": \"Testburb\",\n \"town\": \"MELBOURNE\",\n \"unitNumber\": \"FLAT 27\",\n \"unstructuredLongForm\": \"<string>\"\n }\n ],\n \"dateOfBirth\": {\n \"country\": \"AUS\",\n \"dateOfBirth\": \"1978-11-12\",\n \"locality\": \"Brisbane\",\n \"unstructuredDateOfBirth\": \"<string>\",\n \"yearOfBirth\": \"1978\"\n },\n \"entityId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"entityProfile\": \"<string>\",\n \"entityType\": \"ORGANISATION\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"flags\": [\n {\n \"flag\": \"<string>\",\n \"value\": 123\n }\n ],\n \"gender\": \"F\",\n \"identityDocs\": [\n {\n \"country\": \"AUS\",\n \"idType\": \"DRIVERS_LICENCE\",\n \"docScan\": [\n {\n \"ScanDelete\": true,\n \"scanCreated\": \"2020-06-02\",\n \"scanData\": \"VGhpcyBpcyBzb21lIGV4YW1wbGUgZGF0YS4gV29vLCBJIGJldCB5b3UgcmVncmV0IHRoZSB0aW1lIHlvdSB3YXN0ZWQgZGVjb2RpbmcgdGhpcywgaHVoPw==\",\n \"scanDataRetrievalState\": \"NORMAL\",\n \"scanDocId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"scanFilename\": \"Important Document - ID1234567.pdf\",\n \"scanMIME\": \"image/png\",\n \"scanPageNum\": 1,\n \"scanSide\": \"F\",\n \"scanType\": \"PDF\"\n }\n ],\n \"documentId\": \"84a9a860-68ae-4d7d-9a53-54a1116d5051\",\n \"documentStatus\": \"DOC_SCANNED\",\n \"extraData\": [\n {\n \"kvpKey\": \"ACN\",\n \"kvpType\": \"id.external\",\n \"kvpValue\": \"406655338\"\n }\n ],\n \"idExpiry\": \"2020-02-01\",\n \"idIssued\": \"1972-11-04\",\n \"idNumber\": \"123456789\",\n \"idSubType\": \"<string>\",\n \"region\": \"VIC\"\n }\n ],\n \"organisationData\": {\n \"adverseCreditDataPresent\": true,\n \"aliases\": [\n \"<string>\"\n ],\n \"class\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"contactDetails\": {\n \"email\": \"<string>\",\n \"faxNumber\": \"<string>\",\n \"telephoneNumber\": \"<string>\",\n \"websiteURL\": \"<string>\"\n },\n \"disclosingEntityIndicator\": true,\n \"extractedDate\": \"2023-12-25\",\n \"includesNonBeneficiallyHeld\": true,\n \"industryCodes\": [\n {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"industryDeclarations\": [\n {\n \"description\": \"<string>\",\n \"language\": \"<string>\"\n }\n ],\n \"kycCustomerType\": \"<string>\",\n \"lastCheckDate\": \"2023-12-25\",\n \"legalFormDetails\": {\n \"basis\": \"<string>\",\n \"capital\": \"<string>\",\n \"comments\": \"<string>\",\n \"control\": \"<string>\",\n \"incorp\": \"<string>\",\n \"partner\": \"<string>\",\n \"responsibility\": \"<string>\",\n \"stocks\": \"<string>\"\n },\n \"normalisedLegalStatus\": \"<string>\",\n \"ownershipResolved\": true,\n \"registeredName\": \"<string>\",\n \"registration\": {\n \"countryIso\": \"<string>\",\n \"date\": \"2023-12-25\",\n \"number\": \"<string>\",\n \"previousNumber\": \"<string>\",\n \"registryCode\": \"<string>\",\n \"registryDescription\": \"<string>\",\n \"state\": \"<string>\",\n \"unstructuredDate\": \"<string>\",\n \"unstructuredFoundationDate\": \"<string>\"\n },\n \"registries\": {\n \"abr\": {\n \"abn\": \"<string>\",\n \"acn\": \"<string>\",\n \"addresses\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"postcode\": \"<string>\",\n \"stateCode\": \"<string>\"\n }\n ],\n \"businessNames\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"charityEndorsements\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\",\n \"type\": \"<string>\"\n }\n ],\n \"charityTypes\": [\n {\n \"description\": \"<string>\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"description\": \"<string>\",\n \"dgrEndorsements\": [\n {\n \"endorsedFrom\": \"2023-11-07T05:31:56Z\",\n \"endorsedTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"gst\": [\n {\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveTo\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"historicalChanges\": [\n {\n \"businessName\": [\n \"<string>\"\n ],\n \"date\": \"2023-11-07T05:31:56Z\",\n \"entityStatus\": [\n \"<string>\"\n ],\n \"goodsAndServicesTax\": [\n \"<string>\"\n ],\n \"mainBusinessPhysicalAddress\": [\n \"<string>\"\n ],\n \"mainName\": [\n \"<string>\"\n ],\n \"mainTradingName\": [\n \"<string>\"\n ]\n }\n ],\n \"lastUpdated\": \"2023-11-07T05:31:56Z\",\n \"name\": \"<string>\",\n \"registeredDate\": \"2023-11-07T05:31:56Z\",\n \"status\": \"<string>\",\n \"statusEffectiveFrom\": \"<string>\",\n \"type\": \"<string>\",\n \"typeCode\": \"<string>\",\n \"updatedDate\": \"2023-11-07T05:31:56Z\"\n }\n },\n \"reviewDate\": \"2023-12-25\",\n \"shareStructure\": [\n {\n \"amountDue\": 123,\n \"amountPaid\": 123,\n \"classCode\": \"<string>\",\n \"classTitle\": \"<string>\",\n \"docNumber\": \"<string>\",\n \"docNumberQualifier\": \"<string>\",\n \"sharesIssued\": 123,\n \"status\": \"<string>\"\n }\n ],\n \"startDate\": \"2023-12-25\",\n \"status\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subType\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"subclass\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"type\": {\n \"code\": \"<string>\",\n \"description\": \"<string>\"\n }\n }\n },\n \"percentageHeld\": {\n \"beneficially\": 123,\n \"jointly\": 123,\n \"nonBeneficially\": 123\n },\n \"roles\": [\n {\n \"type\": \"<string>\",\n \"typeDescription\": \"<string>\"\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"flags": "kyb_target",
"organisationCheckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationCheckResult": {
"entityCategories": {},
"entityCheckErrors": {},
"entityCheckResults": {},
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"ownershipCheckDate": "2023-11-07T05:31:56Z",
"ownershipCheckId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownershipQueryError": {
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
},
"ownershipQueryResult": {
"associatedEntities": {},
"blockingEntityDetails": {},
"blockingEntityIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"entityCreatedDate": "2023-11-07T05:31:56Z",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityUpdatedDate": "2023-11-07T05:31:56Z",
"otherOwners": {},
"ownershipDetails": {},
"ownershipPolicy": {
"blockingDefinitions": [
"<string>"
],
"blockingThreshold": 123,
"uboThreshold": 123
},
"uncategorisedEntities": {}
},
"reportError": {
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
},
"reportResult": {
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location": "<string>",
"scanDocId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"uboResponse": {
"supplied_data": {
"abn": 99001234321,
"acn": 342225,
"customer_reference": "WBC000ABC123",
"name": "Worldwide Widget Pty. Ltd."
},
"asic_search_timestamp": "2016-08-29T09:12:33.001Z",
"business_details": {
"ABN": "<string>",
"ACN": "<string>",
"ARBN": "<string>",
"anzsic_code": "<string>",
"giin": "<string>",
"registered_name": "<string>",
"asic_company_type": "<string>",
"business_names": [
"<string>"
],
"date_registered_with_asic": "2023-12-25",
"entity_id": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"place_of_business": {
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
},
"public_company": true,
"registered_office": {
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
},
"regulatory_information": {
"licence_details": "<string>",
"licence_number": "<string>",
"licence_verified": true,
"regulatory_body": "<string>"
},
"state_registered_with_asic": "<string>",
"stock_exchange_data": {
"approved_exchange": true,
"exchange": "<string>",
"exchange_ticker": "<string>",
"supporting_document_links": [
"<string>"
],
"supporting_evidence_in_pdf": true
},
"trading_names": [
"<string>"
]
},
"business_screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
},
"error_message": "<string>",
"issues_list": [
{
"issue_description": "Date of birth not found",
"issue_location": "ultimate_beneficial_owner.0.date_of_birth"
}
],
"non_individual_beneficial_owners": [
{
"beneficially_held": true,
"percent_owned": 123,
"entity_type": "APUB",
"name": "Widget Trust Corpoation Inc.",
"stock_exchange_data": {
"approved_exchange": true,
"exchange": "<string>",
"exchange_ticker": "<string>",
"supporting_document_links": [
"<string>"
],
"supporting_evidence_in_pdf": true
}
}
],
"officeholders": [
{
"beneficially_held": true,
"percent_owned": 123,
"role": "Director",
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"date_of_birth": "1969-01-01",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "JAN MICHAEL VINCENT",
"screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
}
}
],
"supplied_data_matches": {
"matched_acn": true,
"matched_company_type": true,
"matched_name": true
},
"ultimate_beneficial_owners": [
{
"beneficially_held": true,
"percent_owned": 123,
"role": "Director",
"addresses": [
{
"country": "AUS",
"addressId": "86932629-bdb4-158f-e670-741e89ff78ba",
"addressType": "REGISTERED_OFFICE",
"buildingName": "Highland Tower",
"careOf": "<string>",
"endDate": "0001-01-01",
"extraData": [
{
"kvpKey": "ACN",
"kvpType": "id.external",
"kvpValue": "406655338"
}
],
"longForm": "42a Test Eagle Road, Testville, TST 123-TST, Testalia",
"postalCode": "3000",
"region": "MELBOURNE",
"startDate": "2023-03-10",
"state": "VIC",
"streetName": "9 ROYCE AVENUE",
"streetNumber": "FLAT 27",
"streetType": "Road",
"suburb": "Testburb",
"town": "MELBOURNE",
"unitNumber": "FLAT 27",
"unstructuredLongForm": "<string>"
}
],
"date_of_birth": "1969-01-01",
"entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "JAN MICHAEL VINCENT",
"screening_result": {
"aml_result": {
"media_hit_count": 0
},
"kyc_result": {
"address_match_count": 1,
"dob_match_count": 1,
"name_match_count": 2,
"check_result": "PASS",
"matching_sources": [
"au-elec",
"ntd",
"dvs"
]
}
}
}
]
}
}{
"checkId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "84a9a860-68ae-4d7d-9a53-54a1116d5051",
"function": "<string>",
"linkURL": "<string>",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX"
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}{
"errorCode": "CORE-5990",
"errorMsg": "Everything went kaflooey. Stay clam.",
"requestId": "01BFJA617JMJXEW6G7TDDXNSHX",
"commit": "2af478ed",
"httpStatusCode": 501,
"issues": [
{
"issueLocation": "dateOfBirth",
"issue": "Invalid format. Must be YYYY-MM-DD"
}
]
}Authorizations
API key issued by Frankie Financial. This will rotate regularly.
Headers
Customer ID issued by Frankie Financial. This will never change. Your API key, which is mapped to this identity, will change over time.
If, as a Frankie Customer, you are acting on behalf of your own customers, then you can populate this field with a Frankie-assigned ID.
Note: If using a CustomerChildID, you will also need a separate api_key for each child.
Any documents, checks, entities that are created when this field has been populated will now be tied to this CustomerID + CustomerChildID combination. Just as Customers cannot see data created by other Customers, so too a Customer's Children will not be able to see each other's data.
A Customer can see the documents/entities and checks of all their Children.
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.
Query Parameters
When creating a new check, we need to define the checks we wish to run. If this parameter is not supplied then the check will be based on a configured check type for each entity category.
The checkType is make up of a comma separated list of the types of check we wish to run.
The order is important, and must be of the form:
- Entity Check (if you're running this). Choose one from the available options
- ID Check (If you want this)
- PEP Checks (again if you want this, choose one of the options)
Entity Checks - One of:
- "one_plus": Checks name, address and DoB against a minimum of 1 data source. (also known as a 1+1)
- "two_plus": Checks name, address and DoB against a minimum of 2 independent data sources (also known as a 2+2)
ID Checks - One of:
- "id": Checks all of the identity documents, but not necessarily the entity itself independently. Use this in conjunction with a one_plus or two_plus for more.
Fraud Checks - One or more of:
- "fraudlist": Checks to see if the identity appears on any known fraud lists. Should be run after KYC/ID checks have passed.
- "fraudid": Checks external ID services to see if details appear in fraud detection services (e.g. EmailAge or FraudNet)
PEP Checks - One of:
- "pep": Will only run PEP/Sanctions checks (no identity verification)
- "pep_media": Will run PEP/Sanctions checks, as well as watchlist and adverse media checks. (no identity verification)
- NOTE: These checks will ONLY run if either the KYC/ID checks have been run prior, or it is the only check requested.
Pre-defined combinations (deprecated):
- "full": equivalent to "two_plus,id,pep_media" or "pep_media" if the target is an organisation.
- "default": Currently defined as "two_plus,id" or "pep" if the target is an organisation.
- NOTE: These options are now deprecated and support for these options will be eventually halted. Please specify check_types explicitly.
Custom:
- By arrangement with Frankie you can define your own KYC check type.
This will allow you to set the minimum number of matches for: - name - date of birth - address - government id
This allows for alternatives to the "standard" two_plus or one_plus (note, these can be overridden too).
Profile:
- "profile": By arrangement with Frankie you can have a "profile" check type that applies checks according to a profile that you assign to the entity from a predefined set of profiles.
The profile to use will be taken from the entity.entityProfile field if set, or be run through a set of configurable rules to determine which one to use.
Profiles act a little like the Pre-defined combinations above in that they can map to a defined list. But they offer a lot more besides, including rules for determining default settings, inbuild data aging and other configurable features. They also allow for a new result set top be returned that provides a more detailed and useful breakdown of the check/verification process.
Entity Profiles are the future of checks with Frankie Financial.
one_plus, two_plus, id, fraudlist, fraudcheck, pep, pep_media, profile, full, default A comma separated list that specifies the categories of entities associated with the target organisation that will be checked.
- organisation - Just the organisation itself.
- ubos - All ultimate beneficial owners.
- pseudo_ubos - Use an alternative category when an organisation has no actual UBOs. The actual category to use is defined via configuration, default is no alternative category.
- nibos - Non-Individual Beneficial Owners
- bos_associated - Beneficial owners that have been manually associated, rather than retrieved from registry sources
- direct_owners - All direct owners of the company, both organisations and individuals, may include UBOs for for simple ownership.
- officers - All officers of the company
- officers_directors - All directors of the company
- officers_secretaries - All secretaries of the company
- officers_other - All non-director officers of the company
- officers_associated - All officers of the company that were associated manually, rather than retrieved from registry sources
- all - All direct and indirect owners, both organisations and individuals (including UBOs), and officers of all organisations.
organisation, ubos, pseudo_ubos, nibos, bos_associated, direct_owners, officers, officers_directors, officers_secretaries, officers_other, officers_associated, all The result level allows you to specify the level of detail returned for the entity check. You can choose summary or full.
summary, full Should a validation check be run before the ownership query. The default is specified via configuration. The validation checks to see if the provided organisation is suitable for an ownership query by looking for the ACN in public data sources. Options are:
- "on": Validate only when ACN is not provided. This is the typical default.
- "acn": Validate even if ACN is provided.
- "only": Like "acn" but only do validation query, don't proceed with ownership query. This option cannot be set as the default via configuration.
- "off": Never validate. The Ownership query will then fail if an ACN is not provided.
on, off, only, acn The type of human readable report, if any, to generate based on the ownership query results. Options are:
- SINGLE-LEVEL-AML: ASIC report
- UBO: UBO report
SINGLE-LEVEL-AML, UBO Name of configured preset query parameters to use. Any individual parameters provided in the request will override the same parameter in the configured preset.
If set to true, historical ownership data will be requested.
If set to true, a full UBO report will not be requested. Note: This param is deprecated, use ownershipMode instead.
Do not load the named result objects from cache, but force them to be retrieved from an approproate service, if and when they are required. Options are:
- abr
- ownership
Define the ownership mode you wish to run.
Valid ownership modes are:
- full
- onlyProfile
- onlyUBO
full, onlyProfile, onlyUBO Body
The organisation to be queried. An entity object that must have an organisation object with at least one organisation number.
Details of the organisation for which ownership should be queried. This should at least contain the ACN in the externalIds.
Describes all of the data being used to verify an entity.
Show child attributes
Show child attributes
A list of manual associations you wish to make with the business to be queried.
If your configuration supports this (ask your customer success representative), you can potentially compare any UBOs or office holders you supply against those found through local registries.
Show child attributes
Show child attributes
Response
This is what you will find in the payload of a retrieved response should the ownership query succeed, or you're querying the past checks for a given business.
NOTE: When requesting the initial report, you will only ever receive a 202 response.
The result of an /business/ownership/query call retrieved via GET /retrieve/response/{requestId} after you receive a notification that the result is ready.
Used to set additional information flags for this response.
Show child attributes
Show child attributes
"kyb_target"
Batch identifier for the KYC/AML check results if any.
The results of KYC/AML check on a organisation with a prior ownership query. This will be retrived via GET /retrieve/response/{requestId} after you receive a notification that the results are ready.
Show child attributes
Show child attributes
If an ownership result is provided in this response then this is the date and time the service provided that result.
Unique identifier for the ownership check.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The positive result of a report generation request if any.
Show child attributes
Show child attributes
Unique identifier for every request. Can be used for tracking down answers with technical support.
Uses the ULID format (a time-based, sortable UUID)
Note: this will be different for every request.
"01BFJA617JMJXEW6G7TDDXNSHX"
Show child attributes
Show child attributes
Was this page helpful?