Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

commerce / commerce all unit tier order optimum

An agent that chooses one replenishment quantity needs its claimed all-unit price-break order checked against the cheapest quantity that meets demand within a complete finite tier schedule.

POST https://detect.halowerk.com/v1/commerce/commerce-all-unit-tier-order-optimum

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "demand": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "tiers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "from": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              },
              "to": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              },
              "unit_cost": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              }
            },
            "required": [
              "from",
              "to",
              "unit_cost"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 128
        },
        "claimed_quantity": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        }
      },
      "required": [
        "demand",
        "tiers",
        "claimed_quantity"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "demand": 8,
    "tiers": [
      {
        "from": 1,
        "to": 5,
        "unit_cost": 9
      },
      {
        "from": 6,
        "to": 10,
        "unit_cost": 10
      },
      {
        "from": 11,
        "to": 15,
        "unit_cost": 10
      }
    ],
    "claimed_quantity": 8
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →