Look up the FeitPay account behind a username
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/transfer-recipient?handle=example"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("FeitPay-Environment", "test") req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/transfer-recipient?handle=example';const options = { method: 'GET', headers: {'FeitPay-Environment': 'test', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.feitpay.com/v1/transfer-recipient?handle=example' \ --header 'Authorization: Bearer <token>' \ --header 'FeitPay-Environment: test'Before sending a transfer: the display name behind @handle (so the sender can confirm it) and whether it can receive asset now. Nothing else about the account is returned (no members, ids or balances). Limited per member or API key (rate_limited with Retry-After) so usernames cannot be enumerated. An unknown username is recipient_not_found.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
test (default) or live for dashboard sessions. API keys determine the environment. Until the platform is in production, configuration (stores, webhook endpoints, payment links) is live and money movement answers payments_not_enabled.
Query Parameters
Section titled “Query Parameters”The username, with or without @.
The coin account to send from (asset key).
Responses
Section titled “Responses”The account behind the username.
object
A FeitPay username without the @ (shown as @handle).
The receiving organization’s name, for the sender to confirm.
A transfer of the asset asked for can be sent to this account now.
Why it cannot receive: self (this is your own account) or account_unavailable (the account cannot receive transfers in this mode right now).
FeitPay’s transfer fee a transfer sent now pays, in basis points of the amount (0 by default); the recipient gets amount − ceil(amount × fee_bps / 10000) in base units.
The same fee as a percentage.
Example
{ "object": "transfer_recipient", "handle": "loja.aurora", "reason": "self", "fee_rate": "0%"}Missing or invalid credentials.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Resource not found (or not visible to this tenant).
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Validation failed.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}