Maesn · Schema

InvoiceResponseDto

ERPAccountingIntegrationSoftware-as-a-Service

Properties

Name Type Description
id string
invoiceId string
addresses array
contactId string
createdDate string
currency string
discountAmount number Total discount applied to the invoice, in the document currency.
dueDate string
fileId string
invoiceDate string
invoiceNumber string
invoiceType string
journalCode string
lineAmountType string
lineItems array
name string
oneLineAddress string
paidDate string
paymentStatus string Best-effort payment/open-item status. Only populated by some source systems; `null` for all others. Prefer `status` for reliable lifecycle logic, and always handle the `null` case. See [Document statu
paymentTermDuration number
paymentTermId string
reference string
salesOrderId string
shippingDate string
status string The document's lifecycle status, populated across all source systems. Use this as the authoritative state for lifecycle and paid/unpaid logic; prefer it over the best-effort `paymentStatus`. See [Docu
sumNetAmount number Net amount of the invoice — the total before tax (excluding VAT).
taxRule string
totalAmount number Gross amount of the invoice — the net amount plus tax (the total payable, including VAT).
totalTaxAmount number Tax (VAT) amount of the invoice — the difference between the gross (`totalAmount`) and net (`sumNetAmount`) totals.
updatedDate string
View JSON Schema on GitHub

JSON Schema

maesn-invoice-response-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/maesn/main/json-schema/maesn-invoice-response-dto-schema.json",
  "title": "InvoiceResponseDto",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/maesn-openapi.json#/components/schemas/InvoiceResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "invoiceId": {
      "type": "string"
    },
    "addresses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Address"
      }
    },
    "contactId": {
      "type": "string"
    },
    "createdDate": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "enum": [
        "AED",
        "AFN",
        "ALL",
        "AMD",
        "ANG",
        "AOA",
        "ARS",
        "AUD",
        "AWG",
        "AZN",
        "BAM",
        "BBD",
        "BDT",
        "BGN",
        "BHD",
        "BIF",
        "BMD",
        "BND",
        "BOB",
        "BRL",
        "BSD",
        "BTN",
        "BWP",
        "BYR",
        "BZD",
        "CAD",
        "CDF",
        "CHF",
        "CLP",
        "CNY",
        "COP",
        "CRC",
        "CUC",
        "CVE",
        "CZK",
        "DJF",
        "DKK",
        "DOP",
        "DZD",
        "EEK",
        "EGP",
        "ERN",
        "ETB",
        "EUR",
        "FJD",
        "FKP",
        "GBP",
        "GEL",
        "GHS",
        "GIP",
        "GMD",
        "GNF",
        "GQE",
        "GTQ",
        "GYD",
        "HKD",
        "HNL",
        "HRK",
        "HTG",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "IQD",
        "IRR",
        "ISK",
        "JMD",
        "JOD",
        "JPY",
        "KES",
        "KGS",
        "KHR",
        "KMF",
        "KPW",
        "KRW",
        "KWD",
        "KYD",
        "KZT",
        "LAK",
        "LBP",
        "LKR",
        "LRD",
        "LSL",
        "LTL",
        "LVL",
        "LYD",
        "MAD",
        "MDL",
        "MGA",
        "MKD",
        "MMK",
        "MNT",
        "MOP",
        "MRO",
        "MUR",
        "MVR",
        "MWK",
        "MXN",
        "MYR",
        "MZM",
        "NAD",
        "NGN",
        "NIO",
        "NOK",
        "NPR",
        "NZD",
        "OMR",
        "PAB",
        "PEN",
        "PGK",
        "PHP",
        "PKR",
        "PLN",
        "PYG",
        "QAR",
        "RON",
        "RSD",
        "RUB",
        "SAR",
        "SBD",
        "SCR",
        "SDG",
        "SEK",
        "SGD",
        "SHP",
        "SLL",
        "SOS",
        "SRD",
        "SYP",
        "SZL",
        "THB",
        "TJS",
        "TMT",
        "TND",
        "TRY",
        "TTD",
        "TWD",
        "TZS",
        "UAH",
        "UGX",
        "USD",
        "UYU",
        "UZS",
        "VEB",
        "VND",
        "VUV",
        "WST",
        "XAF",
        "XCD",
        "XDR",
        "XOF",
        "XPF",
        "YER",
        "ZAR",
        "ZMK",
        "ZWR"
      ]
    },
    "discountAmount": {
      "description": "Total discount applied to the invoice, in the document currency.",
      "type": "number"
    },
    "dueDate": {
      "type": "string"
    },
    "fileId": {
      "type": "string"
    },
    "invoiceDate": {
      "type": "string"
    },
    "invoiceNumber": {
      "type": "string"
    },
    "invoiceType": {
      "type": "string",
      "enum": [
        "STANDARD"
      ]
    },
    "journalCode": {
      "type": "string"
    },
    "lineAmountType": {
      "type": "string",
      "enum": [
        "EXCLUSIVE",
        "INCLUSIVE",
        "NOTAX"
      ]
    },
    "lineItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoiceLineItemResponseDto"
      }
    },
    "name": {
      "type": "string"
    },
    "oneLineAddress": {
      "type": "string"
    },
    "paidDate": {
      "type": "string"
    },
    "paymentStatus": {
      "description": "Best-effort payment/open-item status. Only populated by some source systems; `null` for all others. Prefer `status` for reliable lifecycle logic, and always handle the `null` case. See [Document status fields](/standardization#document-status-fields).",
      "type": "string",
      "enum": [
        "PENDING",
        "PAID",
        "PARTLY_PAID",
        "CANCELED",
        "PARTIAL_CANCELLATION",
        "BAD_DEBT",
        "DEBITED"
      ]
    },
    "paymentTermDuration": {
      "type": "number"
    },
    "paymentTermId": {
      "type": "string"
    },
    "reference": {
      "type": "string"
    },
    "salesOrderId": {
      "type": "string"
    },
    "shippingDate": {
      "type": "string"
    },
    "status": {
      "description": "The document's lifecycle status, populated across all source systems. Use this as the authoritative state for lifecycle and paid/unpaid logic; prefer it over the best-effort `paymentStatus`. See [Document status fields](/standardization#document-status-fields).",
      "type": "string",
      "enum": [
        "DRAFT",
        "CORRECTIVE",
        "SUBMITTED",
        "DOCUMENT_CREATED",
        "OPEN",
        "PARTIALLY_PAID",
        "PAID",
        "PARTIALLY_OVERDUE",
        "OVERDUE",
        "VOIDED"
      ]
    },
    "sumNetAmount": {
      "description": "Net amount of the invoice — the total before tax (excluding VAT).",
      "type": "number"
    },
    "taxRule": {
      "type": "string",
      "enum": [
        "NET",
        "TAXFREE",
        "INTRACOMMUNITY_GOODS",
        "INTRACOMMUNITY_SERVICE",
        "EXPORT_SERVICE",
        "EXPORT_GOODS",
        "REVERSE_CHARGE",
        "GROSS",
        "CONSTRUCTION_SERVICE",
        "PHOTOVOLTAIC_EQUIPMENT",
        "SMALL_BUSINESS_VAT_EXEMPTION",
        "NON_DOMESTIC_SERVICE",
        "OSS_GOODS",
        "OSS_ELECTRONIC_SERVICES",
        "OSS_SERVICES"
      ]
    },
    "totalAmount": {
      "description": "Gross amount of the invoice — the net amount plus tax (the total payable, including VAT).",
      "type": "number"
    },
    "totalTaxAmount": {
      "description": "Tax (VAT) amount of the invoice — the difference between the gross (`totalAmount`) and net (`sumNetAmount`) totals.",
      "type": "number"
    },
    "updatedDate": {
      "type": "string"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "addressLine1": {
          "type": "string"
        },
        "addressLine2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "countryCode": {
          "type": "string",
          "enum": [
            "AD",
            "AE",
            "AF",
            "AG",
            "AI",
            "AL",
            "AM",
            "AO",
            "AQ",
            "AR",
            "AS",
            "AT",
            "AU",
            "AW",
            "AX",
            "AZ",
            "BA",
            "BB",
            "BD",
            "BE",
            "BF",
            "BG",
            "BH",
            "BI",
            "BJ",
            "BL",
            "BM",
            "BN",
            "BO",
            "BQ",
            "BR",
            "BS",
            "BT",
            "BV",
            "BW",
            "BY",
            "BZ",
            "CA",
            "CC",
            "CD",
            "CF",
            "CG",
            "CH",
            "CI",
            "CK",
            "CL",
            "CM",
            "CN",
            "CO",
            "CR",
            "CU",
            "CV",
            "CW",
            "CX",
            "CY",
            "CZ",
            "DE",
            "DJ",
            "DK",
            "DM",
            "DO",
            "DZ",
            "EC",
            "EE",
            "EG",
            "EH",
            "ER",
            "ES",
            "ET",
            "FI",
            "FJ",
            "FK",
            "FM",
            "FO",
            "FR",
            "GA",
            "GB",
            "GD",
            "GE",
            "GF",
            "GG",
            "GH",
            "GI",
            "GL",
            "GM",
            "GN",
            "GP",
            "GQ",
            "GR",
            "GS",
            "GT",
            "GU",
            "GW",
            "GY",
            "HK",
            "HM",
            "HN",
            "HR",
            "HT",
            "HU",
            "ID",
            "IE",
            "IL",
            "IM",
            "IN",
            "IO",
            "IQ",
            "IR",
            "IS",
            "IT",
            "JE",
            "JM",
            "JO",
            "JP",
            "KE",
            "KG",
            "KH",
            "KI",
            "KM",
            "KN",
            "KP",
            "KR",
            "KW",
            "KY",
            "KZ",
            "LA",
            "LB",
            "LC",
            "LI",
            "LK",
            "LR",
            "LS",
            "LT",
            "LU",
            "LV",
            "LY",
            "MA",
            "MC",
            "MD",
            "ME",
            "MF",
            "MG",
            "MH",
            "MK",
            "ML",
            "MM",
            "MN",
            "MO",
            "MP",
            "MQ",
            "MR",
            "MS",
            "MT",
            "MU",
            "MV",
            "MW",
            "MX",
            "MY",
            "MZ",
            "NA",
            "NC",
            "NE",
            "NF",
            "NG",
            "NI",
            "NL",
            "NO",
            "NP",
            "NR",
            "NU",
            "NZ",
            "OM",
            "PA",
            "PE",
            "PF",
            "PG",
            "PH",
            "PK",
            "PL",
            "PM",
            "PN",
            "PR",
            "PT",
            "PW",
            "PY",
            "QA",
            "RE",
            "RO",
            "RS",
            "RU",
            "RW",
            "SA",
            "SB",
            "SC",
            "SD",
            "SE",
            "SG",
            "SH",
            "SI",
            "SJ",
            "SK",
            "SL",
            "SM",
            "SN",
            "SO",
            "SR",
            "SS",
            "ST",
            "SV",
            "SX",
            "SY",
            "SZ",
            "TC",
            "TD",
            "TF",
            "TG",
            "TH",
            "TJ",
            "TK",
            "TL",
            "TM",
            "TN",
            "TO",
            "TR",
            "TT",
            "TV",
            "TW",
            "TZ",
            "UA",
            "UG",
            "UM",
            "US",
            "UY",
            "UZ",
            "VA",
            "VC",
            "VE",
            "VG",
            "VI",
            "VN",
            "VU",
            "WF",
            "WS",
            "YE",
            "YT",
            "ZA",
            "ZM",
            "ZW"
          ]
        },
        "postalCode": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "BILLING",
            "DELIVERY",
            "SELLING"
          ]
        }
      }
    },
    "InvoiceLineItemDimension": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "categoryName": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "InvoiceLineItemResponseDto": {
      "type": "object",
      "properties": {
        "lineItemId": {
          "type": "string"
        },
        "accountId": {
          "type": "string"
        },
        "createdDate": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "dimensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InvoiceLineItemDimension"
          }
        },
        "discountItemAmount": {
          "description": "Discount applied to the line item, in the document currency.",
          "type": "number"
        },
        "discountItemPercentage": {
          "description": "Discount applied to the line item, as a percentage.",
          "type": "number"
        },
        "grossAmount": {
          "description": "Gross amount of the line item — net plus tax (including VAT).",
          "type": "number"
        },
        "itemsAmount": {
          "description": "Line subtotal — unit price multiplied by quantity, before discount and tax.",
          "type": "number"
        },
        "itemId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "quantity": {
          "type": "number"
        },
        "taxCode": {
          "type": "string"
        },
        "taxRatePercentage": {
          "type": "number"
        },
        "unitAmount": {
          "description": "Price per unit, in the document currency.",
          "type": "number"
        },
        "updatedDate": {
          "type": "string"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/maesn-invoice-response-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.