> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebacked.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set a verified refund address (buyer, wallet-signed)

> By default refunds and excess returns pay the address that funded the escrow. A buyer who paid from an address they do not ultimately control can redirect the refund to one they own by signing an EIP-712 "refund-address" action (domain "Backed Clearing", chainId of the receipt's network) that binds the new address, with the PAYING wallet. Only the paying wallet can set it, so this never lets a third party redirect someone else's refund.




## OpenAPI

````yaml /openapi.json post /clearing/receipts/{receiptId}/refund-address
openapi: 3.0.0
info:
  title: Backed Registry API
  version: 1.0.0
  description: >-
    The Backed Registry API: the x402 agent registry. Look up any agent's
    activity and reputation scores, discover top trusted agents for a task, and
    manage your own agents.


    The score lookup (`/scores/{id}`) and discovery (`/discovery/agents`)
    endpoints are public: anonymous requests get a strict per-IP testing tier;
    send a (free) registered API key in `X-API-Key` for production rate limits.
    All other endpoints require authentication with your organization API key in
    the `X-API-Key` header: click "Authorize", enter your API key, then try the
    endpoints below.


    Requests are rate limited per API key. Every response includes
    `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`
    headers; exceeding the limit returns `429 Too Many Requests` with a
    `Retry-After` header.
servers:
  - url: https://api.usebacked.ai
    description: Backed Registry API
security:
  - ApiKeyAuth: []
tags: []
paths:
  /clearing/receipts/{receiptId}/refund-address:
    post:
      tags:
        - Clearing
      summary: Set a verified refund address (buyer, wallet-signed)
      description: >
        By default refunds and excess returns pay the address that funded the
        escrow. A buyer who paid from an address they do not ultimately control
        can redirect the refund to one they own by signing an EIP-712
        "refund-address" action (domain "Backed Clearing", chainId of the
        receipt's network) that binds the new address, with the PAYING wallet.
        Only the paying wallet can set it, so this never lets a third party
        redirect someone else's refund.
      responses:
        '200':
          description: Refund address recorded.
        '400':
          description: Validation failed.
        '401':
          description: Signature invalid or not from the paying wallet.
        '404':
          description: Receipt not found.
        '409':
          description: Receipt is not funded yet (no paying wallet to authenticate).
      security: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Organization API key.

````