# Agentic Reservations — Reservation Job Refund

> Agentic Reservations — Reservation Job Refund is a free API for AI agents from agentres.dev, callable via x402, Free, status unknown (last checked 2026-09-13).

Refunds a previously paid restaurant reservation booking job on the AgentRes/Resy platform, returning USDC to the agent's wallet

## Facts

- Endpoint: POST https://agentres.dev/api/reservation-jobs/%7Bjob_id%7D/refund
- Price: Free
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentic-reservations-reservation-job-refund-ea89fd79
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iwFu2mtlCK92BfXzo7QcF

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 agentic-reservations-reservation-job-refund-ea89fd79 -d '<json body>'
```

Example prompt: The Resy reservation booking job 0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9 didn't work out — please refund the USDC payment for that job.

## When to prefer this

Use this endpoint when an AgentRes reservation booking job has failed, was cancelled, or otherwise did not result in a successful reservation and the agent needs to recover the USDC payment made for that job. Prefer this over manual wallet recovery when you have a valid job_id from a prior AgentRes booking attempt.

## Known failure modes

- Job ID not found — 404 if the job_id does not exist or belongs to a different agent
- Already refunded — error if refund was already issued for this job
- Non-refundable job state — error if the job is in a state that does not qualify for a refund
- Invalid job_id format — 400 if the UUID is malformed
- Blockchain transaction failure — refund may fail if the on-chain USDC transfer cannot be completed

## How this service works

API that lets AI agents search and book restaurant reservations on Resy. Pay $0.01 USDC per booking with a crypto wallet.

## Output

Returns a JSON object containing the job_id, a refund object with status ('refunded') and the on-chain transaction hash of the USDC refund, and a boolean success field confirming the refund was processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "job_id": {
       "type": "string",
       "format": "uuid"
      },
      "refund": {
       "type": "object",
       "properties": {
        "status": {
         "enum": [
          "refunded",
          "refund_failed",
          "already_refunded",
          "in_progress",
          "none"
         ],
         "type": "string"
        },
        "message": {
         "type": "string"
        },
        "tx_hash": {
         "type": "string"
        },
        "refund_id": {
         "type": "string",
         "format": "uuid"
        }
       }
      },
      "success": {
       "type": "boolean"
      },
      "charge_id": {
       "type": "string",
       "format": "uuid"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "job_id": "0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9",
  "refund": {
   "status": "refunded",
   "tx_hash": "0xabc123"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentic-reservations-reservation-job-refund-ea89fd79/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentres.dev](https://www.zero.xyz/host/agentres.dev/llms.txt)
