LedeWire SDK API Reference
    Preparing search index...

    Type Alias MerchantPricingRuleCreateRequest

    MerchantPricingRuleCreateRequest: paths["/v1/merchant/{store_id}/pricing_rules"]["post"]["requestBody"]["content"]["application/json"]

    Request body for creating a pricing rule: a glob url_pattern and the price_cents charged for access to matching URLs.

    Use https:// patterns. An http:// pattern means the merchant's page loads without TLS — browsers flag it as "Not Secure" and the buyer's session is visible in plaintext. The Ledewire payment API itself always uses HTTPS, but the merchant page context matters for user trust.

    Setting price_cents to 0 makes all matching URLs freely accessible — the x402 server short-circuits directly to 200 without a payment round-trip. Verify the intended price before creating a rule.