A card purchase
You bought a coffee with a credit card, and within minutes the card's issuer told Wallet about it. The PayAction is keyed by the transaction it made, which has Wallet's ID, and dated to the second. You are the agent, the card is the instrument, and the result is the FinancialTransaction, which carries the amount, a MonetaryAmount, and the café as its recipient. The café is an Agent keyed by its name, which is all the issuer sends, since a billing descriptor can name a company, a branch, or a person.
The PaymentCard is keyed by the card network's identifier for the card, which is the same on every device the card is added to, and is named after the card's product. The FinancialAccount it is inAccount is keyed by the bank's own identifier for the account, which outlives the card number, and is named after the bank, as a chart of accounts names it. The transaction's one FinancialPosting, given under hasPart, the inverse of isPartOf, and keyed by the transaction and the account, is that account's side of the purchase, negative because a purchase adds to what a credit card owes. The café's side is not known.
A node that appears again in one record needs only its identity. The account is given in full under the card and by its key alone under the posting.
{
"@type": "PayAction",
"@key": ["@type", "source", "result.sourceId"],
"source": "apple-wallet",
"timestamp": "2026-05-09T13:41:07.000Z",
"agent": {
"@type": "Person",
"@key": ["@type", "source", "sourceId"],
"source": "icloud",
"sourceId": "1234567890",
"handle": "sam@example.com",
"sameAs": ["@me"]
},
"instrument": [
{
"@type": "PaymentCard",
"@key": ["@type", "source", "sourceId"],
"source": "apple-wallet",
"sourceId": "V-0000000000000000000001",
"name": "Example Rewards Visa",
"alternateName": ["4242"],
"category": ["credit"],
"inAccount": [
{
"@type": "FinancialAccount",
"@key": ["@type", "source", "sourceId"],
"source": "apple-wallet",
"sourceId": "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a",
"name": "Example Bank",
"financialAccountType": "liability"
}
]
}
],
"result": {
"@type": "FinancialTransaction",
"@key": ["@type", "source", "sourceId"],
"source": "apple-wallet",
"sourceId": "7C1E9F2B-6A3D-4B58-9E0F-2D4C6B8A1E35",
"amount": {
"@type": "MonetaryAmount",
"value": 4.75,
"currency": "CAD"
},
"recipient": [
{
"@type": "Agent",
"@key": ["source", "name"],
"source": "apple-wallet",
"name": "Example Café"
}
],
"hasPart": [
{
"@type": "FinancialPosting",
"@key": ["@type", "source", "action.result.sourceId", "inAccount[*].sourceId"],
"source": "apple-wallet",
"amount": {
"@type": "MonetaryAmount",
"value": -4.75,
"currency": "CAD"
},
"inAccount": [
{
"@type": "FinancialAccount",
"@key": ["@type", "source", "sourceId"],
"source": "apple-wallet",
"sourceId": "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a"
}
]
}
]
}
}{
"@context": {
"@vocab": "https://schema.chronicle.app/",
"doc": "https://schema.chronicle.app/docs/"
},
"@type": "PayAction",
"doc:key": {
"@list": ["@type", "source", "result.sourceId"]
},
"source": "apple-wallet",
"timestamp": {
"@value": "2026-05-09T13:41:07.000Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
},
"agent": {
"@type": "Person",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "icloud",
"sourceId": "1234567890",
"handle": "sam@example.com",
"sameAs": ["@me"]
},
"instrument": [
{
"@type": "PaymentCard",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "apple-wallet",
"sourceId": "V-0000000000000000000001",
"name": "Example Rewards Visa",
"alternateName": ["4242"],
"category": ["credit"],
"inAccount": [
{
"@type": "FinancialAccount",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "apple-wallet",
"sourceId": "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a",
"name": "Example Bank",
"financialAccountType": "liability"
}
]
}
],
"result": {
"@type": "FinancialTransaction",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "apple-wallet",
"sourceId": "7C1E9F2B-6A3D-4B58-9E0F-2D4C6B8A1E35",
"amount": {
"@type": "MonetaryAmount",
"value": {
"@value": "4.75",
"@type": "http://www.w3.org/2001/XMLSchema#decimal"
},
"currency": "CAD"
},
"recipient": [
{
"@type": "Agent",
"doc:key": {
"@list": ["source", "name"]
},
"source": "apple-wallet",
"name": "Example Café"
}
],
"hasPart": [
{
"@type": "FinancialPosting",
"doc:key": {
"@list": ["@type", "source", "action.result.sourceId", "inAccount[*].sourceId"]
},
"source": "apple-wallet",
"amount": {
"@type": "MonetaryAmount",
"value": {
"@value": "-4.75",
"@type": "http://www.w3.org/2001/XMLSchema#decimal"
},
"currency": "CAD"
},
"inAccount": [
{
"@type": "FinancialAccount",
"doc:key": {
"@list": ["@type", "source", "sourceId"]
},
"source": "apple-wallet",
"sourceId": "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a"
}
]
}
]
}
}@prefix : <https://schema.chronicle.app/> .
@prefix doc: <https://schema.chronicle.app/docs/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[
a :PayAction;
doc:key ("@type" "source" "result.sourceId");
:source "apple-wallet";
:timestamp "2026-05-09T13:41:07.000Z"^^xsd:dateTime;
:agent [
a :Person;
doc:key ("@type" "source" "sourceId");
:source "icloud";
:sourceId "1234567890";
:handle "sam@example.com";
:sameAs "@me"
];
:instrument [
a :PaymentCard;
doc:key ("@type" "source" "sourceId");
:source "apple-wallet";
:sourceId "V-0000000000000000000001";
:name "Example Rewards Visa";
:alternateName "4242";
:category "credit";
:inAccount [
a :FinancialAccount;
doc:key ("@type" "source" "sourceId");
:source "apple-wallet";
:sourceId "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a";
:name "Example Bank";
:financialAccountType "liability"
]
];
:result [
a :FinancialTransaction;
doc:key ("@type" "source" "sourceId");
:source "apple-wallet";
:sourceId "7C1E9F2B-6A3D-4B58-9E0F-2D4C6B8A1E35";
:amount [
a :MonetaryAmount;
:value "4.75"^^xsd:decimal;
:currency "CAD"
];
:recipient [
a :Agent;
doc:key ("source" "name");
:source "apple-wallet";
:name "Example Café"
];
:hasPart [
a :FinancialPosting;
doc:key ("@type" "source" "action.result.sourceId" "inAccount[*].sourceId");
:source "apple-wallet";
:amount [
a :MonetaryAmount;
:value "-4.75"^^xsd:decimal;
:currency "CAD"
];
:inAccount [
a :FinancialAccount;
doc:key ("@type" "source" "sourceId");
:source "apple-wallet";
:sourceId "8d2f0c4a1b7e9f3c5a6d4e2b1c9f8a7d6e5b4c3a2f1e0d9c8b7a6f5e4d3c2b1a"
]
]
]
] .
Terms in this example
FinancialAccountFinancialPostingFinancialTransactionMonetaryAmountPayActionPaymentCardTradeActionamountcurrencyfinancialAccountTypeinAccountisPartOfrecipientvalue