778890ee7e72
latestOpenAPI 3.0.02026-08-14100249502.6 KBConversions
Create a conversion
Creates an FX conversion, selling funds in one currency to buy funds in another.
post/conversions
Headers
Accountstring
Example:ac_3fe8398f-8cdb-43a3-9be2-806c4f84c327
The linked accountId (use this to create a conversion for a specific sub account)
Request body
Example request
{
"sell": {
"currency": "GBP",
"amount": 100000
},
"buy": {
"currency": "EUR"
},
"reason": "Invoice payment",
"termAgreement": true
}Response
Conversion created successfully
Example response
{
"id": "cv_01FCTS1XMKH9FF43CAFA4CXT3P",
"sell": {
"amount": 100000,
"currency": "GBP",
"fees": {
"ryft": {
"amount": 500
},
"platform": {
"amount": 1000,
"ryftFee": {
"amount": 500
}
}
}
},
"buy": {
"amount": 86000,
"currency": "EUR",
"fees": {
"ryft": {
"amount": 500
},
"platform": {
"amount": 1000,
"ryftFee": {
"amount": 500
}
}
}
},
"rate": 0.86,
"status": "Settled",
"reason": "Invoice payment",
"estimatedSettlementDate": "2024-03-15",
"settledTimestamp": 1710460800,
"createdBy": {
"id": "usr_01FCTS1XMKH9FF43CAFA4CXT3P",
"name": "John Smith"
},
"createdTimestamp": 1710288000
}