76trust / 100

Withdrawal Deadline

by rechen.halowerk.com in Onchain & crypto

x402 APIPassing, checked 6 h ago

Consumer withdrawal deadline for distance and off-premises contracts (§§ 355, 356 BGB): start per goods, partial or separate deliveries, subscriptions, services, digital content; 12-month cap.

POST
https://rechen.halowerk.com/v1/withdrawal-deadline
Price
$0.002
per call in USDC
Uptime
91.7%
last 30 days
Response time
122 ms
172 ms slowest 5%
Last check
Passed
6 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://rechen.halowerk.com/v1/withdrawal-deadline

Each call costs $0.002 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://rechen.halowerk.com/v1/withdrawal-deadline
content-type: application/json

{
  "contract_date": "2026-04-05",
  "contract_type": "goods_partial_shipments",
  "deliveries": [
    "2026-04-10",
    "2026-04-17"
  ],
  "state": "BE"
}

Parameters

ParameterTypeRequiredDescription
contract_datestring (date)Yes
contract_typestringYes One of: goods_single, goods_multiple_separate, goods_partial_shipments, goods_regular_delivery, services, digital_content, utilities.
deliveriesarray of string (date)No
information_datestring (date)No
informedbooleanNo Default: true.
regionstringNo One of: A, KATH, EVANG, BZ, EIC, UH, WAK.
statestringNo One of: BB, BE, BW, BY, HB, HE, HH, MV, NI, NW, RP, SH.

Example response

The provider's example. We can't check it without paying.

Example response, 56 lines
{
  "limitations": [
    "Information computed from the statutory wording and stated conventions; not legal or tax advice.",
    "Contracts, collective agreements, court orders or special statutes can set other periods; check the individual case.",
    "Holidays come from the date-holidays package (type public); municipal holidays need the region parameter.",
    "Exceptions without withdrawal right (§ 312g(2) BGB), early expiry for services and digital content (§ 356(5), (6) BGB) and financial services are not evaluated."
  ],
  "result": {
    "cap_end": "2027-05-03",
    "cap_end_raw": "2027-05-01",
    "contract_type": "goods_partial_shipments",
    "deadline": "2026-05-04",
    "deadline_basis": "period_14_days",
    "deadline_weekday": "Monday",
    "holiday_basis": {
      "region": null,
      "scope": "state-wide holidays",
      "source": "date-holidays 3.38.0 (https://github.com/commenthol/date-holidays, ISC licence, holiday data CC BY-SA 3.0); type \"public\" only",
      "state": "BE"
    },
    "informed": true,
    "notes": [
      "Timely dispatch of the withdrawal is sufficient (§ 355(1) sentence 5 BGB)."
    ],
    "period_end": "2026-05-04",
    "period_end_raw": "2026-05-01",
    "period_starts_after": "2026-04-17",
    "shift_steps": [
      {
        "date": "2026-05-01",
        "reason": "public holiday Maifeiertag (Labour Day)",
        "weekday": "Friday"
      },
      {
        "date": "2026-05-02",
        "reason": "Saturday",
        "weekday": "Saturday"
      },
      {
        "date": "2026-05-03",
        "reason": "Sunday",
        "weekday": "Sunday"
      }
    ],
    "shifted": true,
    "steps": [
      "Start event: § 356(2) no. 1 c BGB: receipt of the last partial shipment or piece on 2026-04-17.",
      "§ 355(2), § 187(1), § 188(1) BGB: 14 days after 2026-04-17 = 2026-05-01.",
      "§ 193 BGB: 2026-05-01 is not a working day; the period ends on 2026-05-04."
    ],
    "trigger_date": "2026-04-17",
    "trigger_norm": "§ 356(2) no. 1 c BGB: receipt of the last partial shipment or piece"
  },
  "service": "withdrawal-deadline",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://rechen.halowerk.com/v1/withdrawal-deadline' \
  -H 'content-type: application/json' \
  --data-raw '{"contract_date":"2026-04-05","contract_type":"goods_partial_shipments","deliveries":["2026-04-10","2026-04-17"],"state":"BE"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://rechen.halowerk.com/v1/withdrawal-deadline' \
  -H 'content-type: application/json' \
  --data-raw '{"contract_date":"2026-04-05","contract_type":"goods_partial_shipments","deliveries":["2026-04-10","2026-04-17"],"state":"BE"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Frechen.halowerk.com%2Fv1%2Fwithdrawal-deadline&method=POST
const res = await pay("https://rechen.halowerk.com/v1/withdrawal-deadline", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "contract_date": "2026-04-05",
    "contract_type": "goods_partial_shipments",
    "deliveries": [
      "2026-04-10",
      "2026-04-17"
    ],
    "state": "BE"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://rechen.halowerk.com/v1/withdrawal-deadline",
        json={
            "contract_date": "2026-04-05",
            "contract_type": "goods_partial_shipments",
            "deliveries": [
                "2026-04-10",
                "2026-04-17",
            ],
            "state": "BE",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402127 ms$0.002
16 h agoPassed402151 ms$0.002
31 h agoTimed out---
4 days agoTimed out---
5 days agoPassed402115 ms$0.002
Show 10 older checks
5 days agoPassed402126 ms$0.002
5 days agoPassed402116 ms$0.002
6 days agoPassed402115 ms$0.002
6 days agoPassed402122 ms$0.002
6 days agoPassed402178 ms$0.002
7 days agoPassed402149 ms$0.002
7 days agoPassed402129 ms$0.002
7 days agoPassed402172 ms$0.002
8 days agoPassed402123 ms$0.002
8 days agoPassed402132 ms$0.002