UDDS OX API - documentation ver.2.5 (2023-04-07) ( www.dlaoperatora.pl )

Function getInvoiceList

Description

Returns a paginated list of invoices with filtering options.

Document Types (TYP_DOKUMENTU)

Important notes

Arguments

Returns

Array with:

Invoice object structure

{
  "id": "abc123",
  "head": {
    "number": "FV/001/2026",
    "documentType": "FV",           // FV, FK, PRO
    "issueDate": "2026-01-10",
    "issuePlace": "Warszawa",
    "saleDate": "2026-01-10",
    "saleDateText": "",
    "paymentDueDate": "2026-01-24",
    "paymentDueDateText": "",
    "paymentMethod": "Przelew",
    "status": "AKTYWNA",
    "group": "SPRZEDAZ",
    "advanceType": ""               // Zaliczka, Rozliczenie zaliczki
  },
  "seller": {
    "name": "Firma XYZ",
    "idBranch": "123",
    "bank": "PKO BP",
    "accountNumber": "12345678901234567890123456",
    "iban": "PL12345678901234567890123456",
    "swift": "PKOPPLPW",
    "idBankAccount": 1
  },
  "buyer": {
    "name": "Klient ABC",
    "address": "ul. Testowa 1",
    "city": "Kraków",
    "postCode": "30-001",
    "nip": "1234567890",
    "country": "Polska",
    "receivingPerson": "Jan Kowalski",
    "idCompany": 456,
    "idPerson": 789
  },
  "recipient": {
    "name": "",                     // if different from buyer
    "address": "",
    "city": "",
    "postCode": "",
    "nip": "",
    "country": "",
    "idCompany": 0,
    "idPerson": 0
  },
  "amounts": {                      // ALL VALUES IN GROSZE (cents)!
    "toPayPLN": 12300,              // = 123.00 PLN
    "toPayCurrency": 12300,         // in document currency (CFG_WALUTA)
    "nettoPLN": 10000,              // = 100.00 PLN
    "nettoCurrency": 10000,
    "bruttoPLN": 12300,
    "bruttoCurrency": 12300,
    "vatPLN": 2300,
    "paid": 0
  },
  "currency": {
    "code": "PLN",
    "exchangeRate": 10000,          // * 10000, so 10000 = 1.0000
    "exchangeRateDate": "2026-01-10",
    "template": "POLSKI",
    "templateLang": "PL",
    "calculationType": "netto"      // netto or brutto
  },
  "correction": {
    "relatedDocumentNumber": "",    // for FK only
    "relatedDocumentId": ""
  },
  "source": {
    "type": "",                     // e.g. "REZERWACJE"
    "id": "",
    "type2": "",
    "id2": ""
  },
  "info": {
    "notes": "",
    "printNotes": "0",
    "headerText": "",
    "footerText": "",
    "amountInWords": ""
  },
  "system": {
    "insertDate": "2026-01-10",
    "insertTime": "10:30:00",
    "insertUserId": 1,
    "updateDate": "2026-01-10",
    "updateTime": "10:30:00",
    "updateUserId": 1,
    "exportStatus": ""
  }
}

Example

  require_once ( 'classUddsOx.php' ) ;

  $udds = new classUddsOx ;
  $udds->customerCode = [your_customerCode] ;
  $udds->login = [your_login] ;
  $udds->password = [your_password] ;
  $udds->serverUrl = 'http://api.dlaoperatora.pl/udds/' ;
  
  $yourParams = array();
  $yourParams [ 'invoiceSearch' ][ 'documentType' ] = array( 'FV', 'FK' );
  $yourParams [ 'invoiceSearch' ][ 'issueDateFrom' ] = '2026-01-01' ;
  $yourParams [ 'invoiceSearch' ][ 'issueDateTo' ] = date ( 'Y-m-d' ) ;
  $yourParams [ 'invoiceSearch' ][ 'orderBy' ] = 'issueDate' ;
  $yourParams [ 'invoiceSearch' ][ 'orderDirection' ] = 'd' ;
  $yourParams [ 'invoiceSearch' ][ 'perPage' ] = 20 ;
  $yourParams [ 'invoiceSearch' ][ 'pageNo' ] = 0 ;
  
  $ret = $udds->getInvoiceList ( $yourParams ) ;

  // Result:
  // $ret['itemsCount'] = 150
  // $ret['items'][0]['head']['number'] = 'FV/001/2026'
  // $ret['items'][0]['amounts']['toPayPLN'] = 12300  (= 123.00 PLN)