Skip to content

Register a watch-only wallet

POST
/v1/wallets
curl --request POST \
--url https://api.feitpay.com/v1/wallets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'FeitPay-Environment: test' \
--data '{ "store_id": "example", "network_id": "example", "label": "example", "mode": "simulated", "xpub": "example", "gap_limit": 20 }'

Accepts an extended public key (xpub mode) — never a seed phrase or private key. Honors Idempotency-Key (replays return the original response for 24 h).

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.

Idempotency-Key
string
<= 255 characters

Unique key per logical create operation (max 255 chars). Replays return the original response; reuse with a different body returns idempotency_error.

Media typeapplication/json
object
store_id
required
string
network_id
required
string
label
required
string
>= 1 characters <= 80 characters
mode
required
string
Allowed values: simulated xpub
xpub

Extended PUBLIC key: a BIP84 account key (xpub/zpub) for Bitcoin, or the account-level key for EVM (m/44’/60’/0’) and TRON (m/44’/195’/0’). Never send private keys.

string
<= 200 characters
gap_limit
integer
default: 20 >= 1 <= 1000

Registered (watch-only).

Media typeapplication/json
object
id
required
string
object
required
string
Allowed value: wallet
livemode
required
boolean
store_id
required
string
network_id
required
string
label
required
string
mode
required
string
Allowed values: simulated xpub
address_type
required
string
Allowed values: p2wpkh evm tron simulated
xpub_fingerprint
required
string | null
derivation_template
required
string | null
status
required
string
Allowed values: active disabled
next_index
required
integer
gap_limit
required
integer
last_used_index
required
integer | null
ownership
required
object
status
required
string
Allowed values: unverified pending verified failed expired sandbox_fixture
verified_at
required
string | null format: date-time
created_at
required
string format: date-time

Example

{
"object": "wallet",
"mode": "simulated",
"address_type": "p2wpkh",
"status": "active",
"ownership": {
"status": "unverified"
}
}

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"
}
}

Feature not available for this account or deployment (feature_unavailable_error), e.g. payments_not_enabled (live payments have not started on the platform), live_mode_disabled, live_keys_disabled, test_mode_disabled, payment_method_unavailable.

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"
}
}

State conflict.

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