Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

commerce / commerce integer pack order cover

An agent that buys indivisible replenishment packs needs whether its claimed minimum spend covers the exact unit demand when repeated pack purchases and unavoidable oversupply are allowed.

POST https://detect.halowerk.com/v1/commerce/commerce-integer-pack-order-cover

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": 2048
        },
        "packs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "units": {
                "type": "integer",
                "minimum": 1,
                "maximum": 64
              },
              "cost": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              }
            },
            "required": [
              "units",
              "cost"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 32
        },
        "claimed_cost": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "demand",
        "packs",
        "claimed_cost"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "demand": 9,
    "packs": [
      {
        "units": 1,
        "cost": 10
      },
      {
        "units": 4,
        "cost": 10
      },
      {
        "units": 2,
        "cost": 4
      },
      {
        "units": 5,
        "cost": 6
      }
    ],
    "claimed_cost": 12
  }
}

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 →