Response

The response message, within the tag response, you can find the list of invoices. You can see the fields desrcibed below:

  • envelope/response/invoices/[date_i_range]
    • range search
  • envelope/response/invoices/invoice/[number]
    • contains the invoice number
  • envelope/response/invoices/invoice/[date_i]
    • contains the invoice date
  • envelope/response/invoices/invoice/[date_start]
    • contains the starting date of the service
  • envelope/response/invoices/invoice/[date_end]
    • contains the ending date of the service
  • envelope/response/invoices/invoice/[doc_type]
    • contains the code documents type
    • This is the code list:
      1. Fattura Fornitore 74TER
      2. Fattura Cliente 74TER
      3. Fattura Fornitore
      4. Fattura Cliente
      5. Nota di Credito Cliente 74TER
      6. Nota di Credito Cliente
      7. Incasso Fattura Vendita
      8. Incasso Nota di Credito
      9. Incasso Assegno
      10. Bonifico
      11. Interessi Attivi Bancari
      12. Pagata Fattura
      13. Pagata Fattura Bonifico
      14. Pagata Nota di Credito
      15. Pagati Contributi
      16. Pagamenti Diversi
      17. Ritenute IRPEF
      18. Rilevati Stipendi
      19. Pagati Stipendi
      20. Competenze Bancarie
      21. Commissioni Bancarie
      22. GiroConto
  • envelope/response/invoices/invoice/[doc_type_des]
    • contains the description of documents type (describes the above mentioned code)
  • envelope/response/invoices/invoice/[customertaxcode]
    • contains the customer tax code (VAT number of the customer who has performed the booking)
  • envelope/response/invoices/invoice/issuer[taxcode]
    • contains the issuer tax code (VAT number of the issuer - see below fields)
  • envelope/response/invoices/invoice/issuer[code]
    • contains the code of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/issuer[name]
    • contains the name of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/issuer[address]
    • contains the address of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/issuer[country]
    • contains the country of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/issuer[city]
    • contains the city of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/issuer[zip]
    • contains the zip code of the office to which the agency (that performed the booking) refers.
  • envelope/response/invoices/invoice/bookings/booking[number]
    • contains the booking number
  • envelope/response/invoices/invoice/bookings/booking[pax_leader]
    • contains the pax leader's name
  • envelope/response/invoices/invoice/[amount]
    • contains the invoice total amount
  • envelope/response/invoices/invoice/[amountCee]
    • contains the invoice in CEE amount
  • envelope/response/invoices/invoice/[amountNoCee]
    • contains the invoice in extra CEE amount
  • envelope/response/invoices/invoice/[currency]
    • contains the invoice currency
  • envelope/response/invoices/invoice/dossier[number]
    • contains the dossier number
  • envelope/response/invoices/invoice/pdf[url]
    • contains the url to show the invoice in pdf format
<envelope>
    <header>
        <version> 1.0.0</version>
        <timestamp> 1256655464</timestamp>
    </header>
    <response type="listall" product="invoice">
        <invoices>
            <invoice>
                <number> FTC2009.013248</number>
                <date_i>2009-10-01</date_i>
                <date_start>2009-10-01</date_start>
                <date_end>2009-10-05</date_end>
                <doc_type>2</doc_type>
                <doc_type_des>Fattura Cliente 74TER</doc_type_des>
                <customertaxcode>06345389011</customertaxcode>
                <issuer code="albape">
                    <taxcode>01707410682</taxcode>
                    <name>Albatravel Pescara Srl</name>
                    <address>VIA DEI SABINI, 9</address>
                    <country>ITALIA</country>
                    <city>PESCARA</city>
                    <zip>65127</zip>
                </issuer>
                <bookings>
                    <booking number="2009-357912"/>
                    <pax_leader>mastrogiuseppe</pax_leader>
                </bookings>
                <amount>421</amount>
                <amountCee>421</amountCee>
                <amountNoCee>0</amountNoCee>
                <currency>EUR</currency>
                <dossier number="2009-328092" />
                <pdf
                    url="http://www.italianescapade.com/~marcon/devel-mida/apitowers/openpdf.php?owner=albape&id=29071&hs=e5172c6d7bcd42fc7cf7b57fa7c5b45e" />
            </invoice>
        </invoices>
    </response>
</envelope>