- 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
OperationId:v1_conversions_post
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
{
"quotation_id": "87e80e38-c1a3-4cbb-b6ad-9486e39b4270",
"customer_reference": "string"
}
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 '{
"quotation_id": "87e80e38-c1a3-4cbb-b6ad-9486e39b4270",
"customer_reference": "string"
}'
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": "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