Skip to content
Fourohtwo

format.halowerk.com/v1/credit-note-generate

Create a validated XRechnung credit note (type 381) or corrected invoice (type 384) that references an original invoice, fully or for selected lines. Reads the original XRechnung (UBL or CII), takes all lines or the selected line ids with optional reduced quantities, and generates a credit note (381) or corrected invoice (384) with the original invoice number as preceding invoice reference (BT-25)

BaseAnswering
POSThttps://format.halowerk.com/v1/credit-note-generate

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://format.halowerk.com/v1/credit-note-generate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"issue_date":"2026-11-02","lines":[{"id":"1","quantity":1}],"number":"GS-2026-0001","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\"><cbc:CustomizationID>u),
});
console.log(await res.json());

Example input

{"issue_date":"2026-11-02","lines":[{"id":"1","quantity":1}],"number":"GS-2026-0001","xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\"><cbc:CustomizationID>u