Test a route's x402 payment behavior
test_x402_routeVerify x402 payment behavior by sending an unpaid test request to a route's paid URL, expecting a 402 Payment Required with a valid accepts[] offer.
Instructions
Send an unpaid test request to a route's paid URL and verify x402 behavior: expects 402 Payment Required with a valid accepts[] payment offer. Requires an Apiosk provider token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route_id | Yes | ||
| test_payload | No | Sent as query params for GET, JSON body otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||