- TranSwap Api v1.8.8
- Access Token
- Accounts
- Contacts
- Conversions
- References
- Transfers
- Wallets
- CallBacks
Create a new Conversion Quotation
POST
/v1/conversions/quotations
Conversions
Last modified:2024-09-11 00:41:03
Maintainer:Not configured
Conversion Quotation
.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Create Conversion with Quotation Model.
source_currency
string  | nullÂ
required
destination_currency
string  | nullÂ
required
source_amount
number <double> | nullÂ
optional
(You should input either source_amount or destination_amount only, never input both at the same time)
destination_amount
number <double> | nullÂ
optional
(You should input either source_amount or destination_amount only, never input both at the same time)
Example
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 POST '/v1/conversions/quotations' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
Quotation information return in Response.
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
Example
{
"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": null
}
🟠400Bad Request
🟠401Unauthorized
🟠429429
🔴500Server Error
Modified at 2024-09-11 00:41:03