Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions static/oas/Codat-Bank-Feeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -3961,7 +3961,7 @@
"transactions": [
{
"id": "716422529",
"date": "2023-08-22T10:21:00Z",
"date": "2023-08-22T10:21:00",
"description": "Repayment of Credit Card",
"counterparty": "Bank of Example",
"reference": "Ref-12345",
Expand All @@ -3972,7 +3972,7 @@
},
{
"id": "716422530",
"date": "2023-08-22T10:22:00Z",
"date": "2023-08-22T10:22:00",
"description": "Amazon Purchase",
"counterparty": "Amazon",
"reference": "Ref-12346",
Expand All @@ -3983,7 +3983,7 @@
},
{
"id": "716422531",
"date": "2023-08-22T10:23:00Z",
"date": "2023-08-22T10:23:00",
"description": "Office Supplies",
"counterparty": "Office Mart",
"reference": "Ref-12347",
Expand All @@ -4001,23 +4001,23 @@
"transactions": [
{
"id": "716422529",
"date": "2023-08-22T10:21:00Z",
"date": "2023-08-22T10:21:00",
"description": "Repayment of Credit Card",
"amount": 100,
"balance": 100,
"transactionType": "Credit"
},
{
"id": "716422530",
"date": "2023-08-22T10:22:00Z",
"date": "2023-08-22T10:22:00",
"description": "Amazon Purchase",
"amount": -100,
"balance": 0,
"transactionType": "Debit"
},
{
"id": "716422531",
"date": "2023-08-22T10:23:00Z",
"date": "2023-08-22T10:23:00",
"description": "Office Supplies",
"amount": -60,
"balance": -60,
Expand All @@ -4032,21 +4032,21 @@
"transactions": [
{
"id": "716422529",
"date": "2023-08-22T10:21:00Z",
"date": "2023-08-22T10:21:00",
"description": "Repayment of Credit Card",
"amount": 100,
"transactionType": "Credit"
},
{
"id": "716422530",
"date": "2023-08-22T10:22:00Z",
"date": "2023-08-22T10:22:00",
"description": "Amazon Purchase",
"amount": -100,
"transactionType": "Debit"
},
{
"id": "716422531",
"date": "2023-08-22T10:23:00Z",
"date": "2023-08-22T10:23:00",
"description": "Office Supplies",
"amount": -60,
"transactionType": "Debit"
Expand All @@ -4060,7 +4060,7 @@
"transactions": [
{
"id": "716422529",
"date": "2023-08-22T10:21:00Z",
"date": "2023-08-22T10:21:00",
"description": "Repayment of Credit Card",
"counterparty": "Bank of Example",
"reference": "Ref-12345",
Expand All @@ -4070,7 +4070,7 @@
},
{
"id": "716422530",
"date": "2023-08-22T10:22:00Z",
"date": "2023-08-22T10:22:00",
"description": "Amazon Purchase",
"counterparty": "Amazon",
"reference": "Ref-12346",
Expand All @@ -4080,7 +4080,7 @@
},
{
"id": "716422531",
"date": "2023-08-22T10:23:00Z",
"date": "2023-08-22T10:23:00",
"description": "Office Supplies",
"counterparty": "Office Mart",
"reference": "Ref-12347",
Expand Down Expand Up @@ -5165,7 +5165,13 @@
"example": "716422529"
},
"date": {
"$ref": "#/components/schemas/DateTime"
"title": "Local date time",
"type": "string",
"examples": [
"2023-08-22T10:21:00",
"2023-08-22"
],
"description": "In Codat's data model, dates and times are represented using the <a class=\"external\" href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:\n\n```\n2023-08-22T10:21:00\n2023-08-22\n```\n\nWhen pushing bank transaction data to Codat, the date is treated as a local date. This means:\n\n- The date/time is used exactly as provided, without any timezone conversion.\n- If a timezone offset is included (e.g., `2023-08-22T10:21:00-05:00`), the offset will be ignored and only the local date/time portion will be used.\n- We recommend providing dates without a timezone suffix for clarity (e.g., `2023-08-22T10:21:00` rather than `2023-08-22T10:21:00Z`)."
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timezone offsets silently ignored in transaction dates

High Severity

The date field now silently ignores timezone offsets in ISO 8601 timestamps, treating 2023-08-22T10:21:00-05:00 and 2023-08-22T10:21:00+05:00 as identical times despite being 10 hours apart. This violates ISO 8601 semantics and can cause incorrect transaction ordering when clients submit transactions from different timezones, leading to data integrity issues in bank transaction records.

Additional Locations (1)

Fix in Cursor Fix in Web

},
"description": {
"type": "string",
Expand Down
Loading