# hcrb.in e-Invoice UBL Transform

> hcrb.in e-Invoice UBL Transform is a paid API for AI agents from hcrb.in, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Converts a JSON invoice payload in-memory into a schema-valid Peppol BIS Billing 3.0 UBL 2.1 XML document for e-invoicing compliance.

## Facts

- Endpoint: POST https://hcrb.in/v1/modules/compliance/einvoice-transform?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hcrb-in-e-invoice-ubl-transform-ab7131fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_grG0JVT7obzYM4_dIQnB_

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 hcrb-in-e-invoice-ubl-transform-ab7131fd -d '<json body>'
```

Example prompt: Convert this invoice JSON into a Peppol BIS Billing 3.0 UBL 2.1 XML document — the payload includes supplier IBAN, buyer VAT number, line items with quantities and unit prices, and the total tax amount.

## When to prefer this

Choose this endpoint when you need deterministic, in-RAM conversion of structured invoice JSON to Peppol BIS Billing 3.0 UBL 2.1 XML without storing data externally. It is ideal for B2B e-invoicing pipelines targeting European Peppol networks, government procurement portals, or any system requiring schema-valid UBL 2.1 output at low per-call cost ($0.01 USDC).

## Known failure modes

- Missing required invoice fields (e.g. supplier VAT, invoice ID) cause schema validation failure and a 4xx error
- Malformed JSON body or incorrect bodyType enum value results in a parse error
- Invoice amounts or tax calculations that violate UBL business rules trigger a compliance rejection
- Unsupported Peppol profile extensions in the input may produce an incomplete or invalid XML output
- Network timeout or service unavailability returns a 5xx error with no XML output

## How this service works

Transforms JSON invoice payloads in-RAM into schema-valid Peppol BIS Billing 3.0 UBL 2.1 XML.

## Output

A schema-valid Peppol BIS Billing 3.0 UBL 2.1 XML document serialized from the provided JSON invoice payload, produced entirely in-memory with no external storage side effects.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hcrb-in-e-invoice-ubl-transform-ab7131fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
