- TranSwap Api v1.8.8
- Access Token
- Accounts
- Contacts
- Conversions
- References
- Transfers
- Wallets
- CallBacks
Create a new Conversion
POST
/v1/conversions
Conversions
Last modified:2024-09-11 00:41:03
Maintainer:Not configured
Conversion
.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Conversion information to create Conversion.
quotation_id
string <uuid>
optional
customer_reference
string | null
optional
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' \
--header 'Content-Type: application/json' \
--data-raw ''
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
created_timestamp
string
optional
last_modified_timestamp
string
optional
Example
{
"id": "58f314b0-c052-4496-838f-944933cc4822",
"conversion_number": "C-2006700018",
"status": "Processing",
"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
Modified at 2024-09-11 00:41:03