project-openubl / xbuilder-server

Proyecto reemplazado por https://github.com/project-openubl/ublhub
Eclipse Public License 2.0
17 stars 11 forks source link
boleta factura facturacion-electronica java kogito opensource quarkus software-libre sunat sunat-xml ubl ubl21 xml-builder

CI FOSSA Status

https://project-openubl.github.io/xbuilder-server-docs/

xbuilder-server

Microservice for creating and signing XML files based on Universal Bussiness Language (UBL)

Getting started

Docker

The easiest way of starting XBuilder Server is using Docker.

docker run -p 8080:8080 docker.io/projectopenubl/xbuilder-server

Then open http://localhost:8080 and verify that the server is running.

Create XML

Open a terminal or the tool of your preference and execute:

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "serie": "F001",
    "numero": 1,
    "proveedor": {
        "ruc": "12345678912",
        "razonSocial": "Project OpenUBL"
    },
    "cliente": {
        "tipoDocumentoIdentidad": "RUC",
        "numeroDocumentoIdentidad": "12312312312",
        "nombre": "Nombre de mi cliente"
    },
    "detalle": [
        {
        "descripcion": "Nombre de producto o servicio",
        "precioUnitario": 1,
        "cantidad": 1,
        "tipoIgv": "GRAVADO_OPERACION_ONEROSA"
        }
    ]
}' \
http://localhost:8080/api/documents/invoice/create

Resources

Mailing list

You can ask questions and get news through our mailing list:

License

FOSSA Status