# x402 Vending Machine – Buy Status

> x402 Vending Machine – Buy Status is a paid API for AI agents from vending-machine.heurist.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Check the status of a token purchase transaction by reference ID, returning whether it succeeded or is still pending.

## Facts

- Endpoint: POST https://vending-machine.heurist.xyz/x402/buy_status?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-vending-machine-buy-status-be5c5757
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hEo1d7FPqwxh8riQI87vc

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 x402-vending-machine-buy-status-be5c5757 -d '<json body>'
```

Example prompt: Can you check the status of my token purchase on the Heurist vending machine? The reference ID from my buy transaction is ref_abc123xyz.

## When to prefer this

Use this endpoint immediately after calling a buy endpoint on the Heurist vending machine to confirm whether the purchase completed. It is the dedicated status-check companion to the buy endpoints on the same host and is the correct tool when you already have a reference ID and need to know the outcome.

## Known failure modes

- Invalid or unknown reference ID returns an error or empty result
- Transaction still pending returns a non-final status requiring further polling
- Network or server errors return 5xx responses
- Malformed request body (missing 'reference' field) returns a validation error

## How this service works

Check the status of a purchase transaction.

## Output

Returns the current status of a purchase transaction — indicating whether it succeeded, is pending, or failed — based on the reference ID provided from a prior buy call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "reference"
 ],
 "properties": {
  "reference": {
   "type": "string",
   "description": "The reference ID returned from the buy endpoint"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-vending-machine-buy-status-be5c5757/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine.heurist.xyz](https://www.zero.xyz/host/vending-machine.heurist.xyz/llms.txt)
