FlexyAPI documentation

Examples

7.1 Contract – Income

Examples for document 7.1 – Contract – Income.

Examples for document 7.1 – Contract – Income. How to send the requests: Examples.

Basic example

Contract for professional services for 1000.00 € to Customer ABC ΕΠΕ with VAT 24% (1240.00 € total).

{
  "document": {
    "provider": "flexy",
    "document_type": "invoice",
    "aa": "YYYYMMDDHHMMSS",
    "series": "CT",
    "date": "YYYY-MM-DD",
    "provider_details": {
      "document_type": "7.1",
      "payment_method_type": "5"
    },
    "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
      }
    },
    "items": [
      {
        "title": "Contract Services",
        "description": "Professional services under contract agreement",
        "quantity": "1.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "1000.00",
        "unit_total": "1000.00",
        "taxes": [
          {
            "title": "ΦΠΑ 24%",
            "tax_type": "1",
            "value_type": "percentage",
            "tax_sign": "+",
            "value": "24.00",
            "provider_code": "1",
            "on_vat": true,
            "provider_details": {
              "provider_code": "1"
            }
          }
        ],
        "provider_details": {
          "classification_category": "category1_1",
          "classification_type": "E3_561_001",
          "vat_classification_category": "1",
          "vat_exemption_category": "0"
        }
      }
    ],
    "totals": {
      "line_extension_amount": "1000.00",
      "tax_exclusive_amount": "1000.00",
      "tax_amount": "240.00",
      "tax_inclusive_amount": "1240.00",
      "payable_amount": "1240.00"
    },
    "tax_breakdown": [
      {
        "tax_category_id": "VAT",
        "tax_category_name": "ΦΠΑ 24%",
        "tax_rate_percent": "24.00",
        "taxable_amount": "1000.00",
        "tax_amount": "240.00"
      }
    ],
    "public_notes": "Contract for professional services"
  }
}