POST
/
v2.01
/
{ClientId}
/
conversions
/
instant-conversion
{
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "DebitedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
    "CreditedWalletId": "wlt_m_01J3G1CY4VH5FNMSAM8M0S5A64",
    "DebitedFunds": {
        "Currency": "GBP",
        "Amount": 1000
    },
    "CreditedFunds": {
        "Currency": "USD"
    },
    "Fees": {
        "Currency": "GBP",
        "Amount": 100
    },
    "Tag": "Created using the Mangopay API Postman collection"
}
{
    "Id": "cvr_01J3G21RF2R88PCA34P287ZQPQ",
    "Type": "CONVERSION",
    "Nature": "REGULAR",
    "CreationDate": 1721747169,
    "Status": "SUCCEEDED",
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "DebitedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
    "CreditedWalletId": "wlt_m_01J3G1CY4VH5FNMSAM8M0S5A64",
    "DebitedFunds": {
        "Currency": "GBP",
        "Amount": 1000
    },
    "CreditedFunds": {
        "Currency": "USD",
        "Amount": 1161
    },
    "Fees": {
        "Currency": "GBP",
        "Amount": 100
    },
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "ExecutionDate": 1721747170,
    "ConversionRateResponse": {
        "ClientRate": 1.277585,
        "MarketRate": 1.2904899
    },
    "Tag": "Created using the Mangopay API Postman collection"
}
This call triggers an immediate conversion at the market rate, of the debited funds to the credited wallet at the market rate. A quote is not required for an instant conversion.

Body parameters

AuthorId
string
required
The unique identifier of the user at the source of the transaction. In a conversion, both the debited and credited wallets are owned by the author.
DebitedWalletId
string
required
The unique identifier of the debited wallet (in the sell currency).
CreditedWalletId
string
required
The unique identifier of the credited wallet (in the buy currency).
DebitedFunds
object
required
Information about the debited funds.
CreditedFunds
object
required
Information about the credited funds.
Fees
object
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).Note: The fees currency must match the debited funds currency.
Tag
string
Max. length: 255 charactersCustom data that you can add to this object.

Responses

Functional errors (ResultCode) are possible on a 200 response. Read more
{
    "Id": "cvr_01J3G21RF2R88PCA34P287ZQPQ",
    "Type": "CONVERSION",
    "Nature": "REGULAR",
    "CreationDate": 1721747169,
    "Status": "SUCCEEDED",
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "DebitedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
    "CreditedWalletId": "wlt_m_01J3G1CY4VH5FNMSAM8M0S5A64",
    "DebitedFunds": {
        "Currency": "GBP",
        "Amount": 1000
    },
    "CreditedFunds": {
        "Currency": "USD",
        "Amount": 1161
    },
    "Fees": {
        "Currency": "GBP",
        "Amount": 100
    },
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "ExecutionDate": 1721747170,
    "ConversionRateResponse": {
        "ClientRate": 1.277585,
        "MarketRate": 1.2904899
    },
    "Tag": "Created using the Mangopay API Postman collection"
}
{
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "DebitedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
    "CreditedWalletId": "wlt_m_01J3G1CY4VH5FNMSAM8M0S5A64",
    "DebitedFunds": {
        "Currency": "GBP",
        "Amount": 1000
    },
    "CreditedFunds": {
        "Currency": "USD"
    },
    "Fees": {
        "Currency": "GBP",
        "Amount": 100
    },
    "Tag": "Created using the Mangopay API Postman collection"
}