curl --location '/api/v1/transactions/buy' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"paymentMethodId": 14,
"amount": 50000,
"qr": true,
"businessId": 1,
"confirmUrl": "https://tu_webhook.site",
"reference": "REF-001",
"registerForm": {
"firstName": "Jorge Luis",
"middleName": "",
"lastName": "Madera",
"secondLastName": "Madera",
"cityId": 519,
"address": "Vereda san Rafael del Perú",
"email": "jorge@example.com",
"cellphone": "3106990587",
"docNumber": "1068818962"
}
}
}'{
"statusCode": 200,
"message": "Exitoso",
"data": {
"Resource": {
"key": "324219",
"type": "qr",
"message": "",
"qr": "UklGRjDIAABXRUJQVlA4WAoAAA..."
},
"Costs": [
{
"id": 140,
"min": 0,
"max": 99999999,
"type": "fixed",
"cost": 500,
"costProvider": 250,
"costTypeProvider": "fixed"
}
],
"isManual": 0
},
"_channel": "web"
}