FlexyAPI documentation

Examples

5.2 Credit Invoice / Non-Associated

Examples for document 5.2 – Credit Invoice / Non-Associated.

Examples for document 5.2 – Credit Invoice / Non-Associated. How to send the requests: Examples.

Basic example

Standalone credit note for 248.00 € with VAT 24% as a 200.00 € volume discount to a loyal customer, with no link to another document.

{
  "document": {
    "provider": "flexy",
    "document_type": "invoice",
    "aa": "YYYYMMDDHHMMSS",
    "series": "CN",
    "date": "YYYY-MM-DD",
    "provider_details": {
      "document_type": "5.2",
      "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": "Volume Discount",
        "description": "End-of-year volume discount for loyal customer",
        "quantity": "1.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "200.00",
        "unit_total": "200.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": "200.00",
      "tax_exclusive_amount": "200.00",
      "tax_amount": "48.00",
      "tax_inclusive_amount": "248.00",
      "payable_amount": "248.00"
    },
    "tax_breakdown": [
      {
        "tax_category_id": "VAT",
        "tax_category_name": "ΦΠΑ 24%",
        "tax_rate_percent": "24.00",
        "taxable_amount": "200.00",
        "tax_amount": "48.00"
      }
    ],
    "public_notes": "Standalone credit note - volume discount"
  }
}