Facturación
Buscar factura por UUID
GET/facturacion/facturas/uuid/:uuid
Busca la factura asociada al UUID fiscal indicado.
Parámetros
| Nombre | Tipo | Validación | Descripción |
|---|
uuid | String | Requerido | UUID fiscal. |
Respuesta
| Nombre | Tipo | Descripción |
|---|
tkFactura | String | Código token de la factura. |
tkVenta | String | Código token de la venta. |
idFactura | Integer | Identificador interno. |
uuid | String | UUID fiscal. |
Solicitud
curl --request GET \
--url 'https://api.upnify.com/v4/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020' \
--header 'token: 00000000-0000-4000-8000-000000000001'const response = await fetch("https://api.upnify.com/v4/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020", {\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/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020", {\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/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020",\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/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020", 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/facturacion/facturas/uuid/00000000-0000-4000-8000-000000000020");\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
[
{
"tkFactura": "valor-de-ejemplo",
"tkVenta": "valor-de-ejemplo",
"idFactura": 1,
"uuid": "00000000-0000-4000-8000-000000000020"
}
]