Toku · Schema

UndoDebtReconciliationsByInvoiceResponse

Undo debt reconciliations by invoice response schema

FintechPaymentsB2BAutomationChile

Properties

Name Type Description
debt_reconciliations array Conciliaciones de deuda efectivamente revertidas, ya en estado `DISMISSED` y sin transacciones asociadas. No incluye las que fallaron al revertirse.
View JSON Schema on GitHub

JSON Schema

toku-undo-debt-reconciliations-by-invoice-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toku/json-schema/toku-undo-debt-reconciliations-by-invoice-response-schema.json",
  "title": "UndoDebtReconciliationsByInvoiceResponse",
  "description": "Undo debt reconciliations by invoice response schema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/toku-debt-reconciliation-public-api-openapi.yml#/components/schemas/UndoDebtReconciliationsByInvoiceResponse",
  "properties": {
    "debt_reconciliations": {
      "description": "Conciliaciones de deuda efectivamente revertidas, ya en estado `DISMISSED` y sin transacciones asociadas. No incluye las que fallaron al revertirse.",
      "items": {
        "$ref": "#/$defs/DebtReconciliationSchema"
      },
      "title": "Debt Reconciliations",
      "type": "array"
    }
  },
  "required": [
    "debt_reconciliations"
  ],
  "type": "object",
  "$defs": {
    "DebtReconciliationPayer": {
      "enum": [
        "CUSTOMER",
        "UNKNOWN",
        "RELATED"
      ],
      "title": "DebtReconciliationPayer",
      "type": "string"
    },
    "DebtReconciliationSchema": {
      "description": "Debt reconciliation schema",
      "properties": {
        "account_number": {
          "title": "Account Number",
          "type": "string"
        },
        "adjustment_documents": {
          "items": {
            "$ref": "#/$defs/LeanAdjustmentDocument"
          },
          "title": "Adjustment Documents",
          "type": "array"
        },
        "client_bank_movements": {
          "items": {
            "$ref": "#/$defs/LeanBankMovement"
          },
          "title": "Client Bank Movements",
          "type": "array"
        },
        "created_at": {
          "format": "date-time",
          "title": "Created At",
          "type": "string"
        },
        "id_adjustment_documents": {
          "items": {
            "type": "string"
          },
          "title": "Id Adjustment Documents",
          "type": "array"
        },
        "id_client_bank_movements": {
          "items": {
            "type": "string"
          },
          "title": "Id Client Bank Movements",
          "type": "array"
        },
        "id_customer": {
          "title": "Id Customer",
          "type": "string"
        },
        "id_debt_reconciliation": {
          "title": "Id Debt Reconciliation",
          "type": "string"
        },
        "id_invoices": {
          "items": {
            "type": "string"
          },
          "title": "Id Invoices",
          "type": "array"
        },
        "id_match_run": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id Match Run"
        },
        "id_transactions": {
          "items": {
            "type": "string"
          },
          "title": "Id Transactions",
          "type": "array"
        },
        "invoices": {
          "items": {
            "$ref": "#/$defs/LeanInvoice"
          },
          "title": "Invoices",
          "type": "array"
        },
        "payer": {
          "anyOf": [
            {
              "$ref": "#/$defs/DebtReconciliationPayer"
            },
            {
              "type": "null"
            }
          ]
        },
        "reconciled_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reconciled At"
        },
        "status": {
          "$ref": "#/$defs/DebtReconciliationStatus"
        },
        "status_log": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Status Log",
          "type": "array"
        },
        "total_adjustment_amount": {
          "default": 0,
          "title": "Total Adjustment Amount",
          "type": "number"
        },
        "total_invoice_amount": {
          "title": "Total Invoice Amount",
          "type": "number"
        },
        "total_movement_amount": {
          "title": "Total Movement Amount",
          "type": "number"
        },
        "transactions": {
          "items": {
            "$ref": "#/$defs/LeanTransaction"
          },
          "title": "Transactions",
          "type": "array"
        },
        "type": {
          "$ref": "#/$defs/DebtReconciliationType"
        },
        "updated_at": {
          "format": "date-time",
          "title": "Updated At",
          "type": "string"
        }
      },
      "required": [
        "id_debt_reconciliation",
        "id_customer",
        "id_invoices",
        "id_transactions",
        "transactions",
        "invoices",
        "client_bank_movements",
        "type",
        "id_client_bank_movements",
        "status",
        "status_log",
        "total_invoice_amount",
        "total_movement_amount",
        "account_number",
        "created_at",
        "updated_at"
      ],
      "title": "DebtReconciliationSchema",
      "type": "object"
    },
    "DebtReconciliationStatus": {
      "enum": [
        "SUGGESTED",
        "DISMISSED",
        "APPROVED",
        "MANUALLY_RECONCILED",
        "DEPRECATED"
      ],
      "title": "DebtReconciliationStatus",
      "type": "string"
    },
    "DebtReconciliationType": {
      "enum": [
        "ONE_TO_ONE",
        "ONE_TO_MANY",
        "MANY_TO_ONE",
        "MANY_TO_MANY"
      ],
      "title": "DebtReconciliationType",
      "type": "string"
    },
    "LeanAdjustmentDocument": {
      "description": "Point-in-time snapshot of a credit note applied in a reconciliation. Ids are public, in the same format as `LeanInvoice.id_invoice`.",
      "properties": {
        "_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/PydanticObjectId"
            },
            {
              "type": "null"
            }
          ],
          "description": "MongoDB document ObjectID"
        },
        "amount": {
          "title": "Amount",
          "type": "number"
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "currency_code": {
          "title": "Currency Code",
          "type": "string"
        },
        "deleted_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        },
        "external_id": {
          "title": "External Id",
          "type": "string"
        },
        "id_account": {
          "title": "Id Account",
          "type": "string"
        },
        "id_adjustment_document": {
          "title": "Id Adjustment Document",
          "type": "string"
        },
        "id_customer": {
          "title": "Id Customer",
          "type": "string"
        },
        "id_origin_invoice": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id Origin Invoice"
        },
        "issued_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Issued At"
        },
        "updated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "required": [
        "id_adjustment_document",
        "external_id",
        "amount",
        "currency_code",
        "id_customer",
        "id_account"
      ],
      "title": "LeanAdjustmentDocument",
      "type": "object"
    },
    "LeanBankMovement": {
      "properties": {
        "_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/PydanticObjectId"
            },
            {
              "type": "null"
            }
          ],
          "description": "MongoDB document ObjectID"
        },
        "amount": {
          "title": "Amount",
          "type": "number"
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "currency_code": {
          "title": "Currency Code",
          "type": "string"
        },
        "deleted_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "destination_account_number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Destination Account Number"
        },
        "destination_bank_entity": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Destination Bank Entity"
        },
        "full_amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Full Amount"
        },
        "id_client_bank_movement": {
          "title": "Id Client Bank Movement",
          "type": "string"
        },
        "origin_account_number": {
          "title": "Origin Account Number",
          "type": "string"
        },
        "origin_bank_entity": {
          "title": "Origin Bank Entity",
          "type": "string"
        },
        "origin_government_id": {
          "title": "Origin Government Id",
          "type": "string"
        },
        "origin_holder_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Origin Holder Name"
        },
        "original_amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Original Amount"
        },
        "reported_amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reported Amount"
        },
        "transferred_at": {
          "format": "date-time",
          "title": "Transferred At",
          "type": "string"
        },
        "updated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "required": [
        "id_client_bank_movement",
        "origin_government_id",
        "amount",
        "currency_code",
        "origin_bank_entity",
        "origin_account_number",
        "transferred_at"
      ],
      "title": "LeanBankMovement",
      "type": "object"
    },
    "LeanInvoice": {
      "properties": {
        "_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/PydanticObjectId"
            },
            {
              "type": "null"
            }
          ],
          "description": "MongoDB document ObjectID"
        },
        "adjustment_amount": {
          "default": 0,
          "title": "Adjustment Amount",
          "type": "number"
        },
        "amount": {
          "title": "Amount",
          "type": "number"
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "currency_code": {
          "title": "Currency Code",
          "type": "string"
        },
        "customer_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Customer Name"
        },
        "deleted_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        },
        "due_date": {
          "format": "date-time",
          "title": "Due Date",
          "type": "string"
        },
        "external_id": {
          "title": "External Id",
          "type": "string"
        },
        "government_id": {
          "title": "Government Id",
          "type": "string"
        },
        "id_account": {
          "title": "Id Account",
          "type": "string"
        },
        "id_cache_invoice": {
          "title": "Id Cache Invoice",
          "type": "string"
        },
        "id_customer": {
          "title": "Id Customer",
          "type": "string"
        },
        "id_invoice": {
          "title": "Id Invoice",
          "type": "string"
        },
        "original_amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Original Amount"
        },
        "product_id": {
          "title": "Product Id",
          "type": "string"
        },
        "updated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "required": [
        "id_cache_invoice",
        "id_invoice",
        "due_date",
        "id_customer",
        "id_account",
        "external_id",
        "product_id",
        "government_id",
        "amount",
        "currency_code"
      ],
      "title": "LeanInvoice",
      "type": "object"
    },
    "LeanTransaction": {
      "properties": {
        "_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/PydanticObjectId"
            },
            {
              "type": "null"
            }
          ],
          "description": "MongoDB document ObjectID"
        },
        "amount": {
          "title": "Amount",
          "type": "number"
        },
        "created_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "currency": {
          "title": "Currency",
          "type": "string"
        },
        "deleted_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted At"
        },
        "external_id": {
          "title": "External Id",
          "type": "string"
        },
        "id_account": {
          "title": "Id Account",
          "type": "string"
        },
        "id_customer": {
          "title": "Id Customer",
          "type": "string"
        },
        "id_transaction": {
          "title": "Id Transaction",
          "type": "string"
        },
        "invoices": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Invoices",
          "type": "array"
        },
        "movement_amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Movement Amount"
        },
        "payment_method_detail": {
          "title": "Payment Method Detail",
          "type": "string"
        },
        "transaction_date": {
          "format": "date-time",
          "title": "Transaction Date",
          "type": "string"
        },
        "updated_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        }
      },
      "required": [
        "id_transaction",
        "id_customer",
        "id_account",
        "currency",
        "transaction_date",
        "external_id",
        "payment_method_detail",
        "amount",
        "invoices"
      ],
      "title": "LeanTransaction",
      "type": "object"
    },
    "PydanticObjectId": {
      "maxLength": 24,
      "minLength": 24,
      "pattern": "^[0-9a-f]{24}$",
      "type": "string"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/toku-undo-debt-reconciliations-by-invoice-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.