cURL
curl --request GET \ --url https://api.raul.ugps.io/api/v1/factura/client/{clientId} \ --header 'Authorization: Bearer <token>'
{ "id": 123, "client_id": "<string>", "fecha": "2023-11-07T05:31:56Z", "uf_value": 123, "created_at": "2023-11-07T05:31:56Z", "total_clp": 123, "total_descuento_clp": 123, "detalleSubscripciones": [ { "id": 123, "subscription_detail_id": "<string>", "equipo": "<string>", "patente": "<string>", "plan_comercial": "<string>", "estado": "<string>", "precio_uf": 123, "precio_clp": 123, "dias": 123, "child_client_name": "<string>" } ], "detalleVisitas": [ { "id": 123, "visit_detail_id": "<string>", "tipo_visita": "<string>", "patente": "<string>", "ciudad": "<string>", "direccion": "<string>", "fecha_visita": "2023-11-07T05:31:56Z", "km_recorridos": 123, "moneda": "<string>", "costo_visita": 123, "costo_por_km": 123, "carga_costo_km": true, "carga_costo_cliente": true, "child_client_name": "<string>" } ], "detalleVentas": [ { "id": 123, "subscription_cancellation_id": 123, "equipo": "<string>", "patente": "<string>", "plan_comercial": "<string>", "fecha_venta": "2023-11-07T05:31:56Z", "motivo_venta": "<string>", "moneda": "<string>", "monto_venta": 123, "child_client_name": "<string>" } ], "descuentosAplicados": [ { "id": "<string>", "base_calculo_clp": 123, "monto_descuento_clp": 123, "motivo": "<string>", "tipo_descuento": "<string>", "valor": 123, "monto_descuento_uf": 123, "subscription_name": "<string>" } ] }
Operacion: Get factura by client and period.
Bearer token authentication
2024
1
Show child attributes