Overview
User management
- Users
- User regulatory status
- User e-money
User verification
- User data format
- KYC documents
- UBO declarations
Wallets
- User wallets
- Client wallets
Cards
- Card registrations
- Cards
- Metadata
- Card validations
Card pay-ins
- Direct card pay-ins
- Recurring card pay-ins
- Preauthorizations
- Deposit preauthorizations
- Web card pay-ins
Banking pay-ins
- Bank wires
- Virtual IBAN
- Direct debits
- Web direct debits
APM pay-ins
- Apple Pay
- Bancontact
- BLIK
- Giropay
- Google Pay
- iDEAL
- Klarna
- MB WAY
- Multibanco
- Payconiq
- PayPal
- Satispay
- Swish
- TWINT
Transfers
- Transfers
Refunds
- Refunds
Disputes
- Disputes
- Dispute documents
- Repudiations
- Dispute settlement
Payouts
- Bank accounts
- Payouts
FX conversions
Transactions
- Transactions
Helpers
- API responses
- Country authorizations
- Webhooks
- Events
- Reports
Platform account
- Client
- Dashboard permissions
Create an Instant Conversion between user Wallets
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
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.
The unique identifier of the debited wallet (in the sell currency).
The unique identifier of the credited wallet (in the buy currency).
Information about the debited funds.
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the debited funds (the sell currency).
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
During a conversion, (DebitedFunds.Amount
- Fees
) * MarketRate
= CreditedFunds.Amount
.
Information about the credited funds.
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the credited funds (the buy currency).
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.
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
Required if Fees
is sent.
The currency of the fees.
Required if Fees
is sent.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
Max. length: 255 characters
Custom data that you can add to this object.
Responses
The unique identifier of the object.
The type of transaction.
Returned values: REGULAR
, REPUDIATION
, REFUND
, SETTLEMENT
The nature of the transaction, providing more information about the context in which the transaction occurred:
REGULAR
– Relative to most of the transactions (pay-ins, payouts, and transfers) in a usual workflow.REPUDIATION
– Automatic withdrawal of funds from the platform’s repudiation wallet as part of the dispute process (when the user has requested a chargeback).REFUND
– Reimbursement of a transaction to the user (pay-in refund), to a wallet (transfer refund), or of a payout (payout refund, only initiated by Mangopay).SETTLEMENT
– Transfer made to the repudiation wallet by the platform to settle a lost dispute.
The date and time at which the object was created.
Returned values: CREATED
, SUCCEEDED
, FAILED
The status of the transaction.
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.
The unique identifier of the debited wallet (in the sell currency).
The unique identifier of the credited wallet (in the buy currency).
Information about the debited funds.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the debited funds (the sell currency).
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
During a conversion, (DebitedFunds.Amount
- Fees
) * MarketRate
= CreditedFunds.Amount
.
Information about the credited funds.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the credited funds (the buy currency).
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
During a conversion, CreditedFunds.Amount
= (DebitedFunds.Amount
- Fees
) * MarketRate
.
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.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the fees.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
The explanation of the result code.
The date and time at which the status changed to SUCCEEDED
, indicating that the transaction occurred. The statuses CREATED
and FAILED
return an ExecutionDate
of null
.
Information about the conversion rate used during the transaction.
Max. 7 decimal places
The rate including Mangopay’s markup, indicative of the rate invoiced during the billing cycle: ClientRate
= MarketRate
* (1 - markup).
The ClientRate
fluctuates in line with the MarketRate
.
Max. 7 decimal places
The rate used to convert funds during a conversion: (DebitedFunds.Amount
- Fees
) * MarketRate
= CreditedFunds.Amount
.
The market rate fluctuates in line with FX market dynamics and is common to all platforms for the currency pair.
Max. length: 255 characters
Custom data that you can add to this object.
Functional errors (ResultCode
) are possible on a 200 response. Read more →
{
"Message": "Author 45671234 is not debited wallet 204089031 owner.",
"Type": "author_is_not_debited_wallet_owner",
"Id": "5251717e-0965-4e33-a85a-a1042775913f",
"Date": 1699532783,
"errors": null
}
{
"Message": "Author 204068024 is not credited wallet 208282959 owner.",
"Type": "author_is_not_credited_wallet_owner",
"Id": "f072dcfd-d02c-4489-835f-7abe0b11fa66",
"Date": 1699532982,
"errors": null
}
{
"Message": "Debited currency incompatibility.",
"Type": "currency_incompatibility",
"Id": "af071186-b891-4e0d-baeb-736c15a757e8",
"Date": 1699532861,
"errors": null
}
{
"Message": "Credited currency incompatibility.",
"Type": "currency_incompatibility",
"Id": "2466e688-5f4f-4dfa-8ebe-97b5608c3dd5",
"Date": 1699532915,
"errors": null
}
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "f19eafbd-0310-4814-8f6b-691910b7b4a2",
"Date": 1707323047,
"errors": {
"Fees.Currency": "Provided currency USD does not match debit currency of GBP"
}
}
{
"Message": "The currency JPY is not enabled for Forex. Contact your support to activate this feature.",
"Type": "forex_not_available",
"Id": "f8701d45-2540-4497-a7ce-4a3bc3181d68",
"Date": 1699533051,
"errors": null
}
{
"Message": "Forex module is not enabled. Contact your support to activate this feature.",
"Type": "forbidden_ressource",
"Id": "812b8909-9fb1-45b5-9000-06e8c8d73687",
"Date": 1699533020,
"errors": null
}