otapayout.reconcile
Reconcile Airbnb Earnings, Booking.com Reconciliation API v1, and Vrbo payout CSVs with bank deposits. Confirm only completed bank credits from a documented OTA payer with an exact transfer reference and agreeing currency, amount, and date. Maximum 100 distinct reservations per call.
https://api.kanagu.dev/v1/otapayout/reconcile- Price
- $0.30 per 100 reservations, on successful calls only
- Without a key
- 10 free calls per IP per UTC day, shared by REST and MCP.
- MCP tool
otapayout.reconcileathttps://api.kanagu.dev/mcp- Markdown
- /docs/otapayout.reconcile.md
curl https://api.kanagu.dev/v1/otapayout/reconcile \
-H "Content-Type: application/json" \
-d '{"otaReports":[{"csv":"Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"}],"bankCsv":"Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED","bankColumns":{"date":"Date","amount":"Amount","description":"Description","currency":"Currency","reference":"Reference","counterparty":"Sender","status":{"column":"State","completedValues":["COMPLETED"]}}}'curl https://api.kanagu.dev/v1/otapayout/reconcile \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"otaReports":[{"csv":"Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"}],"bankCsv":"Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED","bankColumns":{"date":"Date","amount":"Amount","description":"Description","currency":"Currency","reference":"Reference","counterparty":"Sender","status":{"column":"State","completedValues":["COMPLETED"]}}}'const res = await fetch("https://api.kanagu.dev/v1/otapayout/reconcile", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"otaReports": [
{
"csv": "Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"
}
],
"bankCsv": "Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED",
"bankColumns": {
"date": "Date",
"amount": "Amount",
"description": "Description",
"currency": "Currency",
"reference": "Reference",
"counterparty": "Sender",
"status": {
"column": "State",
"completedValues": [
"COMPLETED"
]
}
}
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "otapayout.reconcile",
"arguments": {
"otaReports": [
{
"csv": "Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"
}
],
"bankCsv": "Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED",
"bankColumns": {
"date": "Date",
"amount": "Amount",
"description": "Description",
"currency": "Currency",
"reference": "Reference",
"counterparty": "Sender",
"status": {
"column": "State",
"completedValues": [
"COMPLETED"
]
}
}
}
}
}{
"otaReports": [
{
"csv": "Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"
}
],
"bankCsv": "Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED",
"bankColumns": {
"date": "Date",
"amount": "Amount",
"description": "Description",
"currency": "Currency",
"reference": "Reference",
"counterparty": "Sender",
"status": {
"column": "State",
"completedValues": [
"COMPLETED"
]
}
}
}{
"reservationCount": 1,
"reports": [
{
"file": 1,
"format": "airbnb-earnings-en-2025",
"source": "https://www.airbnb.com/help/article/414",
"channel": "airbnb"
}
],
"payouts": [
{
"key": "1:2",
"file": 1,
"row": 2,
"date": "2026-11-12",
"reference": "G-KANAGU001",
"reported": {
"currency": "USD",
"amount": "194"
},
"lineTotal": {
"currency": "USD",
"amount": "194"
},
"expected": {
"currency": "USD",
"amount": "194"
},
"lines": [
{
"row": 3,
"type": "Reservation",
"kind": "reservation",
"reservationId": "HM12345678",
"transactionDate": "2026-11-12",
"net": {
"currency": "USD",
"amount": "194"
},
"breakdown": {
"currency": "USD",
"gross": "200",
"hostFee": "6",
"cleaningFee": "25",
"calculatedNet": "194"
}
}
],
"status": "matched",
"match": {
"deposit": {
"row": 2,
"date": "2026-11-14",
"description": "Payout",
"reference": "G-KANAGU001",
"amount": {
"currency": "USD",
"amount": "194"
}
},
"method": "reference",
"amountDifference": "0"
},
"issues": [],
"candidateDepositRows": [
2
]
}
],
"unmatchedDeposits": [],
"unallocatedLines": [],
"adjustments": [],
"needs_review": false
}Request body
application/json
otaReportsarray of objectrequired- One report per OTA. Include complete payout groups.
otaReports[].csvstring (max 524288 chars)required- English Airbnb Earnings, Booking.com Reconciliation API v1, or Vrbo CSV text. The headers identify the format.
otaReports[].slashDateOrder"mdy" | "dmy"- Order for slash dates in Airbnb and Vrbo reports.
bankCsvstring (max 524288 chars)required- One account's bank CSV. Use bankColumns to declare its column meanings when they are not covered by a built-in profile.
bankColumnsobjectbankColumns.datestring (max 200 chars)required- Booking date or timestamp column.
bankColumns.slashDateOrder"mdy" | "dmy"bankColumns.amountstring (max 200 chars)required- Amount column. Without direction, a positive amount is an incoming credit.
bankColumns.currencystring (max 200 chars)required- Three-letter currency code column.
bankColumns.descriptionstring (max 200 chars)required- Bank transfer description column.
bankColumns.referencestring (max 200 chars)- Transfer reference column, when separate from the description.
bankColumns.counterpartystring (max 200 chars)- Bank-reported sender of an incoming credit.
bankColumns.directionobject- Recognizes standard credit/debit codes and additional incomingValues. Negative amounts are debits. Unknown codes and negative credits require review.
bankColumns.direction.columnstring (max 200 chars)requiredbankColumns.direction.incomingValuesarray of string (max 100 chars)requiredbankColumns.statusobject- Omit only for exports containing booked transactions exclusively.
bankColumns.status.columnstring (max 200 chars)requiredbankColumns.status.completedValuesarray of string (max 100 chars)requiredbankColumns.ignoredarray of string (max 200 chars)- List any other columns whose values do not affect the reconciliation.
Response
200 · application/json
reservationCountinteger (0 to 100)requiredreportsarray of objectrequiredreports[].fileinteger (-9007199254740991 to 9007199254740991)required- One-based index in otaReports.
reports[].format"airbnb-earnings-en-2025" | "booking-reconciliation-en-v1" | "vrbo-payout-summary-en-2026" | "vrbo-payment-history-en-2026" | "vrbo-bank-deposits-en-2026"requiredreports[].sourcestringrequiredreports[].channel"airbnb" | "booking" | "vrbo"requiredpayoutsarray of objectrequiredpayouts[].keystringrequired- File and payout record number joined by a colon.
payouts[].fileinteger (-9007199254740991 to 9007199254740991)requiredpayouts[].rowinteger (-9007199254740991 to 9007199254740991)required- One-based CSV record number, including the header.
payouts[].datestring (date)requiredpayouts[].referencestringpayouts[].reportedobjectpayouts[].reported.currencystringrequiredpayouts[].reported.amountstringrequired- Exact decimal amount in currency units.
payouts[].lineTotalobjectpayouts[].lineTotal.currencystringrequiredpayouts[].lineTotal.amountstringrequired- Exact decimal amount in currency units.
payouts[].expectedobject- Reported payout total or sum of single-currency detail lines.
payouts[].expected.currencystringrequiredpayouts[].expected.amountstringrequired- Exact decimal amount in currency units.
payouts[].linesarray of objectrequiredpayouts[].lines[].rowinteger (-9007199254740991 to 9007199254740991)requiredpayouts[].lines[].typestringrequiredpayouts[].lines[].kind"reservation" | "adjustment" | "other"required- Normalized transaction category.
payouts[].lines[].needs_reviewtrue- The source transaction type is unrecognized.
payouts[].lines[].reservationIdstringpayouts[].lines[].transactionIdstringpayouts[].lines[].transactionDatestring (date)payouts[].lines[].gueststringpayouts[].lines[].checkInstring (date)payouts[].lines[].checkOutstring (date)payouts[].lines[].netobjectrequiredpayouts[].lines[].net.currencystringrequiredpayouts[].lines[].net.amountstringrequired- Exact decimal amount in currency units.
payouts[].lines[].breakdownobjectrequired- Reported amounts preserve the source signs. Absent fields were unavailable.
payouts[].lines[].breakdown.currencystringrequiredpayouts[].lines[].breakdown.grossstringpayouts[].lines[].breakdown.hostFeestringpayouts[].lines[].breakdown.processingFeestringpayouts[].lines[].breakdown.commissionTaxstringpayouts[].lines[].breakdown.deductionsstringpayouts[].lines[].breakdown.cleaningFeestringpayouts[].lines[].breakdown.petFeestringpayouts[].lines[].breakdown.resortFeestringpayouts[].lines[].breakdown.taxWithheldstringpayouts[].lines[].breakdown.taxRemittedByOtastringpayouts[].lines[].breakdown.taxPassedToHoststringpayouts[].lines[].breakdown.occupancyTaxstringpayouts[].lines[].breakdown.coHostPayoutstringpayouts[].lines[].breakdown.adjustmentstringpayouts[].lines[].breakdown.exchangeRatestringpayouts[].lines[].breakdown.otherItemsarray of object- Additional monetary columns or transaction types with their original amount signs.
payouts[].lines[].breakdown.otherItems[].columnstringrequiredpayouts[].lines[].breakdown.otherItems[].amountstringrequiredpayouts[].lines[].breakdown.calculatedNetstring- Net reconstructed from the reported monetary breakdown.
payouts[].status"matched" | "suggested" | "not_received" | "no_deposit_expected" | "needs_review"requiredpayouts[].matchobjectpayouts[].match.depositobjectrequiredpayouts[].match.deposit.rowinteger (-9007199254740991 to 9007199254740991)requiredpayouts[].match.deposit.datestring (date)- Bank booking date, when available.
payouts[].match.deposit.descriptionstringrequiredpayouts[].match.deposit.referencestringpayouts[].match.deposit.amountobjectrequiredpayouts[].match.deposit.amount.currencystringrequiredpayouts[].match.deposit.amount.amountstringrequired- Exact decimal amount in currency units.
payouts[].match.method"reference" | "amount_date_channel" | "batched_amount_date_channel"requiredpayouts[].match.amountDifferencestring- Bank deposit minus expected payout in the same currency.
payouts[].match.impliedExchangeRatestring- Bank currency units per payout currency unit based on the two reported amounts.
payouts[].issuesarray of stringrequiredpayouts[].candidateDepositRowsarray of integer (-9007199254740991 to 9007199254740991)requiredunmatchedDepositsarray of objectrequired- Bank deposits without a confirmed link, including suggested allocations and debits that require review.
unmatchedDeposits[].rowinteger (-9007199254740991 to 9007199254740991)requiredunmatchedDeposits[].datestring (date)- Bank booking date, when available.
unmatchedDeposits[].descriptionstringrequiredunmatchedDeposits[].referencestringunmatchedDeposits[].amountobjectrequiredunmatchedDeposits[].amount.currencystringrequiredunmatchedDeposits[].amount.amountstringrequired- Exact decimal amount in currency units.
unmatchedDeposits[].candidatePayoutKeysarray of stringrequiredunmatchedDeposits[].candidatePayoutGroupsarray of array of string- Each exact amount allocation found for this deposit. A singleton is one possible allocation.
unmatchedDeposits[].issuesarray of stringunallocatedLinesarray of objectrequiredunallocatedLines[].rowinteger (-9007199254740991 to 9007199254740991)requiredunallocatedLines[].typestringrequiredunallocatedLines[].kind"reservation" | "adjustment" | "other"required- Normalized transaction category.
unallocatedLines[].needs_reviewtrue- The source transaction type is unrecognized.
unallocatedLines[].reservationIdstringunallocatedLines[].transactionIdstringunallocatedLines[].transactionDatestring (date)unallocatedLines[].gueststringunallocatedLines[].checkInstring (date)unallocatedLines[].checkOutstring (date)unallocatedLines[].netobjectrequiredunallocatedLines[].net.currencystringrequiredunallocatedLines[].net.amountstringrequired- Exact decimal amount in currency units.
unallocatedLines[].breakdownobjectrequired- Reported amounts preserve the source signs. Absent fields were unavailable.
unallocatedLines[].breakdown.currencystringrequiredunallocatedLines[].breakdown.grossstringunallocatedLines[].breakdown.hostFeestringunallocatedLines[].breakdown.processingFeestringunallocatedLines[].breakdown.commissionTaxstringunallocatedLines[].breakdown.deductionsstringunallocatedLines[].breakdown.cleaningFeestringunallocatedLines[].breakdown.petFeestringunallocatedLines[].breakdown.resortFeestringunallocatedLines[].breakdown.taxWithheldstringunallocatedLines[].breakdown.taxRemittedByOtastringunallocatedLines[].breakdown.taxPassedToHoststringunallocatedLines[].breakdown.occupancyTaxstringunallocatedLines[].breakdown.coHostPayoutstringunallocatedLines[].breakdown.adjustmentstringunallocatedLines[].breakdown.exchangeRatestringunallocatedLines[].breakdown.otherItemsarray of object- Additional monetary columns or transaction types with their original amount signs.
unallocatedLines[].breakdown.otherItems[].columnstringrequiredunallocatedLines[].breakdown.otherItems[].amountstringrequiredunallocatedLines[].breakdown.calculatedNetstring- Net reconstructed from the reported monetary breakdown.
unallocatedLines[].fileinteger (-9007199254740991 to 9007199254740991)requiredadjustmentsarray of objectrequiredadjustments[].fileinteger (-9007199254740991 to 9007199254740991)requiredadjustments[].rowinteger (-9007199254740991 to 9007199254740991)requiredadjustments[].reservationIdstringadjustments[].payoutKeystringadjustments[].amountobjectrequiredadjustments[].amount.currencystringrequiredadjustments[].amount.amountstringrequired- Exact decimal amount in currency units.
adjustments[].priorPayoutCandidatesarray of stringrequiredadjustments[].needs_reviewbooleanrequiredneeds_reviewbooleanrequired
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"otaReports": {
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"csv": {
"type": "string",
"minLength": 1,
"maxLength": 524288,
"description": "English Airbnb Earnings, Booking.com Reconciliation API v1, or Vrbo CSV text. The headers identify the format."
},
"slashDateOrder": {
"default": "mdy",
"description": "Order for slash dates in Airbnb and Vrbo reports.",
"type": "string",
"enum": [
"mdy",
"dmy"
]
}
},
"required": [
"csv"
],
"additionalProperties": false
},
"description": "One report per OTA. Include complete payout groups."
},
"bankCsv": {
"type": "string",
"minLength": 1,
"maxLength": 524288,
"description": "One account's bank CSV. Use bankColumns to declare its column meanings when they are not covered by a built-in profile."
},
"bankColumns": {
"type": "object",
"properties": {
"date": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Booking date or timestamp column."
},
"slashDateOrder": {
"type": "string",
"enum": [
"mdy",
"dmy"
]
},
"amount": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Amount column. Without direction, a positive amount is an incoming credit."
},
"currency": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Three-letter currency code column."
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Bank transfer description column."
},
"reference": {
"description": "Transfer reference column, when separate from the description.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"counterparty": {
"description": "Bank-reported sender of an incoming credit.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"direction": {
"description": "Recognizes standard credit/debit codes and additional incomingValues. Negative amounts are debits. Unknown codes and negative credits require review.",
"type": "object",
"properties": {
"column": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"incomingValues": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"column",
"incomingValues"
],
"additionalProperties": false
},
"status": {
"description": "Omit only for exports containing booked transactions exclusively.",
"type": "object",
"properties": {
"column": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"completedValues": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"column",
"completedValues"
],
"additionalProperties": false
},
"ignored": {
"description": "List any other columns whose values do not affect the reconciliation.",
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
}
},
"required": [
"date",
"amount",
"currency",
"description"
],
"additionalProperties": false
}
},
"required": [
"otaReports",
"bankCsv"
],
"additionalProperties": false,
"examples": [
{
"otaReports": [
{
"csv": "Date,Type,Confirmation code,Reference code,Currency,Amount,Paid out,Service fee,Cleaning fee,Gross earnings\n11/12/2026,Payout,,G-KANAGU001,USD,,194.00,,,\n11/12/2026,Reservation,HM12345678,,USD,194.00,,6.00,25.00,200.00"
}
],
"bankCsv": "Date,Amount,Description,Currency,Reference,Sender,State\n2026-11-14,194.00,Payout,USD,G-KANAGU001,\"Airbnb Payments, Inc.\",COMPLETED",
"bankColumns": {
"date": "Date",
"amount": "Amount",
"description": "Description",
"currency": "Currency",
"reference": "Reference",
"counterparty": "Sender",
"status": {
"column": "State",
"completedValues": [
"COMPLETED"
]
}
}
}
]
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"reservationCount": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "One-based index in otaReports."
},
"format": {
"type": "string",
"enum": [
"airbnb-earnings-en-2025",
"booking-reconciliation-en-v1",
"vrbo-payout-summary-en-2026",
"vrbo-payment-history-en-2026",
"vrbo-bank-deposits-en-2026"
]
},
"source": {
"type": "string"
},
"channel": {
"type": "string",
"enum": [
"airbnb",
"booking",
"vrbo"
]
}
},
"required": [
"file",
"format",
"source",
"channel"
],
"additionalProperties": false
}
},
"payouts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "File and payout record number joined by a colon."
},
"file": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "One-based CSV record number, including the header."
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"reference": {
"type": "string"
},
"reported": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"lineTotal": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"expected": {
"description": "Reported payout total or sum of single-currency detail lines.",
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"type": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"reservation",
"adjustment",
"other"
],
"description": "Normalized transaction category."
},
"needs_review": {
"description": "The source transaction type is unrecognized.",
"type": "boolean",
"const": true
},
"reservationId": {
"type": "string"
},
"transactionId": {
"type": "string"
},
"transactionDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"guest": {
"type": "string"
},
"checkIn": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"checkOut": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"net": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"breakdown": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"gross": {
"type": "string"
},
"hostFee": {
"type": "string"
},
"processingFee": {
"type": "string"
},
"commissionTax": {
"type": "string"
},
"deductions": {
"type": "string"
},
"cleaningFee": {
"type": "string"
},
"petFee": {
"type": "string"
},
"resortFee": {
"type": "string"
},
"taxWithheld": {
"type": "string"
},
"taxRemittedByOta": {
"type": "string"
},
"taxPassedToHost": {
"type": "string"
},
"occupancyTax": {
"type": "string"
},
"coHostPayout": {
"type": "string"
},
"adjustment": {
"type": "string"
},
"exchangeRate": {
"type": "string"
},
"otherItems": {
"description": "Additional monetary columns or transaction types with their original amount signs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"column": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"required": [
"column",
"amount"
],
"additionalProperties": false
}
},
"calculatedNet": {
"description": "Net reconstructed from the reported monetary breakdown.",
"type": "string"
}
},
"required": [
"currency"
],
"additionalProperties": false,
"description": "Reported amounts preserve the source signs. Absent fields were unavailable."
}
},
"required": [
"row",
"type",
"kind",
"net",
"breakdown"
],
"additionalProperties": false
}
},
"status": {
"type": "string",
"enum": [
"matched",
"suggested",
"not_received",
"no_deposit_expected",
"needs_review"
]
},
"match": {
"type": "object",
"properties": {
"deposit": {
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"date": {
"description": "Bank booking date, when available.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"description": {
"type": "string"
},
"reference": {
"type": "string"
},
"amount": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
}
},
"required": [
"row",
"description",
"amount"
],
"additionalProperties": false
},
"method": {
"type": "string",
"enum": [
"reference",
"amount_date_channel",
"batched_amount_date_channel"
]
},
"amountDifference": {
"description": "Bank deposit minus expected payout in the same currency.",
"type": "string"
},
"impliedExchangeRate": {
"description": "Bank currency units per payout currency unit based on the two reported amounts.",
"type": "string"
}
},
"required": [
"deposit",
"method"
],
"additionalProperties": false
},
"issues": {
"type": "array",
"items": {
"type": "string"
}
},
"candidateDepositRows": {
"type": "array",
"items": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
}
},
"required": [
"key",
"file",
"row",
"date",
"lines",
"status",
"issues",
"candidateDepositRows"
],
"additionalProperties": false
}
},
"unmatchedDeposits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"date": {
"description": "Bank booking date, when available.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"description": {
"type": "string"
},
"reference": {
"type": "string"
},
"amount": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"candidatePayoutKeys": {
"type": "array",
"items": {
"type": "string"
}
},
"candidatePayoutGroups": {
"description": "Each exact amount allocation found for this deposit. A singleton is one possible allocation.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"issues": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"row",
"description",
"amount",
"candidatePayoutKeys"
],
"additionalProperties": false
},
"description": "Bank deposits without a confirmed link, including suggested allocations and debits that require review."
},
"unallocatedLines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"type": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"reservation",
"adjustment",
"other"
],
"description": "Normalized transaction category."
},
"needs_review": {
"description": "The source transaction type is unrecognized.",
"type": "boolean",
"const": true
},
"reservationId": {
"type": "string"
},
"transactionId": {
"type": "string"
},
"transactionDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"guest": {
"type": "string"
},
"checkIn": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"checkOut": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"net": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"breakdown": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"gross": {
"type": "string"
},
"hostFee": {
"type": "string"
},
"processingFee": {
"type": "string"
},
"commissionTax": {
"type": "string"
},
"deductions": {
"type": "string"
},
"cleaningFee": {
"type": "string"
},
"petFee": {
"type": "string"
},
"resortFee": {
"type": "string"
},
"taxWithheld": {
"type": "string"
},
"taxRemittedByOta": {
"type": "string"
},
"taxPassedToHost": {
"type": "string"
},
"occupancyTax": {
"type": "string"
},
"coHostPayout": {
"type": "string"
},
"adjustment": {
"type": "string"
},
"exchangeRate": {
"type": "string"
},
"otherItems": {
"description": "Additional monetary columns or transaction types with their original amount signs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"column": {
"type": "string"
},
"amount": {
"type": "string"
}
},
"required": [
"column",
"amount"
],
"additionalProperties": false
}
},
"calculatedNet": {
"description": "Net reconstructed from the reported monetary breakdown.",
"type": "string"
}
},
"required": [
"currency"
],
"additionalProperties": false,
"description": "Reported amounts preserve the source signs. Absent fields were unavailable."
},
"file": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"row",
"type",
"kind",
"net",
"breakdown",
"file"
],
"additionalProperties": false
}
},
"adjustments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"row": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"reservationId": {
"type": "string"
},
"payoutKey": {
"type": "string"
},
"amount": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"amount": {
"type": "string",
"description": "Exact decimal amount in currency units."
}
},
"required": [
"currency",
"amount"
],
"additionalProperties": false
},
"priorPayoutCandidates": {
"type": "array",
"items": {
"type": "string"
}
},
"needs_review": {
"type": "boolean"
}
},
"required": [
"file",
"row",
"amount",
"priorPayoutCandidates",
"needs_review"
],
"additionalProperties": false
}
},
"needs_review": {
"type": "boolean"
}
},
"required": [
"reservationCount",
"reports",
"payouts",
"unmatchedDeposits",
"unallocatedLines",
"adjustments",
"needs_review"
],
"additionalProperties": false
}