FlexyAPI documentation

Examples

1.3 Sales Invoice / Third Country Supplies

Examples for document 1.3 – Sales Invoice / Third Country Supplies.

Examples for document 1.3 – Sales Invoice / Third Country Supplies. How to send the requests: Examples.

Basic example

Test Company ΕΠΕ exports one Premium Widget for 100.00 € to US Customer Inc (USA) with VAT 0%.

{
  "document": {
    "provider": "flexy",
    "document_type": "invoice",
    "aa": "YYYYMMDDHHMMSS",
    "series": "EX",
    "date": "YYYY-MM-DD",
    "provider_details": {
      "document_type": "1.3",
      "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": "US Customer Inc",
      "legal_number": "US123456789",
      "legal_activity": "Retail Trade",
      "country": "US",
      "address": {
        "address_line": "5th Avenue 123",
        "city": "New York",
        "state": "NY",
        "zip": "10001",
        "country": "US",
        "branch_code": 0
      }
    },
    "items": [
      {
        "title": "Premium Widget",
        "description": "High-quality widget product",
        "quantity": "1.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "100.00",
        "unit_total": "100.00",
        "taxes": [
          {
            "title": "ΦΠΑ 0% (Εξαγωγή)",
            "tax_type": "1",
            "value_type": "percentage",
            "tax_sign": "+",
            "value": "0.00",
            "provider_code": "3",
            "on_vat": true,
            "provider_details": {
              "provider_code": "3"
            }
          }
        ],
        "provider_details": {
          "classification_category": "category1_1",
          "classification_type": "E3_561_006",
          "vat_classification_category": "7",
          "vat_exemption_category": "1"
        }
      }
    ],
    "totals": {
      "line_extension_amount": "100.00",
      "tax_exclusive_amount": "100.00",
      "tax_amount": "0.00",
      "tax_inclusive_amount": "100.00",
      "payable_amount": "100.00"
    },
    "tax_breakdown": [
      {
        "tax_category_id": "G",
        "tax_category_name": "ΦΠΑ 0% Εξαγωγή",
        "tax_rate_percent": "0.00",
        "taxable_amount": "100.00",
        "tax_amount": "0.00"
      }
    ],
    "public_notes": "Export to third country"
  }
}

With withholding tax

Two lines: 100.00 € at 8% withholding and 1000.00 € at 20% withholding (total withheld 208.00 €, payable 892.00 €).

{
  "document": {
    "provider": "flexy",
    "document_type": "invoice",
    "aa": "YYYYMMDDHHMMSS",
    "series": "EX2",
    "date": "YYYY-MM-DD",
    "provider_details": {
      "document_type": "1.3",
      "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": "US Customer Inc",
      "legal_number": "US123456789",
      "legal_activity": "Retail Trade",
      "country": "US",
      "address": {
        "address_line": "5th Avenue 123",
        "city": "New York",
        "state": "NY",
        "zip": "10001",
        "country": "US",
        "branch_code": 0
      }
    },
    "items": [
      {
        "title": "Premium Widget",
        "description": "High-quality widget product",
        "quantity": "1.00",
        "unit_measure": "ΤΕΜ",
        "unit_value": "100.00",
        "unit_total": "100.00",
        "taxes": [
          {
            "title": "ΦΠΑ 0% (Εξαγωγή)",
            "tax_type": "vat",
            "value_type": "percentage",
            "tax_sign": "+",
            "value": "0.00",
            "provider_code": "3",
            "on_vat": true,
            "provider_details": {
              "provider_code": "3"
            }
          },
          {
            "title": "Withholding Tax 8%",
            "tax_type": "withholding",
            "value_type": "percentage",
            "tax_sign": "-",
            "value": "8.00",
            "on_vat": false,
            "provider_details": {
              "provider_code": "7"
            }
          }
        ],
        "provider_details": {
          "classification_category": "category1_1",
          "classification_type": "E3_561_006",
          "vat_classification_category": "7",
          "vat_exemption_category": "1"
        }
      },
      {
        "title": "Consulting Services",
        "description": "Management consulting fees",
        "quantity": "2.00",
        "unit_measure": "ΥΠΗΡ",
        "unit_value": "500.00",
        "unit_total": "1000.00",
        "taxes": [
          {
            "title": "ΦΠΑ 0% (Εξαγωγή)",
            "tax_type": "vat",
            "value_type": "percentage",
            "tax_sign": "+",
            "value": "0.00",
            "provider_code": "3",
            "on_vat": true,
            "provider_details": {
              "provider_code": "3"
            }
          },
          {
            "title": "Withholding Tax 20%",
            "tax_type": "withholding",
            "value_type": "percentage",
            "tax_sign": "-",
            "value": "20.00",
            "on_vat": false,
            "provider_details": {
              "provider_code": "3"
            }
          }
        ],
        "provider_details": {
          "classification_category": "category1_1",
          "classification_type": "E3_561_006",
          "vat_classification_category": "7",
          "vat_exemption_category": "1"
        }
      }
    ],
    "totals": {
      "line_extension_amount": "1100.00",
      "tax_exclusive_amount": "1100.00",
      "tax_amount": "0.00",
      "tax_inclusive_amount": "1100.00",
      "payable_amount": "892.00"
    },
    "tax_breakdown": [
      {
        "tax_category_id": "G",
        "tax_category_name": "ΦΠΑ 0% Εξαγωγή",
        "tax_rate_percent": "0.00",
        "taxable_amount": "1100.00",
        "tax_amount": "0.00"
      }
    ],
    "public_notes": "Export to third country with withholding tax"
  }
}