Skip to content

generateInvoicePdf() should also give access to data returned in the response headers #2

@dsge

Description

@dsge

From the documentation:

How can we know the number, GROSS and NET value of an invoice?

All HTTP response consist of two parts. First is the header the second one is the body. In
case we asked for the Invoice the body will be the PDF. The header is always a
name=value pair. In all programming languages that support HTTP requests there is an
option to get the values in the header. In Invoice Agent we can put data in the header on
the following names, that always start with “szlahu_”:

  • szlahu_szamlaszam: the number of the created invoice, URL encoded
  • szlahu_nettovegosszeg: number type data, not URL encoded
  • szlahu_bruttovegosszeg: number type data, not URL encoded
  • szlahu_error: text of error message, I sentence, URL encoded
  • szlahu_error_code: number type data, not URL encoded

If there are error codes in the header, than the other date (invoice number, gross and
net value) will not be present in the header. In case of XML response besides the header
the XML will include these information as well.

Right now these fields are ignored and cannot be accessed:

  • szlahu_szamlaszam
  • szlahu_nettovegosszeg
  • szlahu_bruttovegosszeg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions