Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Please refer to the Arken Public API Endpoint Inventory page for endpoint usage and required parameters.

Account Data Model

A company or other organisation having license to the system.

GET Account Endpoint output - /account

Column PropertyDescription
  hashIdArken Account Hash Identifier
  nameArken Account Name
  businessTypeNature of business
  companyTypeCompany Type
  countryCountry of Origin where the Arken Account Holder is based
  address Physical Address of the Account holder, broken down into address parts below
    streetStreet Address
    suburbSuburb
    cityCity
    regionRegion
    postcodePostcode or Zip code
    countryCountry
  emailArken Account Email
  telephoneArken Account Telephone
  operatesAsBusiness Alias or Trading name
  practiceAppointmentPractice Appointment details
  practiceNamePractice Name
  practiceAddress Practice Physical Address broken down into address parts below
    streetStreet Address
    suburbSuburb
    cityCity
    regionRegion
    postcodePostcode or Zip Code
    countryCountry
  practiceTelephonePractice phone number
  practiceEmailPractice Email
  trustAppointmentTrust Appointment details
  trustNameTrust name
  trustAddress Trust Physical Address broken down into address parts below
    streetStreet Address
    suburbSuburb
    cityCity
    regionRegion
    postcodePostcode or Zip Code
    countryCountry
  trustTelephoneTrust Phone number
  trustEmailTrust Email
  createdOnDate created on in UTC format
  updatedOnDate updated on UTC format

Example:

Account Data Model Example
{
    "hashId": "qzlVU5FB7Y7NNlHr7UOzr3",
    "name": "Arken Test Account - Preproduction",
    "businessType": "O",
    "companyType": "Startup company - limited company",
    "country": "NZL",
    "address": {
        "street": "Level 1, Generator, 12 Madden Street,,,",
        "suburb": "",
        "city": "Auckland",
        "region": "",
        "postcode": "1010",
        "country": ""
    },
    "email": "ann.marinas@arken.legal",
    "telephone": "099764742",
    "operatesAs": "L",
    "practiceAppointment": "N",
    "practiceName": "",
    "practiceAddress": {
        "street": ",,,",
        "suburb": "",
        "city": "",
        "region": "",
        "postcode": "",
        "country": ""
    },
    "practiceTelephone": "",
    "practiceEmail": "",
    "trustAppointment": "N",
    "trustName": "",
    "trustAddress": {
        "street": ",,,",
        "suburb": "",
        "city": "",
        "region": "",
        "postcode": "",
        "country": ""
    },
    "trustTelephone": "",
    "trustEmail": "",
    "createdOn": "0001-01-01T00:00:00Z",
    "updatedOn": "2019-02-05T05:13:54.7739046Z",
    "externalReference": "222222"
}

Client Data Model

A person who needs legal service, i.e. the person who's will is created.

POST  PUT GET Get Endpoint output - /client, /client/account, /client/account/externalreference

Column PropertyDescriptionMandatory
hashIdClient Hash Identifier(tick)
accountHashIdArken Account Hash Identifier(tick)
titleClient's Salutation Title(tick)
name Client name, broken down in parts below(tick)
      firstFirst Name(tick)
      middleMiddle Name

(tick)

      surnameSurname or Last name(tick)
      fullNameConcatenated name based on the values provided on the first, middle and surnames.
 gender

Accepts the following values:

  • Male
  • Female
  • Unspecified (default)
(tick)
maritalStatus

Accepts the following values:

  • Single
  • Married
  • Widow
  • StableUnion
  • InPartnership
  • Separated
  • Unspecified (default)
(tick)
emailClient Email(tick)
address Client Physical Address , broken down into address parts below
      streetStreet Address
      suburbSuburb
      cityCity
      regionRegion
      postcodePostcode or Zip code
      countryCountry
dateOfBirth Date of Birth in UTC format(tick)
mobileMobile number
telephonePhone Number
 occupationOccupation
 partnerName Client partner's name, broken down in parts below
      firstFirst name
      middleMiddle Name
      surnameLast or surname
 partnerGender

Client partner's gender.

Accepts the following values:

  • Male
  • Female
  • Unspecified (default)
(tick)
partnerTitle

Client partner's salutation title


partnerDateOfBirth Client partner's date of birth(tick)
partnerHashIdCOMING SOON Arken Account Hash identifier for primary client's partner. 
createdOn Record created date in UTC format
updatedOn Record updated date in UTC format
externalReferenceString field that allows API Consumers to map their unique client numbers or any logical identifier value used on their application end

Example:

Client Data Model Example
{
        "hashId": "TBosHjx9kKA2SsEQ3Hoa51",
        "accountHashId": "qzlVU5FB7Y7NNlHr7UOzr3",
        "title": "Miss",
        "name": {
            "first": "Daisy",
            "middle": "",
            "surname": "Duck",
            "fullName": "Daisy Duck"
        },
        "gender": "Female",
        "maritalStatus": "Single",
        "email": "daisyduck@disney.com",
        "address": {
            "street": "string",
            "suburb": "string",
            "city": "string",
            "region": "string",
            "postcode": "string",
            "country": "string"
        },
        "dateOfBirth": "1970-02-05T08:44:51.074Z",
        "mobile": "string",
        "telephone": "string",
        "occupation": "string",
        "partnerName": {
            "first": "string",
            "middle": "string",
            "surname": "string",
            "fullName": "string string string"
        },
        "partnerGender": "Unspecified",
        "partnerTitle": "Unspecified",
        "partnerDateOfBirth": "1980-02-05T08:44:51.074Z",
        "partnerHashId": "Sdfsrew98434e",
        "createdOn": "2019-02-05T08:44:51.074Z",
        "updatedOn": "2019-02-05T08:44:51.074Z"
        "externalReference": "2222222"
    }


Document Data Model

Collected client information, answers to questions given by a certain client during the interview process

GET DocumentData Endpoint output - /documentdata, /documentdata/account, /documentdata/client

Column PropertyDescription
accountHashId Arken Account Hash Identifier
    clientHashId Client Hash Idetifier
    hashId Document Data Hash Identifier
    clientMatterReference Document Reference number
    documentType (See Document Types table below)
    version 

Document Version

    jurisdiction Document Jurisdiction
    content

Document Content consisting of: 

  • documentExpirationDate
  • totalAssets
  • totalLiabilites
  • netAssets
  • executor
  • dependentChildren
    createdOn Document created date in UTC format
    updatedOn Document updated date in UTC format

Document Types

NameDocument TypeCountryState
WillWILL-1UK
Lasting Power of Attorney - Property and AffairsLPAPA-1

Lasting Power of Attorney - Health and WelfareLPAHW-1

Enduring Power of AttorneyEPA-1

General Power of AttorneyGPA-1

Severance of Joint TenancySOJT-1

Severance of Joint Tenancy (Isle of Man)SOJT-2

Expression of WishesEXOW-1





WillWILL-1NZ
EPA - Personal Care and WelfareEPA-PCW-1

EPA - PropertyEPA-PRP-1





WillWILL-1AUAll
Enduring Power of AttorneyACT-EPA-1
Australian Capital Territory
Enduring Power of AttorneyNSW-EPA-1
New South Wales
Appointment of Enduring GuardianNSW-EPG-1
New South Wales
Enduring Power of AttorneyNT-EPA-1
Nothern Territory
EPA Short Form (Form 2)Qls-EPA-2
Queensland
EPA Long Form (Form 3)Qls-EPA-3
Queensland
Enduring Power of AttorneySA-EPA-1
South Australia
Particular Enduring Power of AttorneyTas-EPA-1
Tasmania
General Power of AttorneyTas-EPA-2
Tasmania
Instrument Appointing Enduring Guardian(s)Tas-Med-2
Tasmania
Enduring Power of AttorneyVic-EPA-1
Victoria
Appointment of Medical Treatment Decision MakerVic-Med-1
Victoria
Enduring Power of AttorneyWA-EPA-1
Western Australia
Appointment of Enduring GuardianWA-EPG-1
Western Australia

Example:

Document Data Model Example
[{
		"accountHashId": "qzlVU5FB7Y7NNlHr7UOzr3",
		"clientHashId": "fV98CpoX5aMVxFXwW8zAS6",
		"hashId": "B9eDGhzIeI16mRDLEtpnF5",
		"clientMatterReference": "WILL-001",
		"documentType": " WILL-1",
		"version": "V0001",
		"jurisdiction": "",
		"content": [{
				"Key": "date_expire",
				"Value": "2019/04/06"
			}, {
				"Key": "total-assets-joint-1",
				"Value": ""
			}, {
				"Key": "total-assets-sole-1",
				"Value": ""
			}, {
				"Key": "total-liabilities-joint-1",
				"Value": ""
			}, {
				"Key": "total-liabilities-sole-1",
				"Value": ""
			}, {
				"Key": "net-asset-1",
				"Value": ""
			}, {
				"Key": "executor",
				"Value": "string string string"
			}
		],
		"createdOn": "2019-02-05T22:41:38Z",
		"updatedOn": "2019-02-05T22:44:07Z"
	}
]


File Data Model

Information about a printable document file

GET File Download Endpoint output - /file

Column PropertyDescription
accountHashId Arken Account Hash Identifier
clientHashId Client Hash Idetifier
fileKeyThe file name
downloadUrlThe URL document download link with an expiry date. If the file needs to be downloaded way past the expiry date, then the same call would be needed to be executed again to get a valid link.

Example:

File Data Model Example
{
  "accountHashId" : "qzlVU5FB7Y7NNlHr7UOzr3",
  "clientHashId" : "v1wLxsmtn4MmLdAAwl8Z30",
  "fileKey" : "checking pack-07-02-2019 10-05-49.zip",
  "downloadUrl" : "http://pre-arkenlegal-nz-arken-file.s3.ap-southeast-2.amazonaws.com/nzl/qzlVU5FB7Y7NNlHr7UOzr3/v1wLxsmtn4MmLdAAwl8Z30/checking%20pack-07-02-2019%2010-05-49.zip?X-Amz-Expires=3600&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJXNAECSXD5NXPNYQ/20190206/ap-southeast-2/s3/aws4_request&X-Amz-Date=20190206T222255Z&X-Amz-SignedHeaders=host&X-Amz-Signature=f2b309a3119a387c782c574b15ff822c63546c7027cdc2c87fe3a6b4ea3d6ec4",
  "properties": [{"Key":"Description","Value":"Checking Pack"},{"Key":"DownloadType","Value":"ZIP"},{"Key":"DocumentFileCreatedDate","Value":"2019/02/07 10:05:53"},{"Key":"DownloadDate","Value":"07-02-2019 10-05-49"},{"Key":"DocumentType","Value":"WILL-1"}]
}


Event Feed Info Data Model

Event listing that contains when actions in Arken were raised against an Arken account

GET Arken Events Endpoint output - /event, /event/info

The list of Events being monitored are as follows:

  • POST Client (Create)
  • PUT Client (Update)
  • GET Client listing by Account Hash Id
  • GET Client by Hash Id
  • GET File
  • POST DocumentData (Create)
  • PUT DocumentData (Update)
Column PropertyDescription
feedLinkThe Event feed link to fetch items from
lastEventNumberThe last event sequence entry
lastEntryFeedPlease see Event Entries Model

Example:

Event Feed Info Data Model Example
{
    "feedLink": "https://api.nz.pre.arken.legal/pre/event?accountHashId=qzlVU5FB7Y7NNlHr7UOzr3&eventPositionFrom=88&rowsReturned=50&direction=backward",
    "lastEventNumber": 88,
    "lastEntryFeed": {
        "eventId": "d6491737-9800-409c-9764-b4ebb1f57272",
        "eventType": "FileStore.GetFileDetail",
        "eventNumber": 88,
        "eventDateTimeUtc": "2019-02-06T21:05:54.51426Z",
        "link": "https://api.nz.pre.arken.legal/pre/accountHashId=qzlVU5FB7Y7NNlHr7UOzr3&clientHashId=v1wLxsmtn4MmLdAAwl8Z30&key=checking pack-07-02-2019 10-05-49.zip",
        "properties": [
            {
                "Key": "Description",
                "Value": "Checking Pack"
            },
            {
                "Key": "DownloadType",
                "Value": "ZIP"
            },
            {
                "Key": "DocumentFileCreatedDate",
                "Value": "2019/02/07 10:05:53"
            },
            {
                "Key": "DownloadDate",
                "Value": "07-02-2019 10-05-49"
            },
            {
                "Key": "DocumentType",
                "Value": "WILL-1"
            }
        ]
    }
}

Event Entries Data Model

Contains the Event triggered by a watched action

Column PropertyDescription
eventIdEvent Identifier in GUID value
eventTypeThe action event that was triggered
eventNumberThe event sequence value
eventDateTimeUtcThe Date when the event happened in UTC format
linkURL link that points to the changed data item
properties

Additional information describing the event. 

For Properties > FileStore.GetFileDetail;

Returns a Key-value pair array describing the file downloaded via Arken application

key

Applicable for Properties > FileStore.GetFileDetail events only

Name of the Field

value

Applicable for Properties > FileStore.GetFileDetail events only

Contains key value

Example:

Event Entries Data Model Example
{
        "eventId": "d6491737-9800-409c-9764-b4ebb1f57272",
        "eventType": "FileStore.GetFileDetail",
        "eventNumber": 88,
        "eventDateTimeUtc": "2019-02-06T21:05:54.51426Z",
        "link": "https://api.nz.pre.arken.legal/pre/accountHashId=qzlVU5FB7Y7NNlHr7UOzr3&clientHashId=v1wLxsmtn4MmLdAAwl8Z30&key=checking pack-07-02-2019 10-05-49.zip",
        "properties": [
            {
                "Key": "Description",
                "Value": "Checking Pack"
            },
            {
                "Key": "DownloadType",
                "Value": "ZIP"
            },
            {
                "Key": "DocumentFileCreatedDate",
                "Value": "2019/02/07 10:05:53"
            },
            {
                "Key": "DownloadDate",
                "Value": "07-02-2019 10-05-49"
            },
            {
                "Key": "DocumentType",
                "Value": "WILL-1"
            }
        ]
    }

Webhook Provision Authentication Data Model

Authentication used for executing Webhook Posts; This is driven by the 3rd party (non-Arken) events subscriber

Column PropertyDescription
accessKey3rd Party Client Key  or Access Key used for Machine-to-Machine Authentication (based on Open ID protocol, if available)
secretKey3rd Party Secret Key (based on Open ID protocol, if available)
authUrl3rd Party Authentication URL (based on Open ID protocol, if available)
scope3rd Party Security Scope (based on Open ID protocol, if available)
grantType3rd Party Security Grant Type (based on Open ID protocol, if available)
headerNameUnused. 3rd Party Custom Header name
headerKeyValueUnused. 3rd Party Custom Header value

Webhook Provision Data Model Subscription

Contains the necessary Webhook subscription detail needed for sending Webhook events

GET POST - /event/subscription

Column PropertyDescription
accountHashIdArken Account Hash Identifier
postUrl3rd Party Post URL where the webhook event will be sent to
version3rd Party Post URL API version, if available
postAuth3rd Party Post Authentication, see Webhook Provision Authentication Data Model for details
createdOnDate when the subscription entry was created on
activeBoolean flag where it indicates if webhooks are turned on or off.
{
  "accountHashId": "ssserwerwer",
  "postUrl": "http://watsonlaw.com/myendpoint",
  "version": "1",
  "postAuth": {
    "accessKey": "aaaaaaaa",
    "secretKey": "b1234rrrewerwe",
    "authUrl": "https://auth.watsonlaw.com/oauth/token",
    "scope": "all:access",
    "grantType": "client_credentials",
    "headerName": null,
    "headerKeyValue": null
  },
  "createdOn": "2019-07-04T04:38:07.639Z",
  "active": "true"
}

In this document:

  • No labels