Invoice-Generator / invoice-generator-api

A free API for generating invoice PDFs and e-Invoices.
https://invoice-generator.com/developers
411 stars 55 forks source link

UBL not valid #53

Open krosoftware opened 1 year ago

krosoftware commented 1 year ago

Hello generated UBL invoice is not valid. I'm using this validator: https://www.ubl.be/validator/ and here are the errors: https://i.postimg.cc/9FgdZZ4c/Screenshot-2023-02-17-090848.png I'm using curl from this page: https://invoice-generator.com/developers to generate invoice

jaredk2g commented 1 year ago

Can you provide an example request that is not working for you?

krosoftware commented 1 year ago

I'm using example code from your site:

curl https://invoice-generator.com/ubl \
  -d from="Invoiced, Inc.%0AVAT ID: 1234" \
  -d to="Jared%0AVAT ID: 4567" \
  -d logo="https://invoiced.com/img/logo-invoice.png" \
  -d number=1 \
  -d date="Feb 9, 2015" \
  -d date="Mar 9, 2015" \
  -d payment_terms="NET 30" \
  -d "items[0][name]"="Starter Plan Monthly" \
  -d "items[0][quantity]"=1 \
  -d "items[0][unit_cost]"=99 \
  -d tax_title="VAT" \
  -d "fields[tax]"="%" \
  -d tax=8 \
  -d notes="Thanks for being an awesome customer!"

and generated file is here invoice.zip

krosoftware commented 1 year ago

Any news regarding this, please?