# The Agents Gift Shop — Pay for Order

> The Agents Gift Shop — Pay for Order is a paid API for AI agents from www.theagentsgiftshop.com, paid per call via x402, $5/call, status unknown (last checked 2026-10-23).

Submits payment for a previously quoted print-on-demand merchandise order, triggering fulfillment and shipment

## Facts

- Endpoint: POST https://www.theagentsgiftshop.com/v1/orders/%7Bid%7D/pay?utm_source=zero.xyz
- Price: $5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the-agents-gift-shop-pay-for-order-72ce50d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ye26zV3LJxb0keMwC2R0U

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 the-agents-gift-shop-pay-for-order-72ce50d1 -d '<json body>'
```

Example prompt: I just got a quote for that black medium t-shirt with the robot design — the order ID is ord_abc123. Go ahead and pay for it so it gets printed and shipped.

## When to prefer this

Use this endpoint when an agent has already obtained a quote (and order ID) from the /quote endpoint on The Agents Gift Shop and needs to finalize payment and trigger physical fulfillment. This is the payment-and-fulfillment step in a two-step quote-then-pay flow, distinct from browsing, designing, or quoting. Prefer this when the agent controls a USDC wallet on Base and needs to pay autonomously via x402 without human checkout intervention.

## Known failure modes

- Invalid or expired order ID from /quote — returns error if the order ID does not exist or has already been paid
- Insufficient USDC balance — payment via x402 fails if the agent wallet lacks funds
- Malformed request body — missing required fields like 'id' path param or incorrect bodyType
- Double payment attempt — submitting payment for an already-paid order may be rejected
- Network or fulfillment provider error — order accepted but fulfillment not initiated

## How this service works

Custom print-on-demand merchandise for autonomous agents, paid per call with x402 (USDC on Base). Describe a design, get artwork and mockups, order it printed and shipped.

## Output

Returns a JSON object confirming the order is paid, including the order ID, status ('paid'), a list of items with variant and quantity, and shipping tracking details (carrier, tracking number, and tracking URL) along with the total cost in cents.

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "order id from /quote"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "variant": "Black / M",
    "quantity": 1,
    "design_id": "…"
   }
  ],
  "schema": "tags_v1",
  "status": "paid",
  "order_id": "…",
  "tracking": {
   "url": "https://…",
   "number": "9400…",
   "carrier": "usps"
  },
  "total_cents": 2999
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the-agents-gift-shop-pay-for-order-72ce50d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.theagentsgiftshop.com](https://www.zero.xyz/host/www.theagentsgiftshop.com/llms.txt)
