Create a Quote

This call guarantees a conversion rate for a quoted conversion. If the quote is for a client wallet conversion then the quote: - Can't include `Fees` – the conversion attempt will return a 400 error if its `QuoteId` includes fees - Shouldn't include `UserMargin` – the conversion attempt will not be blocked but `UserMargin` is disregarded – in the `ConversionRateResponse` (the user's `FinalRate` is the same as the platform's `ClientRate`)

Authentication

AuthorizationBearer
Bearer authentication of the form `Bearer <token>`, where token is your auth token. If your platform is using a [proxy](/guides/sca/proxy-management) to take SCA-triggering action on behalf of users, you also need to integrate [mTLS authentication](/guides/sca/platform) and use the `api-mtls` base URL.

Path parameters

ClientIdstringRequired
Platform's API account identifier, associated with the API key.

Request

This endpoint expects an object.
Quote for User WalletsobjectRequired

Request body for creating a Quote intended to guarantee a rate for a conversion between user wallets. Includes optional Fees and UserMargin parameters. Use this variant when the corresponding conversion will be a user-wallet-to-user-wallet conversion.

OR
Quote for Client WalletsobjectRequired

Request body for creating a Quote intended to guarantee a rate for a client-wallet conversion. Fees must not be sent (the conversion attempt will return a 400 if its QuoteId includes fees) and UserMargin is disregarded by the conversion if sent.

Response

Success
IdstringOptional

Max length: 128 characters (see data formats for details)

The unique identifier of the object.

CreationDateintegerOptional

Unix timestamp (UTC) of the date and time the object was created.

ExpirationDateintegerOptional

Unix timestamp (UTC) of the date and time the quote expires and can no longer be used.

StatusstringOptional

Returned values: ACTIVE, EXPIRED

The status of the quote:

  • ACTIVE – The quote can be used to execute a quoted conversion.
  • EXPIRED – The quote can’t be used because the ExpirationDate is passed.
DebitedFundsobjectOptional
Information about the debited funds.
CreditedFundsobjectOptional
Information about the credited funds.
FeesobjectOptional

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.

RequestedFeesobjectOptional

Information about the Fees sent in the request.

ConversionRateResponseobjectOptional

Information about the MarketRate used to convert funds and other indicative rates.

MarginsResponseobjectOptional
Information about the margins calculated for the transaction.
TagstringOptional

Max. length: 255 characters

Custom data that you can add to this object.

DurationintegerOptional

Allowed values: 300, 3600

The time in seconds during which the quote is active and can be used for conversions.

By default, quotes are available for a duration of 5 or 60 minutes, as agreed between Mangopay and the platform.

Errors

400
Bad Request Error
403
Forbidden Error