---
updatedAt: 2026-06-30T19:02:49.000Z
agentTools:
  projectIndex: https://docs.cfx.to/llms.txt
---

# Attach Recipient

Called after the recipient signs up to bind where the escrow releases to — their own wallet, or one of their ledger accounts — so the funds can be claimed. Runs inline: the 200 carries the status the write left behind (`RECIPIENT_SET`), and a party that does not resolve is answered here rather than failing out of sight. Repeating the same binding is a no-op 200.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Escrow Transfer API",
    "description": "Send funds to a recipient who may not yet have a Solana wallet. The recipient's wallet is attached after they sign up. Backs the legacy movemoney 'send to phone' flow.",
    "termsOfService": "http://cfxlabs.com/terms/",
    "contact": {
      "name": "API Owner",
      "url": "https://api.cfxlabs.net",
      "email": "api@cfxlabs.com"
    },
    "version": "v1",
    "summary": "CFX Escrow Transfer API"
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "name": "x-api-key",
        "type": "apiKey",
        "in": "header"
      },
      "ApiSecretAuth": {
        "name": "x-api-secret",
        "type": "apiKey",
        "in": "header"
      }
    }
  },
  "paths": {
    "/v1/escrow-transfers/{id}/recipient": {
      "post": {
        "summary": "Attach Recipient",
        "tags": [
          "Escrow Transfers"
        ],
        "description": "Called after the recipient signs up to bind where the escrow releases to — their own wallet, or one of their ledger accounts — so the funds can be claimed. Runs inline: the 200 carries the status the write left behind (`RECIPIENT_SET`), and a party that does not resolve is answered here rather than failing out of sight. Repeating the same binding is a no-op 200.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "recipientId",
                  "destination"
                ],
                "properties": {
                  "recipientId": {
                    "type": "string",
                    "description": "Customer-scoped id of the newly-onboarded recipient"
                  },
                  "destination": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "address"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "WALLET"
                            ]
                          },
                          "address": {
                            "type": "string",
                            "description": "Solana public key (base58)",
                            "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                            "example": "7EqQdEULxWcraVx3mXKFjc84LhCkMGZCkRuDpvcMwJeK"
                          }
                        },
                        "title": "Wallet"
                      },
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "id"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "LEDGER_ACCOUNT"
                            ]
                          },
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "description": "Ledger account external id (redwal_…)",
                            "example": "redwal_RD2of9vs3XFodUSd8T5hW"
                          }
                        },
                        "title": "Ledger Account"
                      }
                    ],
                    "description": "A self-custody Solana wallet, or one of the party identity's own ledger accounts."
                  },
                  "claimUrl": {
                    "type": "string",
                    "description": "URL the recipient is sent to claim the transfer; shortened and embedded in the recipient SMS.",
                    "format": "uri"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "id",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "header",
            "name": "Idempotency-Key",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "PENDING",
                        "CREATED",
                        "RECIPIENT_SET",
                        "CLAIMED",
                        "CANCELLED",
                        "REJECTED",
                        "EXPIRED",
                        "FAILED"
                      ],
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_REQUEST",
                        "USE_LEDGER_ACCOUNT",
                        "LEDGER_ACCOUNT_TOKEN_UNSUPPORTED"
                      ],
                      "description": "- `INVALID_REQUEST`: The service cannot understand the request\n- `USE_LEDGER_ACCOUNT`: The wallet address belongs to a ledger account — name it as a LEDGER_ACCOUNT party\n- `LEDGER_ACCOUNT_TOKEN_UNSUPPORTED`: A ledger account settles MOVEUSD only — name a wallet party for any other token"
                    },
                    "message": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The access to this resource has been denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "UNAUTHORIZED"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "UNAUTHORIZED",
                  "description": "The access to this resource has been denied"
                }
              }
            }
          },
          "403": {
            "description": "The named ledger account is admin-only",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "LEDGER_ACCOUNT_NOT_DEBITABLE"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "LEDGER_ACCOUNT_NOT_DEBITABLE",
                  "description": "The named ledger account is admin-only"
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "NOT_FOUND",
                        "TOKEN_NOT_FOUND",
                        "INVALID_LEDGER_ACCOUNT"
                      ],
                      "description": "- `NOT_FOUND`: The resource was not found\n- `TOKEN_NOT_FOUND`\n- `INVALID_LEDGER_ACCOUNT`: The named ledger account is not this identity's"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "IDEMPOTENCY_IN_PROGRESS",
                        "INVALID_STATUS_TRANSITION",
                        "RECIPIENT_ALREADY_BOUND"
                      ],
                      "description": "- `IDEMPOTENCY_IN_PROGRESS`: An identical request (the same Idempotency-Key, or on a keyless v1 money route the same body) is still executing. Wait for Retry-After seconds and send the same request unchanged; the retry returns the first request's response. Do not change the body or treat this as a failure.\n- `INVALID_STATUS_TRANSITION`\n- `RECIPIENT_ALREADY_BOUND`"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Another request with this idempotency key was made using a different body",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "IDEMPOTENCY_KEY_REUSED"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "IDEMPOTENCY_KEY_REUSED",
                  "description": "Another request with this idempotency key was made using a different body"
                }
              }
            }
          },
          "default": {
            "description": "Catch-all error response for any unexpected internal errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INTERNAL"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "An unexpected internal error has occurred"
                      ]
                    }
                  },
                  "title": "INTERNAL",
                  "description": "Catch-all error response for any unexpected internal errors"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.dev.cfx.to",
      "description": "Customer Sandbox"
    },
    {
      "url": "https://api.cfx.to",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": [],
      "ApiSecretAuth": []
    }
  ],
  "tags": [
    {
      "name": "Escrow Transfers",
      "description": "Create, fund, claim, reject, and cancel escrow transfers across their lifecycle."
    }
  ],
  "externalDocs": {
    "description": "Find out more about CFX",
    "url": "https://www.cfxlabs.com/"
  }
}
```