Skip to content
HALOWERK

Denkwerk

payment id tool

Implements the x402 payment-identifier extension: generates identifiers (prefix plus random UUID v4 without dashes), validates given ids against the 16–128 character rule with alphanumerics, hyphens and underscores, returns the PaymentRequired advertisement and the PaymentPayload echo snippets, and decides the server reaction for pairs of submissions (new id, same id with same payload returns the cached response, same id with a different payload returns 409, missing id when required returns.

POST https://denk.halowerk.com/v1/payment-id-tool

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
generateintegerNo
prefixstringNo
validatearrayNo
requiredbooleanNo
submissionsarrayNoSequence of submissions to classify for idempotency.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "generate": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20,
      "default": 0
    },
    "prefix": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{0,20}$",
      "default": "pay_"
    },
    "validate": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "maxLength": 300
      }
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "submissions": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "payload": {}
        }
      },
      "description": "Sequence of submissions to classify for idempotency."
    }
  }
}

Open original schema

Published input example

{
  "generate": 2,
  "validate": [
    "pay_7d5d747be160e280504c099d984bcfe0",
    "short"
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →