curl --location '/api/v1/transactions/buy' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"paymentMethodId": 15,
"amount": 0,
"qr": true,
"termsAccepted": true,
"businessId": 1,
"confirmUrl": "https://tu_webhook.site",
"registerForm": {
"firstName": "Jorge Luis",
"middleName": "",
"lastName": "Madera",
"secondLastName": "Madera",
"docType": "CC",
"docNumber": "1068818962",
"cellphone": "3106990587",
"email": "jorge@example.com",
"address": "Vereda san Rafael del Perú",
"cityId": 519,
"birthCityName": "Valencia",
"gender": "Masculino",
"birthDate": "1990-05-15",
"docExpDate": "2015-06-20",
"businessName": "Mi Comercio"
}
}
}'{
"statusCode": 200,
"message": "Exitoso",
"data": {
"Resource": {
"key": "305103",
"type": "qr",
"message": 200,
"qr": "data:image/webp;base64,UklGRoxSAQB..."
},
"Costs": [
{
"id": 141,
"min": 0,
"max": 99999999,
"type": "fixed",
"cost": 500,
"costProvider": 250,
"costTypeProvider": "fixed"
}
],
"isManual": 0
},
"_channel": "web"
}