/app/depositaccount

Get the deposit bank account information and the deposit reference code of a user
获得某种法币的收款行信息,以及某个用户的充值Reference Code.

This endpoint returns the details of the bank account to receive deposits from users, for a specific fiat currency.

Legend uses different bank accounts for different fiat-currencies.

The "reference_code" provided in the returned data is essential for the user to include in the "Additional Information" or "Memo" section when initiating the wire transfer to us. This code enables us to identify the sender of the transfer, and without it, we may be unable to recognize the transfer's origin.

Note that different bank accounts have different fields, you need to show all the fields to your users.
For example, the GBP account has a "Sort Code", which doesn't exist for other currencies.

A user's reference code remains the same for difference fiat currencies.

namedescexample_valuevalue_type
deposit_account

All information fields of the bank account. Note that different fiat currency have different fields, you need to display on your web page correctly.

For example
"Sort Code": "040541", //-> this field is for GBP only
"BIC":"BCPYGB22", //-> Note this is not SWIFT
"IBAN":"GB29 BCPY 040541 00003326", //-> IBAN only exists for non-USD bank accounts

deposit account 银行账号的详细字段,每种法币银行账号的字段可能是不同的:

"Sort Code": "040541", //------> 仅用于英镑 GBP
"BIC":"BCPYGB22", //-------> 不同于SWIFT
"IBAN":"GB29 BCPY 040541 00003326", //-------> IBAN账号通常仅用于非美元银行账号,在欧洲地区很常见

Check the response code 200's example, 详见200的返回字段。JSON
reference_codereference_code, a unique code for Legend to find who the wire sender was, 用于deposit核对使用。ZGAEIXSstring
asset_fiatfiat 资产类型,通常是法币(fiat)USD, EUR, GBP...string
transfer_typetransfer type 汇款类型目前只支持“wire”string
Query Params
string
required
Defaults to 380ee89d-8c44-48cf-b3d0-12a8663137de

The unique user id of the specified user. user_id is required. If this user hasn't been approved yet, it won't return bank information

string
required
Defaults to EUR

The fiat currency this user wants to deposit. It can be USD, EUR, GBP, etc.

string
required
Defaults to wire

例如: wire, WIRE 大小写不敏感

Headers
string
required
Defaults to 12.34.56.78

User's most recent access/login IP address

string
required
Defaults to Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjVhMDRhYmI3YWI5ZjZjMzg3NDljOTU3ZDkzNDgxZDg5YmE0NDliZmQwYTM3MjRjZGI2NmNjM2EwMDc5MDExZDM5Y2VmN2VmYmI1MzcxN2Y5In0.eyJhdWQiOiIyNCIsImp0aSI6IjVhMDRhYmI3YWI5ZjZjMzg3NDljOTU3ZDkzNDgxZDg5YmE0NDliZmQwYTM3MjRjZGI2NmNjM2EwMDc5MDExZDM5Y2VmN2VmYmI1MzcxN2Y5IiwiaWF0IjoxNzUxMDA1NzAyLCJuYmYiOjE3NTEwMDU3MDIsImV4cCI6MTc4MjU0MTcwMiwic3ViIjoiMjY0NyIsInNjb3BlcyI6WyIqIl19.OfzxnZRXaACiInxtOQ8lNsZvsKzDBfUhBumH366hJR9Wa-WbzZcU2RFhOoBL_H66pkK8UE3WUKSPCnNfVuUkakU_46eURx3BzaIlJm4k6XJHZ0uJoQZW3xUxEv6uqFGSX2dVPsUCo7Pxo94VX9N-yiNaQBbp44lmHy-h0kGe_VWq7PBxPvkDMVldbYkDg3UGXfRoJz-j4WTbodL3Hi53VdyprPnN45rxhu9tt3603L260ozc-aJAWQkHVKIe-YgR0AfKtCQUcjSvkwXyEUQ6SN90blnZLow2yPzuYXkJvmJD8EYyOb1_a8Bb4bOEnYSZQR4fzfHdeHDuiGY1k3fqThgWhtBlsikpkNMQ-gUjb1022Yj7Kv5bbkbds4RsWn1kWsE7BShdHYBlnns3KnnXOdBhXzSGqgLYML5ri1T5zNEMuMRgErU3L8_QHwoR4VmPkdrFQiaoIoH4Wp7C5J_788BnhXDJk01lxJnuiMeBPanBeRTvE3PZmjdRLTvYTzWgnDqn3SnbG1KiQdmyLnWuW_vDnuYiqu8Cc2HRbBkS1h_HuPybP7AcP1NBgatJZb7sXk6nuwKibx8SJIQTImdSIPuy5A1T3DxclbG_qwFPQpHpSDsLjSUCu01lpD3wmtinOi5OATkCPsXgSm69NQeV4-_qwMku-Ih8d8kMwHmgDfs

API Token received from Legend Trading

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json