Skip to content
HALOWERK

Trade Operations

invoice discount batch selection

Payment batch selection finds the invoice subset with the largest rounded discount under one cash limit. Use it when an agent needs help allocating a limited early-payment balance.

POST https://handel.halowerk.com/v1/invoice-discount-batch-selection

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
invoicesarrayYes
cashintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "invoices": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000000
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 15,
      "minItems": 1
    },
    "cash": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    }
  },
  "required": [
    "invoices",
    "cash"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "invoices": [
    [
      150000,
      200
    ],
    [
      80000,
      150
    ],
    [
      35000,
      300
    ]
  ],
  "cash": 160000
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’