Skip to content

Look up the FeitPay account behind a username

GET
/v1/transfer-recipient
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.

FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

FeitPay-Environment
string
default: test
Allowed values: test live

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.

handle
required
string
<= 40 characters

The username, with or without @.

asset
string
<= 40 characters

The coin account to send from (asset key).

The account behind the username.

Media typeapplication/json
object
object
required
string
Allowed value: transfer_recipient
handle
required

A FeitPay username without the @ (shown as @handle).

string
/^[a-z0-9._]{3,30}$/
display_name
required

The receiving organization’s name, for the sender to confirm.

string
can_receive
required

A transfer of the asset asked for can be sent to this account now.

boolean
reason
required

Why it cannot receive: self (this is your own account) or account_unavailable (the account cannot receive transfers in this mode right now).

string | null
Allowed values: self account_unavailable
fee_bps

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.

integer
<= 10000
fee_rate

The same fee as a percentage.

string

Example

{
"object": "transfer_recipient",
"handle": "loja.aurora",
"reason": "self",
"fee_rate": "0%"
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

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.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Resource not found (or not visible to this tenant).

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Validation failed.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Too many requests. See Retry-After.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

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.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}
Retry-After
integer