# UBL Receipt Advice Accepted/Rejected/Shortage Partition

> UBL Receipt Advice Accepted/Rejected/Shortage Partition is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Partitions receipt quantities across despatch lines into accepted, rejected, short, and excess (oversupply) buckets for partial receipt scenarios.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-01/ubl-receipt-advice-accepted-rejected-shortage-partition?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ubl-receipt-advice-accepted-rejected-shortage-partition-f57068cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_io4rhMJN67fl8EPZhYbfA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ubl-receipt-advice-accepted-rejected-shortage-partition-f57068cf -d '<json body>'
```

Example prompt: We received a partial shipment against despatch line DL-001 (originally 100 units dispatched). The warehouse logged 80 units received, 10 of which were rejected. Can you partition this into accepted, rejected, short, and oversupply quantities?

## When to prefer this

Use this endpoint when you need to programmatically reconcile UBL-compliant despatch and receipt data into structured accepted/rejected/short/oversupply quantities, especially in procurement automation pipelines handling partial deliveries, warehouse intake, or ERP receipt advice generation.

## Known failure modes

- Missing required despatch_lines or receipts arrays returns a validation error
- Receipt referencing an unknown despatch_line ID causes a reconciliation error
- Quantities exceeding the maximum of 1,000,000,000 are rejected with schema validation failure
- Empty despatch_lines array (minItems:1 violated) returns a 400-level error
- Payment not provided or insufficient USDC results in 402 Payment Required

## How this service works

Separate accepted, rejected, short and excess quantities across partial receipts.

## Output

Returns a structured breakdown per despatch line including accepted, rejected, short (under-delivery), oversupply (excess), received, and despatched integer quantities — suitable for constructing a UBL Receipt Advice document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "receiptBalances"
   ],
   "properties": {
    "receiptBalances": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "despatch_lines",
        "receipts"
       ],
       "properties": {
        "receipts": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "id",
           "despatch_line",
           "received",
           "rejected"
          ],
          "properties": {
           "id": {
            "type": "string",
            "maxLength": 64
           },
           "received": {
            "type": "integer",
            "maximum": 1000000000,
            "minimum": 0
           },
           "rejected": {
            "type": "integer",
            "maximum": 1000000000,
            "minimum": 0
           },
           "despatch_line": {
            "type": "string",
            "maxLength": 64
           }
          },
          "additionalProperties": false
         },
         "maxItems": 64,
         "minItems": 0
        },
        "despatch_lines": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "id",
           "quantity"
          ],
          "properties": {
           "id": {
            "type": "string",
            "maxLength": 64
           },
           "quantity": {
            "type": "integer",
            "maximum": 1000000000,
            "minimum": 0
           }
          },
          "additionalProperties": false
         },
         "maxItems": 32,
         "minItems": 1
        }
       },
       "additionalProperties": false
      },
      "claim": {
       "anyOf": [
        {
         "type": "null"
        },
        {
         "type": "object",
         "required": [
          "lines"
         ],
         "properties": {
          "lines": {
           "type": "array",
           "items": {
            "type": "object",
            "required": [
             "accepted",
             "despatched",
             "id",
             "oversupply",
             "received",
             "rejected",
             "short"
            ],
            "properties": {
             "id": {
              "type": "string",
              "maxLength": 20000
             },
             "short": {
         
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ubl-receipt-advice-accepted-rejected-shortage-partition-f57068cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
