# Forest Commerce Checkout Preflight

> Forest Commerce Checkout Preflight is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Validates whether an isolated cart with a given product URL, variant, and quantity can reach checkout, exposing any blockers without placing an order or processing payment.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/commerce/checkout-preflight?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-commerce-checkout-preflight-8c0ebba4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XBm0KztiWZ35Uvp0dIISn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forest-commerce-checkout-preflight-8c0ebba4 -d '<json body>'
```

Example prompt: Before I try to buy 3 units of variant 'ABC-123' from https://shop.example.com/product/widget, can you do a checkout preflight check to see if there are any blockers that would stop it from reaching checkout?

## When to prefer this

Use this endpoint when you need to validate checkout reachability for a specific product, variant, and quantity before committing to a purchase — especially in automated shopping agents where placing a failed order would be costly. Prefer this over a full checkout flow when you want zero side effects: no login, no order creation, no payment. Ideal for pre-purchase validation steps in agentic workflows or for surfacing checkout blockers early.

## Known failure modes

- Invalid or unreachable product URL returns an error indicating the URL could not be resolved
- Variant ID not found on the product returns a blocker or not-found error
- Quantity exceeding provider maximum (>100) is rejected by input validation
- Provider blocks headless/bot cart creation, resulting in an indeterminate or error status
- Network timeout reaching the product URL returns a timeout error

## How this service works

Check whether an isolated cart can reach checkout and expose blockers without payment. It never logs in, creates an order or finalizes checkout. Base mainnet USDC

## Output

Returns whether the isolated cart can reach checkout, along with a list of any blockers (e.g. quantity limits exceeded, variant unavailable, region restrictions) preventing checkout. Does not log in, create an order, or finalize payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?://",
   "maxLength": 2048,
   "description": "Public HTTP(S) URL to inspect, resolve, or compare."
  },
  "quantity": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Requested item quantity to validate against provider limits."
  },
  "variant_id": {
   "type": "string",
   "description": "Public provider variant identifier to validate."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-commerce-checkout-preflight-8c0ebba4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
