Address
| Field | Type / presence | Definition | Example |
|---|---|---|---|
line1 | stringOptional | Street or delivery address line one. | 123 Example Street |
line2 | stringOptional | Suite, unit or second address line. | Suite 100 |
city | stringOptional | Locality. | Toronto |
region | stringOptional | Subdivision or province code/name; preserve raw when unmapped. | ON |
postal_code | stringOptional | Postal code as a string with leading zeroes preserved. | M5V 0A1 |
country | stringOptional | ISO 3166-1 alpha-2 country when established. | CA |
raw_address | stringOptional | Unparsed source address if structured fields are unavailable. | 123 Example Street, Toronto |
SourceRef
| Field | Type / presence | Definition | Example |
|---|---|---|---|
provider_id | stringRequired | Inventory or supplemental provider identifier; AMLOK or CLIENT for internal evidence. | BANK-02 |
connection_id | idOptional | Authorized provider connection. | cnn_example |
source_record_id | stringOptional | Upstream record identifier scoped by provider, connection and record type. | upstream_123 |
source_record_type | stringOptional | Provider object or report type. | transaction |
source_updated_at | datetimeOptional | Source update time; do not replace with retrieval time. | Not specified |
retrieved_at | datetimeRequired | Time AMLOK retrieved this evidence. | Not specified |
document_id | idOptional | Evidence document when applicable. | doc_example |
source_api_version | stringOptional | Version of provider API/schema used. | 2026-10 |
FieldProvenance
| Field | Type / presence | Definition | Example |
|---|---|---|---|
field_path | stringRequired | Relative path in the normalized resource. | amount.amount |
source_ref_index | integerRequired | Zero-based index into source_refs. | 0 |
source_field_path | stringOptional | Actual field path or document locator. | added[].amount |
transformation_id | stringOptional | Versioned conversion/mapping rule. | plaid_amount_abs_v1 |
evidence_level | enum:evidence_levelRequired | Provenance class for the resulting value. | source_record |
confidence | decimalOptional | Calibrated extraction or matching confidence, if available. | null |
source_timezone | stringOptional | Original timezone where needed to interpret local time. | America/Toronto |
MissingField
| Field | Type / presence | Definition | Example |
|---|---|---|---|
field_path | stringRequired | Unavailable relative field path. | available.amount |
reason | enum:null_reasonRequired | Specific reason the field has no value. | not_provided |
detail | stringOptional | Sanitized explanation useful to the caller. | Institution did not return available balance. |
Identifier
| Field | Type / presence | Definition | Example |
|---|---|---|---|
type | stringRequired | Identifier scheme such as CA_BN or US_EIN. | CA_BN |
value_token | stringOptional | Vault token for restricted identifiers. | tok_example |
masked_value | stringOptional | Masked identifier for an authorized caller. | *****1234 |
country | stringRequired | Issuing country code. | CA |
jurisdiction | stringOptional | Registry or subdivision when necessary. | CA-ON |
IndustryCode
| Field | Type / presence | Definition | Example |
|---|---|---|---|
taxonomy | stringRequired | Classification system; NAICS, SIC, MCC, NACE or named local scheme. | NAICS |
version | stringOptional | Edition of the classification system. | 2022 |
code | stringRequired | Identifier preserved as a string. | 332710 |
description | stringOptional | Label supplied by source or a versioned dictionary. | Machine shops |
is_primary | booleanOptional | Source-designated primary industry. | true |
Money
| Field | Type / presence | Definition | Example | |
|---|---|---|---|---|
amount | decimalRequired | Exact decimal string in major units; signed only where field definition specifies. | 1234.56 | |
currency | `string | null` Required | Uppercase ISO 4217 currency when known; null blocks monetary aggregation and requires missing_fields reason. | CAD |
InvoiceLine
| Field | Type / presence | Definition | Example |
|---|---|---|---|
id | stringOptional | Line identifier within parent document. | line_1 |
product_id | idOptional | Normalized item if resolved. | prd_example |
description | stringOptional | Original line description. | Consulting services |
quantity | decimalOptional | Line quantity in the supplied unit. | 10 |
unit_of_measure | stringOptional | Quantity unit. | hour |
unit_price | MoneyOptional | Unit charge under document tax convention. | {"amount":"100.00","currency":"CAD"} |
tax_amount | MoneyOptional | Line tax amount. | {"amount":"130.00","currency":"CAD"} |
line_total | MoneyOptional | Source extended amount; retain whether tax is included. | {"amount":"1130.00","currency":"CAD"} |
ledger_account_id | idOptional | Source ledger classification if exposed. | gla_sales |
tax_code | stringOptional | Jurisdiction-specific source tax code. | HST_ON |
PurchaseLine
| Field | Type / presence | Definition | Example |
|---|---|---|---|
product_id | idOptional | Ordered item. | prd_example |
description | stringOptional | Purchase line description. | Components |
quantity_ordered | decimalOptional | Ordered quantity. | 100 |
quantity_received | decimalOptional | Recorded received quantity. | 50 |
unit_of_measure | stringOptional | Quantity unit. | each |
unit_price | MoneyOptional | Price per ordered unit. | {"amount":"10.00","currency":"CAD"} |
line_total | MoneyOptional | Total ordered line amount. | {"amount":"1000.00","currency":"CAD"} |
ShipmentLine
| Field | Type / presence | Definition | Example |
|---|---|---|---|
product_id | idOptional | Item shipped or received. | prd_example |
quantity | decimalRequired | Quantity in this shipment. | 50 |
unit_of_measure | stringRequired | Unit for the quantity. | each |
order_line_id | idOptional | Sales line being fulfilled. | oli_example |
Allocation
| Field | Type / presence | Definition | Example |
|---|---|---|---|
resource_type | enum:receivable_kindRequired | Type of accounting document receiving allocation. | invoice |
resource_id | idRequired | Normalized accounting document. | inv_example |
amount | MoneyRequired | Amount applied in the target document currency. | {"amount":"100.00","currency":"CAD"} |
LienParty
| Field | Type / presence | Definition | Example |
|---|---|---|---|
role | stringRequired | Recorded debtor, secured party, assignee or other role. | debtor |
name | stringRequired | Party name exactly as recorded. | Example Manufacturing Inc. |
entity_id | idOptional | Resolved AMLOK party only when established. | biz_example |
address | AddressOptional | Address in registry evidence. | null |
source_party_id | stringOptional | Source identifier if provided. | null |
Error
| Field | Type / presence | Definition | Example |
|---|---|---|---|
code | stringRequired | Stable machine-readable error code. | source_unavailable |
message | stringRequired | Safe caller-facing explanation. | The upstream source is temporarily unavailable. |
field | stringOptional | Invalid request field when relevant. | jurisdictions |
retryable | booleanRequired | Whether retry may succeed without changing the request. | true |
request_id | stringRequired | Correlation identifier for support. | req_example |
Page
| Field | Type / presence | Definition | Example |
|---|---|---|---|
next_cursor | stringOptional | Opaque cursor for subsequent page; null after final page. | cur_example |
has_more | booleanRequired | Whether more authorized records remain. | true |
limit | integerRequired | Applied result limit, from 1 to 200. | 100 |
ResponseMeta
| Field | Type / presence | Definition | Example |
|---|---|---|---|
request_id | stringRequired | AMLOK request correlation ID. | req_example |
schema_version | stringRequired | Serialization contract version. | 1.4.2 |
generated_at | datetimeRequired | Response generation time, not source data freshness. | Not specified |
data_status | enum:data_statusRequired | Completeness of this response within its declared scope. | partial |
coverage | CoverageOptional | Requested and achieved source/time coverage. | null |
Coverage
| Field | Type / presence | Definition | Example |
|---|---|---|---|
requested_from | dateOptional | Inclusive start requested. | 2026-09-01 |
requested_to | dateOptional | Exclusive end requested. | 2026-10-01 |
available_from | dateOptional | Earliest actual coverage. | 2026-09-05 |
available_to | dateOptional | Exclusive end of actual coverage. | 2026-10-01 |
source_ids[] | array<string>Required | Sources actually contributing. | ["BANK-02"] |
missing_intervals[] | array<Interval>Required | Known gaps within requested scope. | [] |
jurisdictions_completed[] | array<string>Optional | Completed geographic search scope when applicable. | ["US-DE"] |
Interval
| Field | Type / presence | Definition | Example |
|---|---|---|---|
from | dateRequired | Inclusive interval start. | 2026-09-01 |
to | dateRequired | Exclusive interval end. | 2026-09-05 |
WebhookEvent
| Field | Type / presence | Definition | Example |
|---|---|---|---|
id | idRequired | Globally unique event ID within tenant for deduplication. | evt_example |
type | stringRequired | Event key in the Events tab. | verification.completed |
created_at | datetimeRequired | Event creation time. | Not specified |
schema_version | stringRequired | Webhook contract version. | 1.4.2 |
resource_type | stringRequired | Type of changed object. | verification |
resource_id | idRequired | Object to retrieve for full authorized detail. | ver_example |
resource_version | integerRequired | Version that triggered the event. | 2 |
data | JSONRequired | Minimal event details; sensitive evidence retrieved separately. | {"status":"approved"} |
Action
| Field | Type / presence | Definition | Example |
|---|---|---|---|
type | stringRequired | Next applicant interaction such as authorize_connection. | authorize_connection |
url | stringRequired | Short-lived authorized HTTPS interaction URL. | https://connect.example.com/session |
expires_at | datetimeRequired | Expiry of interaction URL. | Not specified |
DownloadLink
| Field | Type / presence | Definition | Example |
|---|---|---|---|
document_id | idRequired | Evidence document requested. | doc_example |
url | stringRequired | Short-lived signed download URL returned only to an authorized caller. | https://evidence.example.com/temporary |
expires_at | datetimeRequired | Expiry of download capability. | Not specified |
CalculationJob
| Field | Type / presence | Definition | Example |
|---|---|---|---|
id | idRequired | Calculation job identifier. | calc_example |
status | enum:sync_statusRequired | Calculation execution state. | queued |
subject_id | idRequired | Subject assessed. | biz_example |
attribute_ids[] | array<id>Required | Resulting values, including unavailable outputs. | [] |
errors[] | array<Error>Required | Calculation failures. | [] |
WebhookEndpoint
| Field | Type / presence | Definition | Example |
|---|---|---|---|
id | idRequired | Tenant event destination identifier. | whk_example |
url | stringRequired | Validated HTTPS delivery destination. | https://client.example.com/amlok-events |
event_types[] | array<string>Required | Subscribed event keys. | ["verification.completed"] |
status | stringRequired | active or disabled. | active |
secret | stringConditional | Signing secret returned once at creation only; omitted thereafter. | <generated-once> |
WebhookReplay
| Field | Type / presence | Definition | Example |
|---|---|---|---|
event_id | idRequired | Original event being redelivered. | evt_example |
endpoint_id | idRequired | Authorized destination. | whk_example |
status | stringRequired | queued, delivered or failed. | queued |
ProviderCapability
| Field | Type / presence | Definition | Example |
|---|---|---|---|
provider_id | stringRequired | Configured integration ID. | BANK-02 |
resources[] | array<string>Required | Resources actually enabled for this tenant. | ["bank_account","bank_transaction"] |
countries[] | array<string>Required | Validated country availability for this entitlement. | ["CA"] |
status | stringRequired | enabled, unavailable or pending_setup. | enabled |
limitations[] | array<string>Required | Account/product-specific constraints. | [] |
ChangePage
| Field | Type / presence | Definition | Example |
|---|---|---|---|
data[] | array<Change>Required | Ordered authorized normalized changes. | [] |
page | PageRequired | Tenant-scoped continuation information. | {"next_cursor":null,"has_more":false,"limit":100} |
meta | ResponseMetaRequired | Response context and completeness. | null |
resume_cursor | stringRequired | Durable change-feed position, including after an empty response. |
changes_after_sequence_42 |
| cursor_expires_at | datetimeRequired | Explicit expiry; create a new checkpoint and bootstrap after expiry. |
2026-11-01T14:00:00Z |
Change
| Field | Type / presence | Definition | Example |
|---|---|---|---|
resource_type | stringRequired | Changed resource type. | bank_transaction |
resource_id | idRequired | Changed resource ID. | btx_example |
resource_version | integerRequired | Version changed. | 2 |
action | enum:event_actionRequired | created, updated or deleted. | updated |
changed_at | datetimeRequired | AMLOK change timestamp. | Not specified |
sequence | integerRequired | Monotonic workspace change sequence; filtered streams may contain gaps. |
42 |
Processing and reporting helpers
Calculation jobs also returnprocessing_context and nullable stop_reason. Product context, monitoring periods, workload reports, frozen manifests and billing records use dedicated schemas in the OpenAPI download. See product scope, workload reporting, and export formats.