- TranSwap Api v1.8.8
- Access Token
- Accounts
- Contacts
- Conversions
- References
- Transfers
- Wallets
- CallBacks
Get Contact by ID
GET
/v1/contacts/{id}
Contacts
Last modified:2024-09-11 00:41:03
Maintainer:Not configured
Contact
by ID.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string <uuid>
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/contacts/'
Responses
🟢200OK
application/json
Body
optional
id
string <uuid>
required
type
enum<string>
ContactType
personal
or business
Allowed values:
personalbusiness
currency
string
required
Two-letter ISO 3166-2 country code
country
string
required
Two-letter ISO 3166-2 country code
display_name
string
required
category
enum<string>
ContactCategory
sender
, recipient
or all
Allowed values:
recipientsenderall
bank
object
ContactBankAccountDetail
Recipient
.ewallet
object
ContactEwalletDetail
Recipient
.cash
object
ContactCashPickupDetail
Recipient
.personal
object
ContactPersonal
ContactPersonalView
and ContactPersonalModel
.Examples
{
"id": "51eec8ab-535c-4ebc-96a4-a78a4fd00efb",
"type": "personal",
"category": "recipient",
"currency": "VND",
"country": "VN",
"display_name": "VND - NGUYEN VAN A",
"personal": {
"first_name": "Hieu",
"middle_name": "",
"last_name": "Phuong",
"other_name": "",
"gender": "male",
"date_of_birth": null,
"nationality": "VN",
"email": "hieu.phuong@gmail.com",
"mobile_number": "12345678",
"mobile_number_prefix": "+65",
"country_of_birth": null,
"occupation": null,
"industry_category": null,
"industry_sub_category": null,
"identification": {
"id_type": "passport",
"id_number": "A123456"
},
"address": {
"line1": "235 Chi Trai, Ward 1, District 1",
"line2": "",
"city": "Ho Chi Minh",
"state_or_province": "Hanoi",
"country": "VN",
"postal": "700000"
}
},
"bank": {
"bank_name": "Military Commercial Joint Stock bank (MB)",
"bank_country": "VN",
"bank_account_currency": "VND",
"bank_account_name": "NGUYEN VAN A",
"bank_account_number": "8019112670001",
"ts_bank_code": "TSVN0020",
"swift_bic_code": "",
"bank_code": null,
"sort_code": "",
"iban_code": "",
"bsb_code": "",
"zengin_code": "",
"ifsc_code": null,
"cnaps_code": null,
"aba_routing_number": ""
},
"ewallet": {
"ewallet_provider": null,
"ewallet_account_name": null,
"ewallet_account_number": null
},
"cash": {
"cash_provider": null
}
}
🟠400Bad Request
🟠401Unauthorized
🟠429429
🔴500Server Error
Modified at 2024-09-11 00:41:03