Version 2.4 – September 2026

Contents

  1. Introduction
  2. Integration overview
  3. Authentication
  4. API Services
    1. Send invoice
    2. Payment signature
    3. Send payments
    4. Cancel delivery note
    5. Send file
  5. InvoiceDoc description
    1. Entity details – Address
    2. Payment Method
      1. Provider’s Payment Signature
      2. Payment flow
      3. Refund flow
    3. Document header – Other General Delivery Details
    4. Document details – Activity Undertaking Declaration
    5. Taxes totals
    6. Document summary
    7. Income classification
    8. Expenses classification
    9. Details
      1. Issuer
      2. Counterpart
      3. Additionals
  6. Additionals
    1. Data retrieval
    2. Unit balance check
  7. Technical and operational errors
  8. Reference tables
  9. Document structure, examples and tools
  10. Versions history
  1. Introduction
    This document describes the above services and the technical specifications necessary to implement the relevant calls
    of the REST API interface. Specifically, for an enterprise using an information system that uses the relevant API, the features offered are:
    • Send data for the documents it issues.
    • Retrieve documents already transmitted for the issuer VAT via RequestTransmittedDocs.

    The following technologies are used to establish a connection with the interface.

    • HTTPS – Secure HTTP
    • Web service
    • REST API – REST interface required for data reporting process.
    • XML – eXtensible Markup Language

    The interface is accessible to any invoicing program capable of sending HTTP messages and creating schema- conformant
    XML, as specified in the present specification.

    In addition to the relevant data, the software should be able to simultaneously and automatically send the necessary
    information to identify the user through the same HTTPS call.

  2. Integration overview
    Requirements
    • All XML files must be well-formed, adhere to the schema (XSD), and be encoded in UTF-8.
    • Be secured using authentication described in next chapter.
    • When you include classification in the XML (InvoicesDoc), declare only xmlns:N1 on the root — never xmlns:N2 and never N2:… elements (e.g. N2:classificationType). This is required for the SBZ provider API (unlike direct ERP submission to AADE, where the XSD declares both N1 and N2). If you send N2, doc.php / sendinvoice.php returns a validation error (Namespace prefix N2 on classificationType is not defined).
      • Income documents (issuer, e.g. 1.1, 1.2, 11.1 …):

        incomeClassification, category1_* codes (myDATA §8.8–8.9).

      • Expense documents (e.g. 2.1, 2.2, 2.3, 2.4 — service/purchase invoice):

        expensesClassification, category2_* codes (myDATA §8.10–8.11).

      Example: <invoiceType>2.1</invoiceType> → always the expenses schema on N1. Qualified elements (N1:classificationType, N1:amount, etc.) always use the N1 prefix only.

    Certification Process

    1. Create an account on https://api.sbz.gr/register.php and contact our technical department at support@sbzsystems.com to activate your trial account.
    2. Develop and test the APIs.
    3. Check and make sure you do not receive any errors. Testing for this API consists of self-tests conducted using your test account in a sandbox environment.
    4. Integration testing. When you are ready to test, contact the SBZ systems Integration Specialist assigned to your account for access to the guides and testing tools.
    5. When everything goes right then your setup is ready, and you will receive the production API- KEY and account details.
    6. After review by SBZ staff, an electronic contract is issued.

    After launch

    • You must continue to adhere to our Terms and Conditions.
    • You should monitor your API connection for any warning or errors.
    • Report any warning or errors received in any response and how they have been resolved.

  3. Authentication
    Each call must contain the following headers in the form of pair-values, which is necessary for user identification. In case of incorrect information, the user will receive an error message. The following headers are required:

    KeyData TypeValueRequiredDescription
    Api-KeyString{Api-Key}YesYour sandbox or production Api-Key
    Content-TypeStringapplication/xml; charset=utf-8Yes*For calls with an XML body. For sendfile.php use multipart/form-data (e.g. curl -F) — not application/xml.

    By identifying the user through the headers, the interface will also gain access to the VAT number the user had stated when registering, so that it would not be necessary to submit it in every call.

    Please note each call to a new vat number must first be authorized from our side.

  4. API Services
    1. Send invoice
      The call has the following characteristics:
      • /sendinvoice.php (POST)
      • XML body with an InvoicesDoc element (type AadeBookInvoiceType). SBZ processes one document per call.
      • Headers as in Authentication (Api-Key, Content-Type: application/xml; charset=utf-8).


      Required SBZ API elements in the XML

      • API_InvoiceDetails, API_Issuer, API_Counterpart, API_Additionals
      • lineUnitPrice, totalNetPriceBeforeDiscount, totalDiscountValue, measurementUnitLabel, vatCategoryPercent, docTime
      • at least one of itemCode or lineCode, and one of itemDescr or lineDescription, based on documentation.


      Delivery notes (type 9.x or isDeliveryNote=true)

      • Always send otherDeliveryNoteHeader with loadingAddress and deliveryAddress. In AddressType, postalCode and city are mandatory.
      • A PartyType address (issuer/counterpart) does not replace deliveryAddress.
      • For 10.x (quantitative receipt) do not send otherDeliveryNoteHeader but only movePurpose as described in the API.
      • For line code and description, itemCode and itemDescr required.


      Endpoints

      Production environment

      https://api.sbz.gr/sign/sendinvoice.php?action=production

      Sandbox environment

      https://api.sbz.gr/sign/sendinvoice.php?action=sandbox
      When you use the submission service (sendinvoice.php / SendInvoices), you receive an SBZResponseDoc XML response. The
      object contains a list of response elements, one for each entity submitted.

      FieldTypeDescription
      Indexxs: intEntity’s line number inside the submitted xml
      invoiceUidxs: stringInvoice identifier
      invoiceMarkxs: longUnique Invoice Registration Number
      AuthenticationCodexs: stringSignature
      InvoiceUrlxs: stringThe url to get the invoice
      myDATAUrlxs: stringThe link leading to the IAPR document
      ErrorsErrorTypeErrors list
      unitsxs: longUnits available for use
      statusCodexs: stringStatus code

      Remarks

      • The type of response (success or failure) is determined by the value of the statusCode field.
      • If successful, the statusCode field has value Success and the answer contains the corresponding values for the invoiceUid and invoiceMark fields for each entity submitted.
      • In case of failure, the statusCode field has a value corresponding to the type of error, and the response includes a list of ErrorType error data for each entity that failed to submit. All errors by entity are in the same category that characterizes the response.
      • Field invoiceUid is returned only when the submitted entity was invoice.
      • Field classificationMark is returned only when the submitted entity was classification.
      • The authenticationCode field returns if the submission was made through a provider
      • The cancellationMark field returns only if the request was for cancellation of a document
      • The invoiceMark field contains the mark of the submitted invoice in case of submitted invoices and the mark of the invoice to which the submitted markings related, in case of submitted markings
      • The qrUrl field returns only on submissions of document types 1.1 to 11.5

    2. Payment signature
      The call has the following characteristics:
      • /paymentsignature.php (POST)
      • Main part in xml format containing the ERPpayment node, which contains a payment signature request for use with a POS card terminal.
      FieldTypeRequiredDescription
      issuerVatxs:longYesEntity VAT number
      issueDatexs:dateYesInvoice issue date
      branchxs:intYesBranch number
      invoiceTypexs:stringYesType of invoice. The possible values are described in the Reference tables. The documents 8.5, 11.4, 5.1, 5.2 send to the terminal a refund transaction.
      The document 8.4 pre-loading transaction unless preload is set
      InitialTransactionxs:stringNoMandatory only in case of refund
      seriesxs:stringYesSeries of invoices. If no invoice series is issued, the field must have the value 0
      It must not contain the character “-“
      aaxs:stringYesserial number of invoice. It must be unique per type of document 8.1
      invoicemarkxs:longNoUnique Registration Number
      amountxs:decimalYesPayment amount
      totalNetValuexs:decimalYesTotal net value
      totalVatAmountxs:decimalYesTotal amount of VAT
      totalGrossValuexs:decimalYesTotal gross value
      terminalidxs:stringYesPayment instrument alias as defined in api.sbz.gr
      tipAmountxs:decimalNoTip value. If not defined enter 0
      instalmentsxs:intNoNumber of installments. If not defined, enter 0
      preloadxs:intNo1: Pre-load transaction, 2: Check pre-loaded
      Deploy the line only when needed.
      PaymentTypexs:intNo0: Card payment, 1: IRIS. If not defined, is 0

      Response

      FieldTypeDescription
      SigningAuthorxs:longElectronic invoicing provider’s code
      Signaturexs:datePayment Signature of the Electronic Document Issuance Service Provider
      Uidxs:intInvoice identifier
      Timestampxs:intTime format Y-m-dTH:i:s
      statusCodexs:stringResult of call
      Commentsxs:stringComments
      pos_transactionIdxs:stringTerminal transaction ID
      pos_answerxs:stringReturned values are preloaded, success, failed
      pos_transactionTextxs:stringIt is not returned by all terminals and is intended for informational purposes only. An additional unique number from a terminal, if exists.
      pos_TerminalIDxs:stringTerminal ID
      pos_PaymentTypexs:int0: Card payment, 1: IRIS payment


      Remarks:

      • The differentiation between simultaneous and heterochronous transactions lies in the use or not of SendPayments
      • For heterochronous transactions SendPayments is used after first calling PaymentSignature
      • For simultaneous transactions SendInvoice is used after first calling PaymentSignature
      • The issuer VAT is sent via the issuerVat field inside ERPpayment

      Preloaded transactions (preload) and lost POS response

      Use the same endpoint paymentsignature.php (POST, Content-Type: application/xml; charset=utf-8, header API-KEY).

      What preload means

      • No preload: normal immediate card/IRIS payment. The response includes SigningAuthor, Signature, Uid, Timestamp, statusCode, Comments and pos_* fields when the terminal replies.
      • preload=1 (preload transaction): full ERPpayment like a normal payment, plus element preload = 1. Expected pos_answer: preloaded or success. Store at least the terminalid you sent and the response pos_transactionId.
      • preload=2 (check preloaded): only checks a previous preload. It does not cover a normal immediate payment and is not a recovery method for error 5008.

      Invoice type 8.4 may behave as a terminal preload unless preload is set — that is separate from sending preload=1 / preload=2 on other types.

      How the check works (preload=2)

      1. You already completed a preload=1 call with pos_answer=preloaded (or you stored pos_transactionId).
      2. Send a minimal XML:

      • terminalid: same terminal alias as the preload.
      • InitialTransaction: the preload pos_transactionId (also required for refunds).
      • Optional PaymentType = 1 for IRIS.

      Check success only when pos_answer=success. The check response does not return SigningAuthor, Signature, Uid or pos_TerminalID — those come from the original payment / preload=1 call. Example:

      Matching a preload to a check applies to transactions within 24 hours.

      Error 5008 and lost response

      When the terminal returns no result for the call:

      • 5008 means there was no response from the POS terminal for that call. It does not prove that “no charge happened” on the POS.
      • There is no separate REST call to retrieve the result after 5008.
      • preload=2 is not a 5008 handler; use it only after a successful preload (preload=1).

      Identifiers and request replay

      • There is no client reference field or header on ERPpayment. Before the first successful response, keep what you sent. After success, keep pos_transactionId (and for normal payment / preload=1 also Uid, Signature, SigningAuthor).
      • Uid is computed by the provider; it is not a client correlation id you send.
      • Do not treat replaying the same ERPpayment as safe “recovery without a new charge”. A new payment call (without preload=2) may start another POS transaction.

      pos_answer and continuing issuance

      • success: completed successfully (normal payment or preload=2 check).
      • preloaded: successful preload; continue later with preload=2.
      • failed: terminal transaction failed.
      • 5008 / empty or truncated HTTP response: communication outcome unknown; do not auto-retry a new charge as “recovery”.

      For tests use action=sandbox. There is no dedicated “simulate lost response” parameter.

      Endpoints

      Production environment

      https://api.sbz.gr/sign/paymentsignature.php?action=production

      Sandbox environment

      https://api.sbz.gr/sign/paymentsignature.php?action=sandbox

    3. Send payments
      The call is made when we need to issue a receipt or POS return receipt. It is sent to myDATA with SendPaymentsMethod and receives an invoiceMark which is returned on a successful call. A call has the following characteristics:
      • /sendpayments.php (POST)
      • Headers as referred to in paragraph 3
      • XML body is PaymentMethodsDoc with one or more paymentMethods / PaymentMethodType elements. Fields are described below (diagram):


      Request (PaymentMethodsDoc / PaymentMethodType)

      FieldTypeRequiredDescription
      invoiceMarkxs:longYesUnique Invoice Registration Number (MARK)
      paymentMethodMarkxs:longNoUnique Payment Method Registration Number (filled by the service)
      entityVatNumberxs:stringNoOptional AADE schema field. SBZ identifies the issuer from the Api-Key (not required for the call).
      paymentMethodDetailsPaymentMethodDetailTypeYesPayment methods (at least one POS type per document)


      Remarks

        1. The field paymentMethodMark is composed by the service
        2. The issuer is identified from the Api-Key; optional AADE entityVatNumber is not used by SBZ for authentication.
        3. The PaymentMethodDetailType object is discussed in detail in paragraph 5.2
        4. When using the method, at least one PaymentMethodDetailType object per document must be of type POS
        5. The total amount per PaymentMethodDetailType object must be equal to the totalGrossValue of the document to which the invoiceMark refers.


      Endpoints

      Production environment

      https://api.sbz.gr/sign/sendpayments.php?action=production

      Sandbox environment

      https://api.sbz.gr/sign/sendpayments.php?action=sandbox

    4. Cancel delivery note
      The call is made when we need to cancel a delivery note. It is sent to myDATA with the CancelDeliveryNote method and receives a cancellationMark, which it returns upon a successful call. It has the following characteristics:
      FieldTypeRequiredDescription
      markxs:longYesUnique registration number of the document to be canceled
      entityVatNumberxs:stringYesEntity VAT number

      Response (SBZResponseDoc / response)

      FieldTypeDescription
      cancellationMarkxs:longUnique Cancellation Number (on success)
      statusCodexs:stringStatus code (e.g. Success)
      messagexs:stringSuccess or error message


      Remarks:

      • No XML body is required (empty POST body). Fields are query parameters only.
      • The Api-Key must match the same VAT as entityVatNumber.
      • The MARK must already exist for that account; otherwise statusCode 301.
      • On success the cancellation gets its own mark (cancellationMark). Other example codes: 5006 (key), ValidationError (missing params), 101 / 7002 / 7003.
      • Only document type 9.3 can be canceled with CancelDeliveryNote (AADE rule).


      Endpoints

      Production environment

      https://api.sbz.gr/sign/canceldeliverynote.php?action=production

      Sandbox environment

      https://api.sbz.gr/sign/canceldeliverynote.php?action=sandbox

    5. Send file
      The call has the following characteristics:
      • /sendfile.php (POST)
      • Headers as referred to in paragraph 3
      • Body (multipart/form-data)
      FieldTypeRequiredDescription
      issuerVatxs:longYesEntity VAT number
      invoiceMarkxs:stringYesDocument Mark
      filexs:stringYesPDF or JPG file (max 300 KB)

      Example

      Endpoints

      Production environment

      https://api.sbz.gr/sign/sendfile.php?action=production

      Sandbox environment

      https://api.sbz.gr/sign/sendfile.php?action=sandbox

      Response (SBZResponseDoc / response) on success includes among others: invoiceMark, vat, fileName, filePath, unitsDeducted, remainingUnits, statusCode Success.
      Remarks

      • issuerVat must match the VAT of the Api-Key.
      • The document mark must already exist in the system before uploading.
      • PDF and JPG/JPEG are allowed (max 300 KB).
      • Each upload costs units: 1 unit per 20 KB (e.g. 100 KB = 5 units).
      • Re-upload for the same MARK/environment is not allowed (statusCode 102). Other examples: 101 (validation), 404 (not found), 405 (not POST), 5006 (key), 7002 (storage/DB).

  5. InvoiceDoc description
    This section describes in detail the contents of an invoice (type AadeBookInvoiceType). The structure of the element is as follows:


    FieldTypeRequiredDescriptionValid values
    uidxs:stringNoInvoice identifierLength = 40 Filled in only by Provider
    markxs:longNoUnique Invoice Registration NumberFilled in only by Provider. Unique Invoice Registration Number
    cancelledByMarkxs:longNoUnique Invoice Cancelation NumberFilled in only by Provider
    authenticationCodexs:stringNoAuthentication CodeFilled in only by Provider
    transmissionFailurexs:byteNoProvider communication failure or ERP data transmission failureAllowed value: 1. Details in the Reference tables
    issuerPartyTypeNoInvoice issuer
    counterpartPartyTypeNoInvoice counterpart
    invoiceHeaderInvoiceHeaderTypeYesInvoice header
    paymentMethodsPaymentMethodDetailTypeNoPayment Methods
    invoiceDetailsInvoiceRowTypeYesInvoice lines
    taxesTotalsTaxesTypeNoTotal taxesContains all taxes except VAT. If user uses this element, taxes will not exist in invoiceDetails
    invoiceSummaryInvoiceSummaryTypeYesInvoide Summary
    API_InvoiceDetailsAPI_InvoiceDetailsTypeYesDocument details

    Remarks

    • Complex types PartyType, PaymentMethodDetailType, InvoiceHeaderType, InvoiceRowType, TaxTotalsType, InvoiceSummaryType and API_InvoiceDetailsType are described later in this section.
    • The transmissionFailure field indicates a communication failure (optional, xs:byte). Allowed value: 1 — Failure of communication between the entity and the provider during invoice issuance/transmission. Details in the Reference tables.

    1. Entity details – Address
      The issuer and the counterpart are elements of type PartyType.

      FieldTypeRequiredDescriptionValid values
      vatNumberxs:stringYesVAT numberAny valid VAT number
      Countryxs:stringYesCountry codeCountry codes (ISO 3166)
      Branchxs:intYesBranch numberMin value = 0 If the branch is headquarters or doesn’t exist, the branch field must have a value of 0.
      Namexs:stringNoName
      AddressAddressTypeNoAddress
      documentIdNoxs:stringNoOfficial document numberMax.100 chars Valid only in the case of a tax free document (specialInvoiceCategory = 4)
      supplyAccountNoxs:stringNoElectricity Supply NumberMax.100 chars Valid only in the case of a fuel documents

      Remarks

      • For the issuer fields name and address are valid only in case the entity is not from Greece. For the counterpart field name must not be submitted if the entity is from Greece.
      • The country code is two characters and comes from the respective country list of countries as described in ISO 3166.
      • In case the issuer’s establishment is the headquarters or does not exist, the branch field must have the value 0
      • For the publisher, the Name and Address details are not accepted in cases involving an entity within Greece (GR). For the receiver, the element Names are not accepted in the event that it concerns an entity within of Greece (GR)
      • The official document number is only allowed in the case of transmission of documents belonging to the Special Category of Tax free Document (the field of the document header specialInvoiceCategory has the value 4), and can be any official identification document (eg number passport) of the recipient of the document.
      • The Electricity Supply number is only allowed in the case of transmission of fuel documents (the field of the document heading fuelInvoice has the value true – only accepted for transmission by providers) and is information of the recipient of the document.


      Address

      The address of the issuer and the counterpart are elements of type AddressType.

      FieldTypeRequiredDescription
      streetxs:stringNoStreet
      numberxs:stringNoNumber
      postalCodexs:stringYesPostal code
      cityxs:stringYesCity

       

    2. Payment Method
      Payment method is an element of type PaymentMethodDetailType and its structure is described below:


      FieldTypeRequiredDescriptionValid values
      typexs:intYesPayment methodMin value = 1
      Max value = 8. Possible values are described in the Reference tables (Payment methods)
      Amountxs:decimalYesAmountMin value = 0
      Decimal digits = 2 Field amount may refer to fraction of the document’s total value
      paymentMethodInfoxs:stringNoInformationField paymentMethodInfo contains additional information for the specified type
      transactionIdxs:stringΌχιTransaction number from POS terminalPassed on in the case of payments with type = 7
      tidxs:stringΌχιPOS terminal TIDPassed on in the case of payments with type = 7

      Remarks

      • The values of the type field are described in the corresponding Reference tables
      • The amount field may correspond to part of the document’s total value
      • The paymentMethodInfo (Info) field may contain additional information for the specific type (e.g. bank account number)
      • The ProvidersSignature field is of type ProviderSignatureType (described below) and is transmitted for payments with type = 7 when submission goes through the provider channel
      1. Provider’s Payment Signature
        The ProvidersSignature field is an element of type ProviderSignatureType and its structure is described below:


        FieldTypeRequiredDescription
        SigningAuthorxs:stringYesNumber of approval of the Electronic Invoicing Provider
        Signaturexs:stringYesSign

         

      2. Payment flow

        1. Call to paymentsignature.php with an XML request:

          The terminalid is associated with the terminal TID in the api.sbz.gr admin panel, under settings, payment terminals.

        2. The API communicates with the POS and waits for a response
        3. When the transaction completes, XML of this type is returned:

        4. Embed into sendinvoice.php and submit

      3. Refund flow

        Document types 8.5, 11.4, 5.1, and 5.2 send a refund transaction to the terminal. The InitialTransaction field is mandatory and must contain the pos_transactionId of the original successful payment (or preload). Do not confuse this with the preloaded check (preload=2), which reuses the same field name for a different flow.

        1. Call paymentsignature.php with a full ERPpayment XML body (same endpoint and headers as a payment):

          • invoiceType: 8.5 (POS refund receipt). For a retail credit note use 11.4 (or 5.1 / 5.2) with the same structure.
          • InitialTransaction: the original transaction pos_transactionId (mandatory for refund).
          • terminalid: the same payment-instrument alias as the original charge when possible.
        2. The API talks to the POS and waits for the refund response.
        3. When the transaction completes, the response includes SigningAuthor, Signature, Uid, Timestamp, statusCode, Comments, and the pos_* fields. Keep the new refund pos_transactionId.
        4. Embed into sendinvoice.php or sendpayments.php and submit (same simultaneous / heterochronous flow as for payments).
    3. Document header – Other General Delivery Details



      FieldTypeRequiredDescriptionValid values
      seriesxs:stringYesInvoice seriesIn case of non-issuance of series of an invoice, the series field must have a value of 0
      It must not contain the character “-“
      aaxs:stringYesInvoice’s serial numberMaximum digits = 5
      issueDatexs:dateYesInvoice’s issue date
      invoiceTypexs:stringYesInvoice typeThe possible values are described in the Reference tables
      vatPaymentSuspensionxs:booleanNoVAT payment suspension
      currencyxs:stringNoCurrencyCurrency code (ISO4217)
      exchangeRatexs:decimalNoExchange rateMin value = 0 Decimal digits = 5 The currency exchange rate against euro. It should be completed only when the currency is not EUR.
      correlatedInvoicesxs:longNoCorrelated invoicesThe element is a list of strings containing the MARK of the associated invoices identifiers
      correlatedInvoicesLabelxs:stringNoCorrelated invoices NamesRequired only when using correlatedInvoices. The element is a text field containing the Friendly Name of the associated invoices
      selfPricingxs:booleanNoSelf-billing indicationSpecifies if it is self-billing invoice
      dispatchDatexs:dateNoDispatch date
      dispatchTimexs:timeNoDispatch time
      vehicleNumberxs:stringNoVehicle number
      movePurposexs:intNoPurpose of movementMin value = 1 Max value = 20 Values described in the Reference tables
      movePurposeLabelxs:stringNoPurpose of Movement Description
      fuelInvoicexs:booleanNoFuel document (indication)
      specialInvoiceCategoryxs:intNoSpecial Category of DocumentMin value = 1 Max value = 13. Values in the Reference tables (Special invoice category)
      isDeliveryNotexs:booleanNoDelivery note indicator
      multipleConnectedMarksNoMultiple connected Unique Invoice Registration Numbers
      tableAAYesTable IDAcceptable only for document type 8.6 – Maximum permissible length 50
      totalCancelDeliveryOrdersxs:booleanNoTotal Cancellation Indicator of Delivery NotesAcceptable only for document type 8.6

      Remarks

      • The exchangeRate field is the exchange rate of the currency in relation to the euro. Must be filled in only when the currency does not have a EUR value.
      • The currency code is derived from the corresponding list according to the ISO4217 standard.
      • The correlatedInvoices element is a list and contains the MARKs of the correlated documents
      • In the case of no document series being issued, the series field must have the value 0
      • The selfPricing field defines whether it is a Self-Pricing Invoice
      • The possible values of the movePurpose and invoiceType fields are described in detail in the corresponding Reference tables
      • The field fuelInvoice defines whether it is a document of sale of liquid fuel and is allowed to be sent only in the case of providers.
      • The possible values of the specialInvoiceCategory field are described in detail in the corresponding Reference table
      • The possible values of the invoiceVariationType field are described in detail in the corresponding Reference table. This field is not allowed for transmission via the provider channel. Also details on how to use them from an operational point of view are described in the relevant operational document.
      • The otherCorrelatedEntities field (Other correlated entities) is a list of type EntityType
      • The structure of the otherCorrelatedEntities type is described below
      • The structure of the otherDeliveryNoteHeader type is described below
      • The isDeliveryNote field indicates whether the document is also a delivery note (e.g. document type 1.1 – Sales Invoice; if isDeliveryNote = true, it is also a delivery/dispatch note and additional delivery details must be sent)
      • The otherMovePurposeTitle field is filled when movePurpose = 19 (Other movements) and sets the title of the other movement
      • The thirdPartyCollection field indicates whether the business using Payment Means as a payment-services user collects on behalf of third parties (document type 8.4 – POS Collection Receipt) or returns transaction amounts on behalf of third parties (document type 8.5 – POS Refund Receipt)


      Other General Delivery Details

      FieldTypeRequiredDescriptionValid values
      loadingAddressAddressTypeYesLoading AddressIt is completed for documents that are delivery notes (e.g., 9.3) or invoices and delivery notes (isDeliveryNote = true)
      deliveryAddressAddressTypeYesDelivery AddressIt is completed for documents that are delivery notes (e.g., 9.3) or invoices and delivery notes (isDeliveryNote = true)
      startShippingBranchxs:intNoDispatching Start Location (Issuer)It is completed for documents that are delivery notes (e.g., 9.3) or invoices and delivery notes (isDeliveryNote = true)
      completeShippingBranchxs:intNoReceiving End Location (Recipient)It is completed for documents that are delivery notes (e.g., 9.3) or invoices and delivery notes (isDeliveryNote = true)

      Remarks:

      • The field loadingAddress is of type AddressType, which type is elaborated in a previous corresponding paragraph (Entity Address)
      • The field deliveryAddress is of type AddressType, which type is elaborated in a previous corresponding paragraph (Entity Address)
      • The field startShippingBranch specifies the branch from which the circulation begins, in case the circulation starts from a branch (installation) of the issuer of the document, which is different from the issuer’s branch for the delivery note
      • The field completeShippingBranch specifies the branch where the circulation will be completed, in case the circulation will be completed at a branch (installation) of the recipient of the document, which is different from the recipient’s branch for the delivery note

      • In loadingAddress/deliveryAddress fill a real postalCode and city (not -). A PartyType address alone is not enough.
      • Do not use otherDeliveryNoteHeader on 10.x (AADE error 205).
    4. Document details – Activity Undertaking Declaration



      FieldTypeRequiredDescriptionValid values
      lineNumberxs:intYesLine numberMin value = 1
      lineCodexs:stringNoItem code
      recTypexs:intNoLine TypeMin value = 1 Max value = 7. Values in the Reference tables (Invoice detail type / line type)
      fuelCodeFuelCodesNoFuel CodeFuel Codes list Values described in the Reference tables
      quantityxs:decimalNoQuantityMin value = 0 Default = 1
      lineQuantityxs:decimalNoQuantity only for use by the provider API if the quantity does not existMin value = 0 Default = 1
      classificationIdentifierxs:stringFor B2G only
      No
      CPV code
      measurementUnitxs:intNoUnit of quantityMin value = 1 Max value = 7. Values in the Reference tables
      measurementUnitLabelxs:stringNoRequired only when measurementUnit exists
      invoiceDetailTypexs:intNoSelf-billing remark1,2 Values described in the Reference tables
      lineUnitPricexs:decimalYesThe unit price
      totalNetPriceBeforeDiscountxs:decimalYesTotal price of all (units x quantity)
      totalDiscountValuexs:decimalYesTotal Discount ValueMin value = 0
      netValuexs:decimalYesNet valueMin value = 0 Decimal digits = 2
      vatCategoryxs:intYesVAT categoryMin = 1, Max = 8 Values described in the Reference tables For cases where VAT is not applied, the vatCategory field will have the value of 8
      vatCategoryPercentxs:decimalYesVAT category Description (ex. 24.00)
      vatAmountxs:decimalYesVAT amountMin value = 0 Decimal digits = 2
      vatExemptionCategoryxs:intNoVAT exemption categoryMin value = 1 Max value = 31 Values described in the Reference tables Required if the vatCategory indicates a 0% VAT rate
      dienergiaShipTypeNoArticle 27 of POL 1177/2018
      discountOptionxs:booleanNoVAT deduction rightFalse / True
      When False, it goes to code 310
      When True, it goes to code 349
      withheldAmountxs:decimalNoWithholding tax amountMin value = 0 Decimal digits = 2 Field is filled in when the corresponding tax exists (even if it is percentage)
      withheldPercentCategoryxs:intNoWithholding tax rate categoryMin value = 1 Max value = 12 Values described in the Reference tables
      stampDutyAmountxs: decimalNoAmount of digital transaction feesMin value = 0 Decimal digits = 2
      stampDutyPercentCategoryxs:intNoDigital Transaction Fee Category1, 2, 3 Values described in the Reference tables
      feesAmountxs:decimalNoFees amountMin value = 0 Decimal digits = 2 Field are filled in when the corresponding tax exists (even if it is percentage)
      feesPercentCategoryxs:intNoFees rate categoryMin value = 1 Max value = 22 Values described in the Reference tables
      otherTaxesPercentCategoryxs:intNoOther taxes rate categoryMin value = 1 Max value = 30 Values described in the Reference tables
      otherTaxesAmountxs:decimalNoOther taxes amountMin value = 0 Decimal digits = 2 Field are filled in when the corresponding tax exists (even if it is percentage)
      deductionsAmountxs:decimalNoDeductions amountMin value = 0 Decimal digits = 2
      lineDescriptionxs:string
      lineCommentsxs:stringNoLine commentsFilled in by user and used for information purposes only
      incomeClassificationIncomeClassificationTypeNoIncome classification
      expensesClassificationExpensesClassificationTypeNoExpenses classification
      itemDescrxs:stringNoItem descriptionMax 300 chars Acceptable only in the case of documents of the special tax free category

      Remarks

      • The possible values for the fields measurementUnit, invoiceDetailType, vatCategory, vatExemptionCategory, withheldPercentCategory, stampDutyPercentCategory, feesPercentCategory and otherTaxesPercentCategory are detailed in the respective Reference tables
      • The field vatExemptionCategory is necessary in the event that vatCategory indicates a 0% VAT rate category
      • For cases of accounting entries where VAT is not applied, the vatCategory field will have the value 8
      • Line comments are filled in by the user and are used for information purposes to the service
        • In the case of sending lines with recType = 2 (VAT fee line) and/or recType = 3 (Other Taxes line with VAT), it will be allowed at the same time, if desired, to send withholding/fees /other taxes/stamp/deductions and at document level and not necessarily per document summary line. In the cases of these lines, the amounts corresponding to VAT fees (recType = 2) or other taxes (recType =3 respectively, they will be sent to the field of the net value of the line (netValue), while the corresponding fields fee amount (feesAmount) or amount of other taxes (otherTaxesAmount) will not be filled. Also, other types of taxes/fees/retentions/stamps are not allowed to be sent on these lines (eg on a line with recType = 2 other taxes/deductions/withholding/stamp are not allowed on that line).
        • Sending with recType = 7 (negative sign of values) is allowed only in the case of transmission of documents 17.3, 17.4, 17.5 and 17.6 and in this way it is indicated that the line values are negative (in the respective value fields the values are written in their absolute/positive values). It is noted that in the sums of the values in the Document Summary section (InvoiceSummaryType) the sums of the absolute values of the corresponding values of the lines will be transmitted regardless of whether there are lines that bear or not the indication recType = 7.
      • The possible values for the fuelCode field are described in detail in the corresponding Reference table. It is allowed to send it only in the case of providers and if it is a document Fuel (invoiceHeaderType.fuelInvoice = true). The value 999 is used in the event that in a document other than fuel there is the need for invoicing and other charges. Only one line with this code is allowed per document and the net value of that line should be less than or equal to the sum of the net value of the remaining fuel codes of the document.



      Activity Undertaking Declaration

      Activity undertaking declaration is an element of type ShipType:

      FieldTypeRequiredDescription
      applicationIdxs:stringYesActivity Undertaking Declaration Number
      applicationDatexs:dateYesApplication date
      doyxs:stringNoTax Return Filing DOY
      shipIDxs:stringYesShip details

       

    5. Taxes totals
      Element TaxTotalsType which contains the total taxes has the following structure:


      FieldTypeRequiredDescriptionValid Values
      taxTypexs:byteYesType of tax1 = Withheld taxes
      2 = Fees
      3 = Other taxes
      4 = Digital transaction fee 5 = Deductions
      taxCategoryxs:byteYesTax categorySee tables 8.4 – 8.8 of appendix
      underlyingValuexs:decimalNoUnderlying value to which the tax refersMin value = 0
      Decimal digits = 2
      percentagexs:decimalFor B2G only
      Yes
      Deduction, withholding rateMin value = 0
      Decimal digits = 2
      reasonxs:stringFor B2G only
      Yes
      Deduction, withholding description
      taxAmountxs:decimalYesTax amountMin value = 0
      Decimal digits = 2
      Idxs:byteNoLine number
      ReducesPayablexs:booleanNoReduces the Payable amountDefault = False
      taxTypeLabelxs:stringNoDescription of the service

       

    6. Document summary


      FieldTypeRequiredDescriptionValid values
      totalNetValuexs:decimalYesTotal net valueMin value = 0 Decimal digits = 2
      totalVatAmountxs:decimalYesTotal VAT amountMin value = 0 Decimal digits = 2
      totalWithheldAmountxs:decimalYesTotal withholding taxes amountMin value = 0 Decimal digits = 2
      totalFeesAmountxs:decimalYesTotal fees amountMin value = 0 Decimal digits = 2
      totalStampDutyamountxs:decimalYesTotal digital transaction feeMin value = 0 Decimal digits = 2
      totalOtherTaxesAmountxs:decimalYesTotal other taxes amountMin value = 0 Decimal digits = 2
      totalDeductionsAmountxs:decimalYesTotal deductions amountMin value = 0 Decimal digits = 2
      totalGrossValuexs:decimalYesTotal gross valueMin value = 0 Decimal digits = 2
      incomeClassificationIncomeClassificationTypeNoIncome classification
      expensesClassificationExpensesClassificationTypeNoExpenses classification

      Remarks

      • Elements incomeClassification and expensesClassification contain the sums of all combinations of fields classificationType and classificationCategory that exist in the details of the invoice.
      • All tax summary fields contain the summary of corresponding taxes of the details of the invoice or in the taxesTotals element.
      • totalGrossValue = totalNetValue + totalVatAmount + totalFeesAmount + totalStampDutyamount + totalOtherTaxesAmount – totalWithheldAmount

    7. Income classification
      Element IncomeClassificationType which contains the income classification has the following structure:


      FieldTypeRequiredDescriptionValid values
      classificationTypexs: stringYesClassification typePossible values of fields are described in the appendix
      classificationCategoryxs: stringYesClassification categoryPossible values of fields are described in the appendix
      amountxs:decimalYesAmountMin value = 0 Decimal digits = 2
      idxs:byteNoSerial number of classificationUsed for serial numbering (1,2,3… etc.) of the classifications of a row

      Remarks

      • Due to sending documents through a Provider, it is not necessary to send a classification.
      • The id field is used for serial numbering (1,2,3…etc) of the designations within a line
      • Per myDATA §5.8 / §8.8–8.9: for income documents (invoiceType 1.x, 11.x, etc.) declare xmlns:N1="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" on InvoicesDoc. Do not use N2.

    8. Expenses classification
      Element ExpensesClassificationType which contains the expenses classification has the following structure:


      FieldTypeRequiredDescriptionValid values
      ClassificationTypexs: stringYesClassification typePossible values of fields are described in the appendix
      classificationCategoryxs: stringYesClassification categoryPossible values of fields are described in the appendix
      amountxs:decimalYesAmountMin value = 0 Decimal digits = 2
      idxs:byteNoSerial number of classificationUsed for serial numbering (1,2,3… etc.) of the classifications of a row

      Remarks

      • Due to sending documents through a Provider, it is not necessary to send a classification.
      • Per myDATA §5.9 / §8.10–8.11: for expense documents — e.g. <invoiceType>2.1</invoiceType> (service invoice) and generally 2.x types — declare xmlns:N1="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" on InvoicesDoc. Do not use N2; use N1 only with the expenses schema.

    9. Details
      The issuer and the counterpart are elements of type PartyType.


      FieldTypeRequiredDescriptionValid values
      API_IssuerAPI_IssuerTypeYesAPI_Issuer
      API_CounterpartAPI_CounterpartTypeYesAPI_Counterpart
      API_AdditionalsAPI_AdditionalsTypeYesAPI_Additionals

       

      1. Issuer
        Element API_IssuerType which contains the following structure:


        FieldTypeRequiredValid values
        IssuerNamexs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerProfessionxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerTaxofficexs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerAddressStreetxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerAddressNumberxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerAddressPostalCodexs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerAddressCityxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerAddressCountryxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerPhonexs: stringNoInvoice fields described in «Document structure, examples and tools»
        IssuerFaxxs: stringNoInvoice fields described in «Document structure, examples and tools»
        IssuerEmailxs: stringYesInvoice fields described in «Document structure, examples and tools»
        IssuerWebSitexs: stringNoInvoice fields described in «Document structure, examples and tools»
        IssuerRegistryNumberxs: stringNoInvoice fields described in «Document structure, examples and tools»
        IssuerEmtyLinexs: stringNoInvoice fields described in «Document structure, examples and tools»
        IssuerEmtyLine2xs: stringNoInvoice fields described in «Document structure, examples and tools»

         

      2. Counterpart
        Element API_ConterpartType which contains the following structure:


        FieldTypeRequiredValid values
        CounterpartCodexs: stringNoInvoice fields described in «Document structure, examples and tools»
        CounterpartNamexs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartVatxs: stringNoUsed on demand only if invoiceType is 11.1 or 11.2
        CounterpartProfessionxs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartTaxofficexs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartAddressStreetxs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartAddressNumberxs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartAddressPostalCodexs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartAddressCityxs: stringYesInvoice fields described in «Document structure, examples and tools»
        CounterpartAddressCountryxs: stringNoInvoice fields described in «Document structure, examples and tools»
        CounterpartPhonexs: stringNoInvoice fields described in «Document structure, examples and tools»
        CounterpartEmailxs: stringNoInvoice fields described in «Document structure, examples and tools»

         

      3. Additionals
        Element API_AdditionalsType which contains the following structure:


        FieldTypeRequiredValid values
        DocumentLabelxs: stringYesInvoice type description, described in «Document structure, examples and tools»
        DocumentCommentsxs: stringNoThe comments of the invoice, described in «Document structure, examples and tools»
        paymentMethodInvoiceLabelxs: stringYesThe description of the payment type, described in «Document structure, examples and tools»
        Logo_IDxs: stringNoDefault ID = 1. Can be set on API Portal
        DispatchPlaceFromxs: stringNoThe dispatch origin place
        DispatchPlaceToxs: stringNoThe dispatch destination place
        DispatchMethodxs: stringNoShipping method
        docTimexs: stringNoTime of issuance of document
        b2gxs:booleanFor B2G only YesYes, no on whether it concerns a document payable to the government
        buyerIdentifierxs: stringFor B2G only
        Yes
        The contracting authority
        contractReferencexs: stringFor B2G only
        Yes
        Registry Online Authorisation Reference Number
        projectReferencexs: stringFor B2G only
        Yes
        Contract identifier

         

  6. Additionals
    1. Data retrieval
      The call has the following characteristics:
      • /requesttransmitteddocs.php (GET)
      • Forwards the Provider RequestTransmittedDocs call to AADE and returns the AADE response body as-is.
      FieldTypeRequiredDescription
      issuerVATxs:longYesIssuer VAT (query parameter); forwarded to AADE as issuervat
      markxs:longYesUnique Invoice Registration Number (required by AADE). Forwarded as Mark; returns documents with MARK greater than this value
      maxMarkxs:longNoIf set, returns records with MARK less than or equal to this value
      nextPartitionKeyxs:stringNoPartial-retrieval parameter forwarded to AADE. Use the value from the previous response continuationToken
      nextRowKeyxs:stringNoPartial-retrieval parameter forwarded to AADE. Use the value from the previous response continuationToken

      Remarks:

      • A valid Api-Key header is required. SBZ checks that the key exists; it does not locally compare issuerVAT to the account VAT.
      • Sandbox is selected only with action=sandbox (_sand_ in the key does not auto-switch this call).
      • AADE parameters nextPartitionKey / nextRowKey are forwarded to AADE when provided. If the response contains continuationToken, call again with the same parameters plus those keys for the next page.
      • An invalid Api-Key returns a JSON message with statusCode 5006 (not XML).

      Endpoints

      Production environment

      https://api.sbz.gr/sign/requesttransmitteddocs.php?issuerVAT={issuerVAT}&mark={mark}&maxMark={maxMark}&nextPartitionKey={nextPartitionKey}&nextRowKey={nextRowKey}&action=production

      Sandbox environment

      https://api.sbz.gr/sign/requesttransmitteddocs.php?issuerVAT={issuerVAT}&mark={mark}&maxMark={maxMark}&nextPartitionKey={nextPartitionKey}&nextRowKey={nextRowKey}&action=sandbox

      FieldTypeRequiredDescription
      continuationTokencontinuationTokenTypeNoPartial retrieval element (if AADE returns it)
      InvoiceProviderTypeInvoiceProviderTypeNoList of transmitted document entries (AADE structure)
      issuerVATxs:stringYes*Document issuer VAT (*inside each InvoiceProviderType, when present)
      invoiceProviderMarkxs:longYes*Document MARK
      invoiceUidxs:stringYes*Document UID
      authenticationCodexs:stringYes*Provider authentication code

      Remarks:

      • Retrieval covers documents of the issuer requested with issuerVAT, not documents issued “to you” by other issuers.
      • Parameters nextPartitionKey / nextRowKey are forwarded to AADE when you send them on the SBZ call.
      • If AADE returns continuationToken, use its nextPartitionKey / nextRowKey on your next SBZ call (SBZ does not auto-follow pages).
    2. Unit balance check
      With a GET to check_balance.php you receive the account unit balance as plain text (not XML). Pass the API key in the user query parameter (production apikey, or sandbox apikey_sandbox when the key starts with sbz_sand_).


      Remarks:

      • Success: HTTP 200 and a body that is only the units number (e.g. 9502).
      • Invalid or unknown key: HTTP 403.
      • Per-user limit: at most one fresh read every 60 seconds; within that minute the last known balance is returned.
      • Per-IP limit: up to 30 calls / 60 seconds; over the limit HTTP 429.