- TranSwap Api v1.8.8
- Access Token
- Accounts
- Contacts
- Conversions
- References
- Transfers
- Wallets
- CallBacks
Get conversion by ID
GET
/v1/conversions/{conversion_id}
Conversions
Last modified:2024-09-11 00:41:03
Maintainer:Not configured
OperationId:v1_conversions_getById
Conversion
by ID.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
conversion_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/conversions/'
Responses
π’200OK
application/json
Body
The Conversion information returned in Response.
id
stringΒ <uuid>
optional
conversion_number
stringΒ
optional
status
enum<string>Β
optional
awaiting_fund
processing
completed
cancelled
rejected
Allowed values:
awaiting_fundprocessingcompletedcancelledrejected
status_message
stringΒ
optional
customer_reference
stringΒ
optional
quotation
objectΒ (QuotationView)Β
optional
id
stringΒ <uuid>
optional
Example:
6d4545f5-2e53-4793-9f12-e57349d89490
payment_channel
enum<string>Β
optional
We support 3 payment channels depending on destination country. Please refer to the respective payment channel Appendix for details information.
Allowed values:
bankcashewallet
source_country
stringΒ
optional
Example:
SG
source_currency
stringΒ
optional
Example:
SGD
source_amount
numberΒ <double>
optional
Example:
777
min_source_amount
numberΒ <double>
optional
Example:
100
destination_country
stringΒ
optional
Example:
CN / US / JP / ID
destination_currency
stringΒ
optional
Example:
MOP
destination_amount
numberΒ <double>
optional
Example:
712.79
rate
numberΒ <float>
optional
Example:
1.03319
ts_rate
numberΒ <float>
optional
Example:
1.03319
ts_inverse_rate
numberΒ <float>
optional
fee
numberΒ <float>
optional
Example:
87.11
transaction_fee
numberΒ <float>
optional
Example:
87.11
valid_until
stringΒ <date-time>
optional
Example:
2020-12-02T11:40:56.7395777+00:00
created_timestamp
stringΒ <date-time>
optional
Example:
2020-12-01T11:40:56.7395714+00:00
last_modified_timestamp
stringΒ <date>
optional
transfer_method
enum<string>Β
optional
local
: Domestic transfer method, usually used within the same country.rtgs
: Real-Time Gross Settlement, used for high-value or urgent international transfers.swift
: Society for Worldwide Interbank Financial Telecommunication, used for global bank-to-bank international transfers.This field indicates the method for creating a quotation and must be provided when performing a quotation from a
Hong Kong/United Kingdom premium account
.Allowed values:
localrtgsswift
Example:
local
charge_type
enum<string>Β
optional
our
: The sender pays all the fees related to the transfer.shared
: The sender and the receiver share the transfer fees.This field indicates how the transfer fees are handled when performing a quotation. This field is required when the
transfer_method
is either rtgs
or swift
.Allowed values:
ourshared
Example:
our
created_timestamp
stringΒ
optional
last_modified_timestamp
stringΒ
optional
Example
{
"id": "58f314b0-c052-4496-838f-944933cc4822",
"conversion_number": "C-2006700018",
"status": "Completed",
"status_message": "",
"customer_reference": "C07062020-1",
"quotation": {
"id": "f3a50e32-90bd-4251-9b82-c63f546eef24",
"source_currency": "HKD",
"destination_currency": "SGD",
"source_amount": 5615.5247,
"destination_amount": 1000,
"rate": 0.18,
"fee": 60,
"valid_until": "2020-06-08T09:14:50.4272597+00:00",
"created_timestamp": "2020-06-07T09:14:50.4272361+00:00",
"last_modified_timestamp": "2020-06-07T09:14:50.4272361+00:00"
},
"created_timestamp": "2020-06-07T09:16:14.7257579+00:00",
"last_modified_timestamp": "2020-06-07T09:16:14.7257579+00:00"
}
π 400Bad Request
π 401Unauthorized
π 429429
π΄500Server Error