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

Latest commit

 

History

History
65 lines (50 loc) · 2.15 KB

README.md

File metadata and controls

65 lines (50 loc) · 2.15 KB

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