# HTTPay API Gateway: Swagger Petstore (PATCH)

> HTTPay API Gateway: Swagger Petstore (PATCH) is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Proxies PATCH requests to any path of the Swagger Petstore demo API through the HTTPay x402 micropayment gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/petstore/%7B*path%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-api-gateway-swagger-petstore-patch-4d1ffa8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mC19uoLFh1lc39vv-QtqF

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 httpay-api-gateway-swagger-petstore-patch-4d1ffa8a -d '<json body>'
```

Example prompt: Update the pet with ID 12345 in the Swagger Petstore demo — change its status to 'sold' — using the HTTPay paid gateway.

## When to prefer this

Choose this endpoint when you need to send PATCH (partial update) requests to the Swagger Petstore demo API through a micropayment-gated proxy, particularly when testing x402 payment protocol flows or building agents that need to interact with a well-known demo API behind a pay-per-call gateway. Prefer this over direct Petstore access when you want to test x402 payment handling in your workflow.

## Known failure modes

- Payment not included or insufficient — gateway rejects with 402 Payment Required
- Invalid path segment — Petstore returns 404 Not Found
- Malformed request body — Petstore returns 400 Bad Request
- Petstore demo API unavailable — gateway returns 502 Bad Gateway or timeout
- Unsupported content type — returns 415 Unsupported Media Type

## How this service works

API Gateway: Swagger Petstore demo

## Output

Returns the Petstore API's response to the PATCH request, which typically includes the updated resource object (e.g. a modified pet or order), HTTP status code, and any error messages if the update failed. The response mirrors what the underlying Swagger Petstore API would return directly.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-api-gateway-swagger-petstore-patch-4d1ffa8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
