Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

project-openubl/xbuilder-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a6d2878 · Dec 12, 2020
Dec 12, 2020
Mar 28, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
Oct 10, 2020
May 14, 2020
Jul 13, 2020
Jun 11, 2020
Jul 9, 2020
Jul 9, 2020
Jul 9, 2020
Mar 28, 2020
Mar 28, 2020
Oct 10, 2020
Oct 10, 2020

Repository files navigation

CI FOSSA Status

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