Country:
/v1/pos/refunds/{id}
Reembolsar pago por ID
Este endpoint permite realizar un reembolso de un pago específico mediante su identificador único. Soporta reembolsos parciales y totales.
URL Parameters
id
El ID del pago que se quiere reembolsar.
example
amount
Monto a reembolsar
value
Valor del reembolso, debe ser mayor a 0
currency
Moneda en formato ISO 4217
Response Examples
200
Reembolso procesado exitosamente
{
"payment": {
"id": "example_string",
"transaction": {
"amount": 123,
"id": "example_string",
"status": "example_string",
"status_detail": "example_string",
"system_trace_audit_number": "example_string",
"transmission_date_time": "example_string",
"type": "example_string"
}
}
}400
Solicitud inválida
{
"error_type": "example_string",
"message": "example_string"
}401
No autorizado - Client-Id inválido o ausente
{
"error_type": "example_string",
"message": "example_string"
}404
Pago no encontrado
{
"error_type": "example_string",
"message": "example_string"
}409
Conflicto - El pago no puede ser reembolsado
{
"error_type": "example_string",
"message": "example_string"
}500
Error interno del servidor
{
"error_type": "example_string",
"message": "example_string"
}Language
Login required to test API
Code Examples
cURL
curl -X POST "https://api.akua.la/v1/pos/refunds/example_value" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {}
}''