Listar notas de crédito
Devuelve una lista paginada de notas de crédito para el usuario autenticado. Admite filtrado por estado, tipo de pago, rango de fechas, rango de importe e IDs específicos.
Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Query Parameters
Sección titulada «Query Parameters »Página actual
Sort order direction (ascending or descending)
Ordenar por marca de tiempo cuando se creó la entidad
Sort order direction (ascending or descending)
Ordenar por importe del documento
Filtro exacto por el estado del documento
Filtro exacto por el tipo de pago
Document ID
Filtro exacto por el ID del documento
Filtro exacto por múltiples IDs de documentos
Creation timestamp
Filtro exacto por la marca de tiempo de creación
Filtro exacto y por rango de marcas de tiempo de creación
Document amount
Filtro por rango del importe del documento (valor real, ej. 24.63 para 24.63 EUR)
Filtro exacto y por rango de los importes del documento (valores reales, ej. 24.63 para 24.63 EUR)
Payment timestamp
Filtro exacto por la marca de tiempo de pago
Filtro exacto y por rango de marcas de tiempo de pago
Filtro de existencia para el estado de pago: true = documentos pagados, false = documentos no pagados
Responses
Sección titulada « Responses »Credit Note collection
object
JSON-LD ID
JSON-LD type
Credit note details (JSON-LD)
object
JSON-LD ID
JSON-LD type
Credit Note ID
Creation date (unix timestamp)
Credit note amount
Moneda
Credit note status: 0 = New, 1 = Success, 2 = Failed
Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card
Payment date (unix timestamp), 0 if not paid
Client company name
Client address
Client info line
VAT percentage
VAT identification number
VAT value
Fee percentage
Fee value
Net cost value
ISO-2 country code
Custom text on the credit note
URI to download credit note PDF
URI to the related invoice
Total number of items in the collection
Pagination links for navigating the collection
object
Search and filtering template for the collection
object
object
Examples
Credit note list example (JSON-LD)
Example response for GET /credit_notes with Accept: application/ld+json
{ "@context": "/contexts/CreditNote", "@id": "/credit_notes", "@type": "Collection", "totalItems": 1, "member": [ { "@id": "/credit_notes/240", "@type": "CreditNote", "id": "240", "created_at": 1770140830, "amount": 0.01, "currency": "EUR", "status": 1, "payment_type": 6, "paid_at": 0, "client_name": "Example Customer Ltd.", "client_address": "Main Street 42\n12345 Example City", "client_info": "John Doe", "type": 0, "vat": 19, "vat_id": "DE123456789", "vat_val": 0, "fee": 0, "fee_val": 0, "net_val": 0.01, "iso2": "DE", "custom_text": "CN-2024-001", "pdf": "/credit_notes/240/pdf", "invoice": "/invoices/79484" } ], "view": { "@id": "/credit_notes?page=1", "@type": "PartialCollectionView" }, "search": { "@type": "IriTemplate", "template": "/credit_notes{?_order[created_at],_order[amount],status,status[],payment_type,payment_type[],id,id[],createdAt[between],createdAt[gt],createdAt[gte],createdAt[lt],createdAt[lte],amount[between],amount[gt],amount[gte],amount[lt],amount[lte],paidAt[between],paidAt[gt],paidAt[gte],paidAt[lt],paidAt[lte]}", "variableRepresentation": "BasicRepresentation", "mapping": [ { "@type": "IriTemplateMapping", "variable": "_order[created_at]", "property": "created_at", "required": false }, { "@type": "IriTemplateMapping", "variable": "_order[amount]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "status", "property": "status", "required": false }, { "@type": "IriTemplateMapping", "variable": "status[]", "property": "status", "required": false }, { "@type": "IriTemplateMapping", "variable": "payment_type", "property": "payment_type", "required": false }, { "@type": "IriTemplateMapping", "variable": "payment_type[]", "property": "payment_type", "required": false }, { "@type": "IriTemplateMapping", "variable": "id", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "id[]", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[between]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[gt]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[gte]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[lt]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[lte]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[between]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[gt]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[gte]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[lt]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[lte]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[between]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[gt]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[gte]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[lt]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[lte]", "property": "paidAt", "required": false } ] }}Credit note details
object
ID de la nota de crédito
Fecha de creación (timestamp Unix)
Importe de la nota de crédito
Código de moneda
Estado de la nota de crédito: 0 = Nueva, 1 = Exitosa, 2 = Fallida
Método de pago: 1 = SEPA, 6 = Transferencia, 7 = PayPal, 8 = Sofort, 91 = Tarjeta guardada, 92 = Nueva tarjeta
Fecha de pago (timestamp Unix), 0 si no pagado
Nombre de la empresa del cliente
Dirección del cliente
Línea de información del cliente
Porcentaje de IVA
Número de identificación fiscal
Valor del IVA
Porcentaje de comisión
Valor de la comisión
Valor del coste neto
Código de país ISO-2
Texto personalizado en la nota de crédito
URI para descargar el PDF de la nota de crédito
URI a la factura relacionada
Examples
Credit note list example (JSON)
Example response for GET /credit_notes with Accept: application/json
[ { "id": "240", "created_at": 1770140830, "amount": 0.01, "currency": "EUR", "status": 1, "payment_type": 6, "paid_at": 0, "client_name": "Example Customer Ltd.", "client_address": "Main Street 42\n12345 Example City", "client_info": "John Doe", "vat": 19, "vat_id": "DE123456789", "vat_val": 0, "fee": 0, "fee_val": 0, "net_val": 0.01, "iso2": "DE", "custom_text": "CN-2024-001", "pdf": "/credit_notes/240/pdf", "invoice": "/invoices/79484" }]Entrada no valida
El ID de cliente o la clave API no están activos o no son válidos.
La cuenta no está activada. Espere o póngase en contacto con el servicio de asistencia.
La dirección IP fue bloqueada temporalmente, ya que durante poco tiempo se enviaron muchas solicitudes con credenciales no válidas. Espere y pruebe más tarde.
Code Samples
curl -s 'https://api.lox24.eu/credit_notes' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jqusing var client = new HttpClient();client.DefaultRequestHeaders.Add("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN");var response = await client.GetStringAsync("https://api.lox24.eu/credit_notes");Console.WriteLine(response);package mainimport ("fmt"; "net/http"; "io")func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/credit_notes", nil) req.Header.Set("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") resp, _ := http.DefaultClient.Do(req) body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}import java.net.http.*;import java.net.URI;var request = HttpRequest.newBuilder().uri(URI.create("https://api.lox24.eu/credit_notes")).header("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN").build();var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());fetch('https://api.lox24.eu/credit_notes', {headers: {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}}).then(r => r.json()).then(console.log)<?php$ch = curl_init("https://api.lox24.eu/credit_notes");curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN"]);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);echo curl_exec($ch);curl_close($ch);import requests; r = requests.get("https://api.lox24.eu/credit_notes", headers={"X-LOX24-AUTH-TOKEN": "YOUR_API_TOKEN"}); print(r.json())