Update sales invoice payment value date

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
PATCH /api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/value-date

Updates the value date for the specified sales invoice payment. Returns 200 on success, or 400 if the update is not valid.

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

Path parameters

  • invoiceId integer(int64) Required
  • paymentId integer(int64) Required
application/json

Body Required

  • valueDate string Required

    Value date of the payment batch (format dd/MM/yyyy)

  • chartOfAccountsId integer(int64) Required

    Chart of accounts ID used as the payment account

  • purchasePayments array[integer(int64)]

    IDs of purchase invoice payments to process

  • salesPayments array[integer(int64)]

    IDs of sales invoice payments to process

  • payrollPayments array[integer(int64)]

    IDs of payroll payments to process

  • bankCharges string

    Bank charges amount as string

  • lossOnDebtors string

    Loss on debtors amount as string

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • error object
      Hide error attributes Show error 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
    • valid boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

PATCH /api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/value-date
curl \
 --request PATCH 'https://wyzio.app/api-v1/sales-invoice/{invoiceId}/payment/{paymentId}/value-date' \
 --header "Content-Type: application/json" \
 --data '{"valueDate":"01/06/2026","chartOfAccountsId":12345678,"purchasePayments":[12345678],"salesPayments":[12345678],"payrollPayments":[12345678],"bankCharges":10.0,"lossOnDebtors":5.0}'
Request examples
# Headers

# Payload
{
  "valueDate": "01/06/2026",
  "chartOfAccountsId": 12345678,
  "purchasePayments": [
    12345678
  ],
  "salesPayments": [
    12345678
  ],
  "payrollPayments": [
    12345678
  ],
  "bankCharges": 10.0,
  "lossOnDebtors": 5.0
}
Response examples (200)
{
  "error": {
    "errorCode": "NO_ERROR",
    "errorDetailValues": [
      {
        "errorCode": "string",
        "fieldName": "string",
        "data": "string",
        "isSevere": true
      }
    ]
  },
  "valid": true
}