# Mint Buyer Account Link Code

> Mint Buyer Account Link Code is a paid API for AI agents from memory.withzero.xyz, paid per call via MPP, metered — billed by usage, status unknown (last checked 2026-09-14, last successful call 2026-07-29).

Generates a single-use, 10-minute expiring code that links another purchasing channel to the current buyer account on memory.withzero.xyz.

## Facts

- Endpoint: POST https://memory.withzero.xyz/api/v1/buyer/link-codes
- Price: metered — billed by usage
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-29
- Success rate: 100% of calls made through Zero
- Activations on Zero: 3
- Provider: memory.withzero.xyz
- Website: https://memory.withzero.xyz
- Canonical page: https://www.zero.xyz/c/memory-withzero-xyz-mint-buyer-account-link-code-9f159b1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a0oR2Uo819kaAcKMGvMvh

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 memory-withzero-xyz-mint-buyer-account-link-code-9f159b1b -d '<json body>'
```

Example prompt: Mint a link code for my memory.withzero.xyz buyer account so I can connect another purchasing channel to it — I need the one-time code and when it expires.

## When to prefer this

Use this endpoint when you need to unify multiple purchasing channels under a single buyer account on memory.withzero.xyz — for example, when an agent operates across different payment contexts (e.g., different wallets or platforms) and needs memory billing consolidated. This is specifically for account linking initiation; the counterpart redemption endpoint handles consuming the code.

## Known failure modes

- Authentication failure: caller is not recognized as a valid buyer, returns 401
- Rate limiting: too many link codes minted in short succession, returns 429
- Service unavailable: memory backend unreachable, returns 503
- Expired code used on redemption endpoint: code is only valid for 10 minutes from minting

## How this service works

Mint a single-use code (10 min) that links another purchasing channel to this buyer account.

## Output

Returns a JSON object containing a single-use link code string, the associated buyer_id, and an expires_at timestamp (valid for 10 minutes). The agent can pass this code to another channel's link-code redemption endpoint to merge that channel into the same buyer account.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {},
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "code",
  "expires_at",
  "buyer_id"
 ],
 "properties": {
  "code": {
   "type": "string"
  },
  "buyer_id": {
   "type": "string"
  },
  "expires_at": {
   "type": "string"
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/memory-withzero-xyz-mint-buyer-account-link-code-9f159b1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from memory.withzero.xyz](https://www.zero.xyz/host/memory.withzero.xyz/llms.txt)
