PipRail icon

PipRail

Pay an x402 (HTTP 402) URL from a workflow - self-custody, EVM chains, no facilitator, no fee

Quote

AI-generated

Summary

Requests a URL through PipRail’s payment client and returns a quote when the server responds with HTTP 402, without making a payment. Returns null for URLs that are not payment-gated.

Inputs

  • url (required) — URL to fetch and, if it returns HTTP 402, inspect for payment terms.

Output shape

A single quote object when the URL responds with a payment challenge, or null when it does not.

The quote reports the payment terms and whether the configured spend policy would allow them. This operation does not move funds.

Links

Discussion