curl --request POST \
--url https://sandbox-rampa.mesadepagos.com/api/v3/transactions/deposit/qr \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundingSource": "balance",
"referenceId": "ORDER-1001",
"fiatCurrency": "BOB",
"fiatAmount": 100
}
'{
"transactionId": "550e8400-e29b-41d4-a716-446655440000",
"type": "deposit_express",
"transactionStatus": "pending_transaction",
"requestedCryptoAmount": "10",
"calculatedFiatAmount": "69.60",
"exchangeRate": "6.96",
"asset": "USDC",
"country": "BO",
"countryName": "Bolivia",
"qrCodeBase64": "iVBORw0KGgoAAAANSUhEUgAA...",
"referenceId": "ORDER-1001",
"fiatCurrency": "BOB",
"feeAmount": "0.00"
}{
"statusCode": 400,
"error": "Bad Request",
"message": [
{
"path": [
"fiatAmount"
],
"message": "The value was rejected by the payment provider."
}
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"code": "TRANSACTION_NOT_FOUND",
"message": "The transaction was not found."
}{
"statusCode": 422,
"code": "INSUFFICIENT_FUNDS",
"message": "There are insufficient funds to complete this transaction."
}{
"statusCode": 500,
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected internal server error occurred. Please try again later."
}{
"statusCode": 503,
"code": "PAYMENT_PROVIDER_UNAVAILABLE",
"message": "The payment provider is temporarily unavailable. Please try again later."
}Payin
Crear deposito QR
Crea una transaccion de payin por QR y devuelve la imagen QR en base64. La confirmacion del pago se notifica por webhook (transaction_updated).
Campos segun fundingSource
| Campo | balance | conversion |
|---|---|---|
| fiatAmount | Requerido | Opcional |
| cryptoAmount | Opcional | Requerido |
| depositAddress | Opcional | Requerido y no vacio |
Siempre se requieren fundingSource, referenceId y fiatCurrency (BOB). asset y blockchain son opcionales en ambos casos y usan USDC y Polygon por defecto. country usa BO y qrExpirationTime usa 00:15:00 por defecto.
Los campos opcionales pueden omitirse, pero si se envian deben cumplir sus validaciones; no se acepta null. Con conversion, fiatAmount se calcula a partir de cryptoAmount, el tipo de cambio y las comisiones, aunque se envie fiatAmount.
POST
/
v3
/
transactions
/
deposit
/
qr
curl --request POST \
--url https://sandbox-rampa.mesadepagos.com/api/v3/transactions/deposit/qr \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundingSource": "balance",
"referenceId": "ORDER-1001",
"fiatCurrency": "BOB",
"fiatAmount": 100
}
'{
"transactionId": "550e8400-e29b-41d4-a716-446655440000",
"type": "deposit_express",
"transactionStatus": "pending_transaction",
"requestedCryptoAmount": "10",
"calculatedFiatAmount": "69.60",
"exchangeRate": "6.96",
"asset": "USDC",
"country": "BO",
"countryName": "Bolivia",
"qrCodeBase64": "iVBORw0KGgoAAAANSUhEUgAA...",
"referenceId": "ORDER-1001",
"fiatCurrency": "BOB",
"feeAmount": "0.00"
}{
"statusCode": 400,
"error": "Bad Request",
"message": [
{
"path": [
"fiatAmount"
],
"message": "The value was rejected by the payment provider."
}
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"code": "TRANSACTION_NOT_FOUND",
"message": "The transaction was not found."
}{
"statusCode": 422,
"code": "INSUFFICIENT_FUNDS",
"message": "There are insufficient funds to complete this transaction."
}{
"statusCode": 500,
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected internal server error occurred. Please try again later."
}{
"statusCode": 503,
"code": "PAYMENT_PROVIDER_UNAVAILABLE",
"message": "The payment provider is temporarily unavailable. Please try again later."
}Cuerpo
application/json
Datos necesarios para generar el QR de deposito.
- Option 1
- Option 2
Respuesta
Deposito QR creado exitosamente.