Facturación
Anticipos de una venta
GET/suite/erp/ventas/:tkVenta/anticipos
Consulta las facturas de anticipo asociadas a una venta.
Parámetros
| Nombre | Tipo | Validación | Descripción |
|---|
TKVENTA | varchar | Requerido | Código token de la venta. |
Respuesta
| Nombre | Tipo | Descripción |
|---|
uuid | String | UUID fiscal. |
tkFactura | String | Código token de la factura. |
status | Integer | Estado. |
fechaTimbrado | Date | Fecha de timbrado. |
total | Float | Total. |
Solicitud
curl --request GET \
--url 'https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos' \
--header 'token: 00000000-0000-4000-8000-000000000001'const response = await fetch("https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos", {\n method: "GET",\n headers: { token: "00000000-0000-4000-8000-000000000001" },\n});\n\nconsole.log(await response.json());const response = await fetch("https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos", {\n method: "GET",\n headers: { token: "00000000-0000-4000-8000-000000000001" },\n});\n\nconsole.log(await response.json());import requests\n\nresponse = requests.get(\n "https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos",\n headers={"token": "00000000-0000-4000-8000-000000000001"},\n)\nresponse.raise_for_status()\nprint(response.json())package main\n\nimport (\n "fmt"\n "io"\n "net/http"\n)\n\nfunc main() {\n request, _ := http.NewRequest(http.MethodGet, "https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos", nil)\n request.Header.Set("token", "00000000-0000-4000-8000-000000000001")\n response, _ := http.DefaultClient.Do(request)\n defer response.Body.Close()\n body, _ := io.ReadAll(response.Body)\n fmt.Println(string(body))\n}using System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nusing var request = new HttpRequestMessage(HttpMethod.Get, "https://api.upnify.com/v4/suite/erp/ventas/00000000-0000-4000-8000-000000000001/anticipos");\nrequest.Headers.Add("token", "00000000-0000-4000-8000-000000000001");\nusing var response = await client.SendAsync(request);\nresponse.EnsureSuccessStatusCode();\nConsole.WriteLine(await response.Content.ReadAsStringAsync());
Respuesta
[
{
"uuid": "00000000-0000-4000-8000-000000000020",
"tkFactura": "valor-de-ejemplo",
"status": 1,
"fechaTimbrado": "2026-01-15T12:00:00.000Z",
"total": 100.5
}
]