v2

latestOpenAPI 3.1.02026-07-262279731.3 MB
Quotes

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)
post/v2.01/{ClientId}/conversions/quote

Path parameters

ClientIdstring required

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

Headers

Authorizationstring required

Bearer authentication of the form Bearer <token>, where token is your auth token.

If your platform is using a proxy to take SCA-triggering action on behalf of users, you also need to integrate mTLS authentication and use the api-mtls base URL.

Request body

OR

Response

Success

Idstring

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

The unique identifier of the object.

CreationDateinteger

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

ExpirationDateinteger

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

Statusstring

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.
Tagstring

Max. length: 255 characters

Custom data that you can add to this object.

Durationinteger

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.