FlexyAPI documentation

Examples

9.1 Associated Delivery Note

Examples for document 9.1 – Associated Delivery Note.

Examples for document 9.1 – Associated Delivery Note. How to send the requests: Examples.

Basic example

Replace <MARK> in related_documents with the MARK of a 9.2 consolidated delivery note you have already issued, e.g. from the basic 9.2 example.

{
  "document": {
    "provider": "flexy",
    "document_type": "invoice",
    "aa": "YYYYMMDDHHMMSS",
    "series": "DEL",
    "date": "YYYY-MM-DD",
    "provider_details": {
      "document_type": "9.1",
      "move_purpose": "1",
      "other_delivery_note_header": {
        "loading_address": {
          "street": "Πανεπιστημίου",
          "number": "123",
          "city": "Αθήνα",
          "postal_code": "10678"
        },
        "delivery_address": {
          "street": "Stadiou",
          "number": "10",
          "city": "Athens",
          "postal_code": "10562"
        }
      }
    },
    "issuer": {
      "legal_name": "Test Company ΕΠΕ",
      "legal_number": "<VAT NUMBER>",
      "legal_activity": "Χονδρικό Εμπόριο",
      "address": {
        "address_line": "Πανεπιστημίου 123",
        "city": "Αθήνα",
        "state": "Αττική",
        "zip": "10678",
        "country": "GR",
        "branch_code": 0
      }
    },
    "counterpart": {
      "legal_name": "Customer ABC ΕΠΕ",
      "legal_number": "159107845",
      "legal_activity": "Retail Trade",
      "address": {
        "address_line": "Stadiou 10",
        "city": "Athens",
        "state": "Attica",
        "zip": "10562",
        "country": "GR",
        "branch_code": 0
      }
    },
    "related_documents": [
      "<MARK>"
    ],
    "items": [
      {
        "title": "Product A",
        "description": "Delivered product A",
        "quantity": "10.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "0.00",
        "unit_total": "0.00",
        "provider_details": {
          "classification_category": "category3",
          "classification_type": "",
          "vat_classification_category": "8",
          "vat_exemption_category": "1"
        }
      },
      {
        "title": "Product B",
        "description": "Delivered product B",
        "quantity": "5.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "0.00",
        "unit_total": "0.00",
        "provider_details": {
          "classification_category": "category3",
          "classification_type": "",
          "vat_classification_category": "8",
          "vat_exemption_category": "1"
        }
      }
    ],
    "totals": {
      "line_extension_amount": "0.00",
      "tax_exclusive_amount": "0.00",
      "tax_amount": "0.00",
      "tax_inclusive_amount": "0.00",
      "payable_amount": "0.00"
    },
    "tax_breakdown": [
      {
        "tax_category_id": "O",
        "tax_category_name": "ΦΠΑ 0%",
        "tax_rate_percent": "0.00",
        "taxable_amount": "0.00",
        "tax_amount": "0.00"
      }
    ],
    "public_notes": "Related delivery note - warehouse to customer"
  }
}