"protocolVersion": "v2"
to the /quote API. The
response will include the transaction data you need to sign and then execute.
For lower-level integrators, there’s the option to construct the transaction
data by yourself, as follows:
- get the
orderId
andpaymentDetails
returned in the responseprotocol
field - generate the transaction data using the above two fields, as described in the
architecture section
- note that
paymentDetails
might involve a different currency and amount from the ones requested via the /quote API - when directly using the transaction data generated by the API, that will include any needed swaps for converting the user’s input currency to the currency and amount specified by the order
- when the transaction data is generated by the integrator, it’s up to them to construct it in such a way so that the correct currency and amount ends up deposited
- note that
protocol
object, as returned by the
/quote API: