Obtener opciones de montos
Última actualización
{
"options": [
{
"id": "ad28f10s",
"coverage": 1,
"quantity": 10,
"amount": 1000000
},
{
"id": "320g9f3",
"coverage": 0.78,
"quantity": 6,
"amount": 780000
},
{
"id": "019248gv",
"coverage": 0.55,
"quantity": 3,
"amount": 550000
}
]
}
{
"error": "No transactions were found for reconciliation for the specified date (07/24/2024)."
}{
"status": "unauthorized",
"code": "Q103",
"error": "El x-auth-token se encuentra vencido. Por favor genera un nuevo token y reintenta de nuevo el cobro."
}curl --location --request GET '{{base_url}}/v1/merchant/conciliation' \
--header 'Content-Type: application/json' \
--header 'x-auth-token: {{token}}' \
--data '{
"merchant_phone": "573112229999"
}'const axios = require('axios');
let data = JSON.stringify({
"merchant_phone": "573112229999"
});
let config = {
method: 'get',
maxBodyLength: Infinity,
url: `${base_url}/v1/merchant/conciliation`,
headers: {
'Content-Type': 'application/json',
'x-auth-token': token //Añadir token
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
import json
url = f"{base_url}/v1/merchant/conciliation"
payload = json.dumps({
"merchant_phone": "573112229999"
})
headers = {
'Content-Type': 'application/json',
'x-auth-token': token #Añadir token
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)