Introduction

This documentation aims to provide all the information you need to work with our API.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by using the login endpoint.

Auth

Autenticación en el API

Login

POST
https://api.avilacash.net
/api/login

Permite iniciar sesión en el API con las credenciales del aliado

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"username\": \"architecto\",
    \"password\": \"|]|{+-\"
}"
Example response:

POST api/refresh

POST
https://api.avilacash.net
/api/refresh
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/refresh" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"refresh_token\": \"architecto\"
}"

GET api/logout

GET
https://api.avilacash.net
/api/logout
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                         
{
    "message": "Unauthenticated."
}

Bareca

API para integración con Bareca - Venta de pólizas de seguro

Esta API permite:

  • Consultar información y saldo de usuarios
  • Procesar ventas de pólizas (bloqueo de saldo)
  • Confirmar ventas procesadas
  • Cancelar ventas pendientes

Obtener información del usuario

POST
https://api.avilacash.net
/api/bareca/user-info
requires authentication

Devuelve los datos básicos y el saldo disponible de un usuario.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/bareca/user-info" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 12345
}"
Example response:

Procesar venta de póliza

POST
https://api.avilacash.net
/api/bareca/process-sale
requires authentication

Crea una transacción pendiente y bloquea el saldo del usuario. La venta queda en estado "pendiente" hasta que se confirme o cancele.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/bareca/process-sale" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 12345,
    \"amount\": \"150.00\",
    \"amount_usd\": \"5.00\",
    \"product\": \"rcv\",
    \"uuid\": \"V12345678_0001\",
    \"destino\": \"Placa ABC123\"
}"
Example response:
{
    "success": true,
    "message": "Transacción realizada exitosamente",
    "data": {
        "hash": "$2y$10$...",
        "uuid": "V12345678_0001",
        "status": "Saldo bloqueado",
        "transaction_id": 123456
    }
}
{
    "success": false,
    "message": "El usuario no dispone de saldo suficiente para realizar la venta"
}
{
    "success": false,
    "message": "Error de validación",
    "errors": {}
}

Confirmar venta

POST
https://api.avilacash.net
/api/bareca/confirm-sale
requires authentication

Confirma una venta pendiente y marca la transacción como completada. Una vez confirmada, el saldo queda debitado permanentemente.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/bareca/confirm-sale" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"V12345678_0001\",
    \"reference\": \"POL-2024-001234\"
}"
Example response:
{
    "success": true,
    "message": "Venta confirmada exitosamente",
    "data": {
        "uuid": "V12345678_0001",
        "status": "Completada",
        "confirmed_at": "2024-01-15T10:30:00-04:00"
    }
}
{
    "success": false,
    "message": "La transacción ya fue procesada anteriormente"
}
{
    "success": false,
    "message": "No se encontró la transacción con el UUID proporcionado"
}

Cancelar venta

POST
https://api.avilacash.net
/api/bareca/cancel-sale
requires authentication

Cancela una venta pendiente y devuelve el saldo bloqueado al usuario. Solo se pueden cancelar transacciones en estado pendiente.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/bareca/cancel-sale" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"V12345678_0001\",
    \"reason\": \"Cliente desistió de la compra\"
}"
Example response:
{
    "success": true,
    "message": "Venta cancelada exitosamente",
    "data": {
        "uuid": "V12345678_0001",
        "status": "Cancelada",
        "refunded_amount": 150,
        "new_balance": 1650.5,
        "cancelled_at": "2024-01-15T10:30:00-04:00"
    }
}
{
    "success": false,
    "message": "Solo se pueden cancelar transacciones pendientes"
}
{
    "success": false,
    "message": "No se encontró la transacción con el UUID proporcionado"
}

Consultar estado de transacción

POST
https://api.avilacash.net
/api/bareca/transaction-status
requires authentication

Obtiene el estado actual de una transacción por su UUID.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/bareca/transaction-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"V12345678_0001\"
}"
Example response:
{
    "success": true,
    "data": {
        "uuid": "V12345678_0001",
        "status": "Pendiente",
        "status_code": 1,
        "amount": 150,
        "product": "rcv",
        "user_id": 12345,
        "created_at": "2024-01-15T10:00:00-04:00",
        "updated_at": "2024-01-15T10:00:00-04:00"
    }
}
{
    "success": false,
    "message": "No se encontró la transacción con el UUID proporcionado"
}

Endpoints

sendSms

POST
https://api.avilacash.net
/api/sms/send
requires authentication

Envia un SMS al numero de destino indicado

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/sms/send" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": \"architecto\",
    \"message\": \"g\",
    \"mensaje\": \"architecto\"
}"
Example response:
{
    "success": true,
    "message": "Mensaje enviado",
    "recipient": "numero de destino"
}
{
    "success": false,
    "message": "No se pudo enviar el mensaje",
    "recipient": "numero de destino"
}

sendSmsBatch

POST
https://api.avilacash.net
/api/avilacash/send-sms-batch
requires authentication

Envia un lote de SMS y procesa el envío en cola.

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/send-sms-batch" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"message\": \"architecto\",
    \"numbers\": [
        \"architecto\"
    ]
}"

recargaCelular

POST
https://api.avilacash.net
/api/avilacash/recarga-celular
requires authentication

Realiza la recarga OTA (Over The Air) al número indicado

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-celular" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": \"architecto\",
    \"monto\": 4326.41688,
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
Example response:
{
    "success": true,
    "message": "Recarga procesada",
    "data": {
        "codigo_aprobacion": "0959400415",
        "code": "00",
        "uuid": "1234_56789"
    }
}
{
    "success": false,
    "message": {
        "errors": {
            "numero": [],
            "monto": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

POST api/avilacash/recarga-celular-pos

POST
https://api.avilacash.net
/api/avilacash/recarga-celular-pos
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-celular-pos" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": \"architecto\",
    \"monto\": \"n\",
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\",
    \"operadora\": \"movilnet_postpago\"
}"

recargaMovilInternacional

POST
https://api.avilacash.net
/api/avilacash/recarga-movil-internacional
requires authentication

Realiza la recarga OTA (Over The Air) de móviles internacionales

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-movil-internacional" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": 16,
    \"monto\": 4326.41688,
    \"operadora\": 16,
    \"pais\": 16,
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
Example response:
{
    "success": true,
    "message": "Recarga procesada",
    "data": {
        "codigo_aprobacion": "0959400415",
        "code": "00",
        "uuid": "1234_56789"
    }
}
{
    "success": false,
    "message": {
        "errors": {
            "abonado": [],
            "monto": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

recargaTV

POST
https://api.avilacash.net
/api/avilacash/recarga-tv
requires authentication

Realiza la recarga OTA (Over The Air) de TV por suscripción

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-tv" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"abonado\": 16,
    \"monto\": 4326.41688,
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\",
    \"operadora\": \"architecto\"
}"
Example response:
{
    "success": true,
    "message": "Recarga procesada",
    "data": {
        "codigo_aprobacion": "0959400415",
        "code": "00",
        "uuid": "1234_56789"
    }
}
{
    "success": false,
    "message": {
        "errors": {
            "abonado": [],
            "monto": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

Consulta Simple

POST
https://api.avilacash.net
/api/avilacash/consulta-simpletv
requires authentication

Devuelve información sobre la smartcard indicada para la operadora Simple TV

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/consulta-simpletv" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"smartcard\": \"architecto\"
}"
Example response:
{
    "success": true,
    "message": "Consulta exitosa",
    "extra": {
        "balance": 123456.78,
        "days_left": 365,
        "month_bill": 123456.78
    }
}
{
    "success": false,
    "message": "El número de tarjeta de acceso es inválido. Por favor ingrese a nuestra página web www.simple.com.ve"
}

Consulta de saldo Inter y Cantv

POST
https://api.avilacash.net
/api/avilacash/consulta-saldo
requires authentication

Devuelve información sobre el contrato indicado para la operadora Inter

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/consulta-saldo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"abonado\": \"architecto\",
    \"operadora\": \"architecto\"
}"

recargaFijo

POST
https://api.avilacash.net
/api/avilacash/recarga-fijo
requires authentication

Realiza la recarga OTA (Over The Air) al número fijo indicado

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-fijo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": \"architecto\",
    \"monto\": 4326.41688,
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\",
    \"operadora\": \"architecto\"
}"
Example response:
{
    "success": true,
    "message": "Recarga procesada",
    "data": {
        "codigo_aprobacion": "0959400415",
        "code": "00",
        "uuid": "1234_56789"
    }
}
{
    "success": false,
    "message": {
        "errors": {
            "numero": [],
            "monto": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

recargaPin

POST
https://api.avilacash.net
/api/avilacash/recarga-pin
requires authentication

Realiza la compra de un pin de servicio

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-pin" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pin\": \"architecto\",
    \"operadora\": \"architecto\",
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
Example response:
{
"success": true,
"data": [
{
"uuid": "1234_56789",
"operadora": "netflix",
"monto": "20000",
"code": "2509071547497847",
"message": "Recarga exitosa"
"url": "https://www.netflix.com/redeem"
}
]
}
{
    "success": false,
    "message": {
        "errors": {
            "operadora": [],
            "pin": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

getTransactionByUUID

GET
https://api.avilacash.net
/api/avilacash/transaction
requires authentication

Obtiene el detalle de la transaccion dada

Este método acepta solo un parámetro, el UUID de la transacción

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/avilacash/transaction" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
Example response:
{
    "success": true,
    "data": {
        "details": {
            "external_uuid": "4444",
            "destino": "04168647870",
            "producto": "movilnet_pin",
            "monto": "5000.00",
            "dateTime": "2020-01-16 18:32:35",
            "code": "1104426271668729",
            "barcode": "0000005160250778",
            "mensaje": null,
            "status": "aprobado"
        }
    }
}
{
    "success": false,
    "data": {
        "transaction": "La transacción solicitada no existe"
    }
}

recargaAmazonPrime

POST
https://api.avilacash.net
/api/avilacash/recarga-amazon
requires authentication

Realiza la recarga OTA (Over The Air) de Amazon Prime Video

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.avilacash.net/api/avilacash/recarga-amazon" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"numero\": \"architecto\",
    \"uuid\": \"6ff8f7f6-1eb3-3525-be4a-3932c805afed\"
}"
Example response:
{
    "success": true,
    "message": "Recarga procesada",
    "data": {
        "url": "https://is.gd/123456",
        "code": "00",
        "uuid": "1234_56789"
    }
}
{
    "success": false,
    "message": {
        "errors": {
            "numero": [],
            "uuid": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo realizar la recarga",
    "uuid": "1234_56789"
}

getRate

GET
https://api.avilacash.net
/api/avilacash/get-rate/{iso}
requires authentication

Retorna la tasa de cambio actual para los servicios internacionales

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

iso
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/avilacash/get-rate/architecto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"iso\": \"architecto\"
}"
Example response:
{
    "success": true,
    "message": "Tasa de cambio obtenida",
    "currency": "COP|USD",
    "rate": 1234.56,
    "client_rate": 1234.56
}
{
    "success": false,
    "message": {
        "errors": {
            "iso": []
        }
    }
}
{
    "success": false,
    "message": "No se pudo obtener la tasa de cambio",
    "uuid": "1234_56789"
}

getServices

GET
https://api.avilacash.net
/api/avilacash/get-services/{country?}
requires authentication

Obtiene los servicios disponibles para recarga

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

country
string
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/avilacash/get-services/architecto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"country\": \"architecto\"
}"
Example response:
{
"success": true,
"message": "Servicios disponibles",
data": [
{
"id": 6,
"country_id": 2,
"active": 1,
 "name": "Movistar Colombia",
 "slug": "movistar_co",
 "description": "Movilnet Móvil Colombia",
"image": "",
 "icon": "",
 "created_at": "2023-06-21T00:26:57.000000Z",
 "updated_at": "2023-06-21T00:26:57.000000Z",
 "transaction_type_id": 4,
 "products": [
   {
     "id": 47,
     "product": "Movistar Prepago Colombia",
     "slug": "movistar_co",
     "description": "Movistar Prepago Colombia",
     "image": "",
     "icon": "",
     "active": 1,
     "service_id": 6,
     "country_id": 2,
     "currency_id": 1,
     "price": "0.00",
     "sell_price": "0.00",
     "type": "mobile",
     "product_code": "movistar_co",
     "created_at": "2023-06-24T04:32:32.000000Z",
     "updated_at": "2023-06-24T04:32:32.000000Z",
     "min": "1000.00",
     "max": "50000.00",
     "multiplo": "1000.00"
   }
 ],
"country": {
   "id": 2,
   "sortname": "COL",
   "name": "Colombia",
   "created_at": "2023-06-20T18:09:17.000000Z",
   "updated_at": "2023-06-20T18:09:17.000000Z",
   "active": 1,
   "currency_id": 1,
   "flag": null,
   "currency": {
     "id": 1,
     "iso": "COP",
     "currency": "Peso Colombiano",
     "rate": "119",
     "rate_p": "0.00",
     "created_at": "2020-05-16T16:34:00.000000Z",
     "updated_at": "2023-06-23T23:39:57.000000Z"
   }
 }
},
]

GET api/avilacash/user

GET
https://api.avilacash.net
/api/avilacash/user
requires authentication

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/avilacash/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
                                                            cache-control
                                                            : no-cache, private
                                                                                                                    content-type
                                                            : application/json
                                                                                                                    x-ratelimit-limit
                                                            : 600
                                                                                                                    x-ratelimit-remaining
                                                            : 597
                                                         
{
    "profile": null
}

fetchBalance

GET
https://api.avilacash.net
/api/avilacash/saldo
requires authentication

Devuelve el saldo disponible del aliado basado en su token de autenticación

Headers

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.avilacash.net/api/avilacash/saldo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "success": true,
    "data": {
        "balance": 123456.78
    }
}
{
    "success": false,
    "message": "Error interno al obtener el balance"
}