77trust / 100

Returns Rules

by ort.halowerk.com in Onchain & crypto

x402 APIPassing, checked 6 h ago

Compute the consumer withdrawal (return) period and refund deadlines under German law (§§ 312g, 355, 356, 357 BGB): start, end with § 193 shift, late or missing instructions, exceptions, return costs. Text basis: BGB as published on gesetze-im-internet.de (retrieved 2026-11-01). Right of withdrawal for distance and off-premises contracts (§ 312g Abs. 1) unless one of the 13 exceptions of § 312g Abs. 2 applies.

POST
https://ort.halowerk.com/v1/returns-rules
Price
$0.003
per call in USDC
Uptime
95.7%
last 30 days
Response time
125 ms
175 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://ort.halowerk.com/v1/returns-rules

Each call costs $0.003 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://ort.halowerk.com/v1/returns-rules
content-type: application/json

{
  "contract_date": "2026-10-30",
  "contract_type": "goods",
  "receipt_date": "2026-11-02"
}

Parameters

ParameterTypeRequiredDescription
conclusionanyNo One of: distance, off_premises. Default: "distance".
consumer_stateanyNoGerman state of the consumer, for regional holidays under § 193. One of: BB, BE, BW, BY, HB, HE, HH, MV, NI, NW, RP, SH.
contract_datestringYes
contract_typeanyYesgoods_separate_deliveries: several goods of one order delivered separately; goods_partial_shipments: one good in several parts; digital_content: not on a physical medium. One of: goods, goods_separate_deliveries, goods_partial_shipments, goods_subscription, services, digital_content.
exceptionanyNo§ 312g Abs. 2 Nr. 1-13 if one applies. One of: custom_made, perishable, sealed_hygiene_unsealed, inseparably_mixed, alcohol_market_price, sealed_media_unsealed, newspapers, financial_market, dated_leisure_service, public_auction, urgent_repairs, betting_lottery.
information_datestringNoRequired when withdrawal_information is "later".
online_interfacebooleanNoContract concluded via an online user interface (§ 356a). Default: false.
receipt_datestringNoDate the consumer (or a named third person, not the carrier) received the goods – the last item/part, or the first item for subscriptions.
return_costs_informedbooleanNoConsumer was informed that they bear the direct return costs. Default: true.
trader_offers_pickupbooleanNo Default: false.
trader_pays_returnbooleanNo Default: false.
withdrawal_informationanyNo One of: at_conclusion, later, never. Default: "at_conclusion".
withdrawal_received_datestringNo
withdrawal_sent_datestringNo

Example response

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

Example response, 48 lines
{
  "limitations": [
    "Information based on the statutory text, not legal advice; special rules (financial services, consumer credit, timeshare) are not covered.",
    "Whether § 193 BGB applies to the 12-month expiry is not settled; the shifted and unshifted dates are both returned."
  ],
  "result": {
    "contract_type": "goods",
    "holidays": {
      "country": "DE",
      "source": "date-holidays 3.x, public holidays only",
      "state": null
    },
    "latest_expiry": "2027-11-16",
    "period": {
      "end": "2026-11-16",
      "end_unshifted": "2026-11-16",
      "information": "Compliant withdrawal information given at conclusion.",
      "legal_basis": [
        "§ 356 Abs. 2 Nr. 1 a",
        "§ 355 Abs. 2",
        "§§ 187 Abs. 1, 188 Abs. 1",
        "§ 193"
      ],
      "period_begins": "2026-11-03",
      "section_193_shift": false,
      "shift_reasons": [],
      "start_event": "receipt of the goods",
      "start_event_date": "2026-11-02"
    },
    "refund": {
      "includes_standard_delivery_costs": true,
      "rule_delivery": "§ 357 Abs. 2 (not extra costs of a more expensive delivery chosen by the consumer)",
      "rule_withhold": "§ 357 Abs. 4",
      "same_payment_method": "§ 357 Abs. 3",
      "trader_may_withhold_until_goods_or_proof_of_dispatch": true
    },
    "return_costs": {
      "borne_by": "consumer",
      "rule": "§ 357 Abs. 5: the consumer bears the direct return costs only if informed and the trader did not agree to bear them"
    },
    "source": {
      "text": "BGB, https://www.gesetze-im-internet.de/bgb/ (retrieved 2026-11-01)"
    },
    "withdrawal_right": true
  },
  "service": "returns-rules",
  "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.003.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://ort.halowerk.com/v1/returns-rules' \
  -H 'content-type: application/json' \
  --data-raw '{"contract_date":"2026-10-30","contract_type":"goods","receipt_date":"2026-11-02"}'

# 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://ort.halowerk.com/v1/returns-rules' \
  -H 'content-type: application/json' \
  --data-raw '{"contract_date":"2026-10-30","contract_type":"goods","receipt_date":"2026-11-02"}' \
  | 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.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
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.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fort.halowerk.com%2Fv1%2Freturns-rules&method=POST
const res = await pay("https://ort.halowerk.com/v1/returns-rules", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "contract_date": "2026-10-30",
    "contract_type": "goods",
    "receipt_date": "2026-11-02"
  }),
});
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.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://ort.halowerk.com/v1/returns-rules",
        json={
            "contract_date": "2026-10-30",
            "contract_type": "goods",
            "receipt_date": "2026-11-02",
        },
    )
    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 agoPassed402125 ms$0.003
20 h agoPassed402175 ms$0.003
3 days agoTimed out---
4 days agoPassed402125 ms$0.003
5 days agoPassed402118 ms$0.003
Show 10 older checks
5 days agoPassed40240 ms$0.003
5 days agoPassed40241 ms$0.003
6 days agoPassed402119 ms$0.003
6 days agoPassed40255 ms$0.003
6 days agoPassed402152 ms$0.003
7 days agoPassed402125 ms$0.003
7 days agoPassed402131 ms$0.003
7 days agoPassed402116 ms$0.003
8 days agoPassed402167 ms$0.003
8 days agoPassed402130 ms$0.003