Batch update reconciliation lines

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
POST /api-v1/reconciliation-lines/batch

Updates multiple reconciliation lines. Returns 200 on success, or 400 if any entry fails validation.

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

application/json

Body Required

  • id integer Required

    Reconciliation line ID. Must reference an existing line

  • contactId integer

    Contact ID to associate with this reconciliation line

  • isInternalContact boolean

    Whether the associated contact is an internal contact

  • manualEntries array[object]

    Manual entries used to match this line against payments. Fully replaces any existing entries

    Hide manualEntries attributes Show manualEntries attributes object
    • id integer

      Entity ID. If negative value, a new entity will be created

    • paymentType string

      Payment type this entry matches

      Values are SALES_INVOICE, PURCHASE_INVOICE, SALARY_SLIP, or MANUAL.

    • description string

      Description

    • amount string

      Matched amount as string

    • requestedAmount string

      Requested amount as string

    • counterPartyAccountId integer

      Counterparty chart of accounts ID

    • amountInCurrency string

      Amount in the original currency as string

    • entityContactId integer

      Contact ID linked to this entry

    • currencyId integer

      Currency ID

    • purchasePaymentId integer

      Purchase payment ID this entry matches

    • salesPaymentId integer

      Sales payment ID this entry matches

    • payrollPaymentId integer

      Payroll payment ID this entry matches

    • departmentId integer

      Department ID

    • isSplitPayment boolean

      Whether this is a split payment

    • bankCharges number

      Bank charges. Defaults to 0

    • lossOnDebtors number

      Loss on debtors. Defaults to 0

    • officeId integer

      Office ID

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • items array[object]
      Hide items attributes Show items attributes object
      • errorCode object
        Hide errorCode attributes Show errorCode attributes object
        • errorCode string

          Values are NO_ERROR, NOT_IMPLEMENTED_YET, CONTACT_NOT_FOUND, FIELD_REQUIRED, VALIDATION_ERROR, DUPLICATION_ERROR, UNIQUE_CONSTRAINT_VIOLATION, WRONG_PASSWORD_FORMAT, WRONG_PASSWORD, ACTION_DENIED, NOT_FOUND, EXPECTED_ONE_FILE, UNIQUE_VIOLATION, CONTENT_EMPTY, INVALID_TYPE, CONVERSION_ERROR, FILE_PARSE_EXCEPTION, or IN_USE.

        • errorDetailValues array[object]
          Hide errorDetailValues attributes Show errorDetailValues attributes object
          • errorCode string
          • fieldName string
          • data string
          • isSevere boolean
      • freshData

        Refreshed domain data

      • freshRow

        Refreshed table row data

      • possibleWorkflows array[object]
        Hide possibleWorkflows attributes Show possibleWorkflows attributes object
        • id integer(int64)
        • name string
      • error boolean
      • severeError boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/reconciliation-lines/batch
curl \
 --request POST 'https://wyzio.app/api-v1/reconciliation-lines/batch' \
 --header "Content-Type: application/json" \
 --data '[{"id":12345678,"contactId":12345678,"isInternalContact":false,"manualEntries":[{"id":12345678,"paymentType":"PURCHASE_PAYMENT","description":"Invoice payment match","amount":1200.0,"requestedAmount":1200.0,"counterPartyAccountId":12345678,"amountInCurrency":1000.0,"entityContactId":12345678,"currencyId":12345678,"purchasePaymentId":12345678,"salesPaymentId":12345678,"payrollPaymentId":12345678,"departmentId":12345678,"isSplitPayment":false,"bankCharges":0.0,"lossOnDebtors":0.0,"officeId":12345678}]}]'
Request examples
# Headers

# Payload
[
  {
    "id": 12345678,
    "contactId": 12345678,
    "isInternalContact": false,
    "manualEntries": [
      {
        "id": 12345678,
        "paymentType": "PURCHASE_PAYMENT",
        "description": "Invoice payment match",
        "amount": 1200.0,
        "requestedAmount": 1200.0,
        "counterPartyAccountId": 12345678,
        "amountInCurrency": 1000.0,
        "entityContactId": 12345678,
        "currencyId": 12345678,
        "purchasePaymentId": 12345678,
        "salesPaymentId": 12345678,
        "payrollPaymentId": 12345678,
        "departmentId": 12345678,
        "isSplitPayment": false,
        "bankCharges": 0.0,
        "lossOnDebtors": 0.0,
        "officeId": 12345678
      }
    ]
  }
]
Response examples (200)
{
  "items": [
    {
      "errorCode": {
        "errorCode": "NO_ERROR",
        "errorDetailValues": [
          {
            "errorCode": "string",
            "fieldName": "string",
            "data": "string",
            "isSevere": true
          }
        ]
      },
      "possibleWorkflows": [
        {
          "id": 42,
          "name": "string"
        }
      ],
      "error": true,
      "severeError": true
    }
  ]
}