InvoiceCreate
Supply either client_id or inline client. Omit number for automatic company numbering. Unknown fields are rejected.
Properties
| Name | Type | Description |
|---|---|---|
| attachments | array | |
| client | object | |
| client_id | string | |
| communication | string | |
| currency | string | |
| delivery_date | stringnull | Invoices and credit notes only. Date of the supply of goods or services when it differs from issue_date (Royal Decree no. 1, art. 5 §1 5°). Printed on the PDF and sent as Peppol BT-72. Without it, an |
| due_date | stringnull | ISO-8601 date or datetime. |
| external_id | string | Durable company/integration document identity. Required for crash/key-rotation recovery guarantees. |
| global_discount | object | |
| issue_date | stringnull | ISO-8601 date or datetime. |
| items | array | |
| note | string | |
| number | string | |
| object | Your own rendering of this document. It replaces the PDF we would have generated, so it is what gets archived, e-mailed and attached to a Peppol transmission. The structured fields still drive the UBL | |
| prepayments | array | Invoices only. Requires payments:write in addition to invoices:write. Counted in payments, never add twice. |
| prices_include_vat | boolean | |
| purchase_order | string | |
| supplier | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/ordogrid/json-schema/ordogrid-invoice-create-schema.json",
"title": "InvoiceCreate",
"description": "Supply either client_id or inline client. Omit number for automatic company numbering. Unknown fields are rejected.",
"x-generated": "2026-11-02",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/ordogrid-openapi.json#/components/schemas/InvoiceCreate",
"additionalProperties": false,
"allOf": [
{
"oneOf": [
{
"not": {
"required": [
"client"
]
},
"required": [
"client_id"
]
},
{
"not": {
"required": [
"client_id"
]
},
"required": [
"client"
]
}
]
}
],
"properties": {
"attachments": {
"items": {
"$ref": "#/$defs/InlineFile"
},
"type": "array"
},
"client": {
"$ref": "#/$defs/ParticipantInput"
},
"client_id": {
"pattern": "^[a-fA-F0-9]{24}$",
"type": "string"
},
"communication": {
"type": "string"
},
"currency": {
"type": "string"
},
"delivery_date": {
"description": "Invoices and credit notes only. Date of the supply of goods or services when it differs from issue_date (Royal Decree no. 1, art. 5 §1 5°). Printed on the PDF and sent as Peppol BT-72. Without it, an intra-community supply (vat_type intracommunity) states issue_date, or the credited invoice's date of supply on a credit note. On update, null removes it.",
"type": [
"string",
"null"
]
},
"due_date": {
"description": "ISO-8601 date or datetime.",
"type": [
"string",
"null"
]
},
"external_id": {
"description": "Durable company/integration document identity. Required for crash/key-rotation recovery guarantees.",
"maxLength": 200,
"type": "string"
},
"global_discount": {
"$ref": "#/$defs/DiscountInput"
},
"issue_date": {
"description": "ISO-8601 date or datetime.",
"type": [
"string",
"null"
]
},
"items": {
"items": {
"$ref": "#/$defs/DocumentItemInput"
},
"minItems": 1,
"type": "array"
},
"note": {
"type": "string"
},
"number": {
"type": "string"
},
"pdf": {
"allOf": [
{
"$ref": "#/$defs/InlineFile"
}
],
"description": "Your own rendering of this document. It replaces the PDF we would have generated, so it is what gets archived, e-mailed and attached to a Peppol transmission. The structured fields still drive the UBL."
},
"prepayments": {
"description": "Invoices only. Requires payments:write in addition to invoices:write. Counted in payments, never add twice.",
"items": {
"$ref": "#/$defs/PaymentCreate"
},
"maxItems": 100,
"type": "array"
},
"prices_include_vat": {
"type": "boolean"
},
"purchase_order": {
"type": "string"
},
"supplier": {
"anyOf": [
{
"$ref": "#/$defs/ParticipantInput"
},
{
"type": "null"
}
]
}
},
"required": [
"items",
"currency"
],
"type": "object",
"$defs": {
"AddressInput": {
"additionalProperties": false,
"properties": {
"city": {
"minLength": 1,
"type": "string"
},
"country": {
"description": "ISO 3166-1 alpha-2 code, e.g. BE. A country name in French, Dutch, English or German is accepted and stored as its code; an unknown country is a 400 INVALID_COUNTRY.",
"minLength": 1,
"type": "string"
},
"postal_code": {
"minLength": 1,
"type": "string"
},
"street": {
"minLength": 1,
"type": "string"
}
},
"required": [
"street",
"city",
"postal_code",
"country"
],
"type": "object"
},
"DiscountInput": {
"additionalProperties": false,
"properties": {
"amount_basis": {
"default": "net",
"description": "Basis of a fixed discount; existing inputs default to net.",
"enum": [
"net",
"gross"
],
"type": "string"
},
"type": {
"default": "percentage",
"enum": [
"percentage",
"fixed"
],
"type": "string"
},
"value": {
"description": "Exact decimal values may be strings. Non-negative; percentages at most 100.",
"type": [
"number",
"string"
]
}
},
"required": [
"value"
],
"type": "object"
},
"DocumentItemInput": {
"additionalProperties": false,
"anyOf": [
{
"properties": {
"vat_rate": {
"type": [
"number",
"string"
]
}
},
"required": [
"vat_rate"
]
},
{
"properties": {
"vat_type": {
"type": "string"
}
},
"required": [
"vat_type"
]
}
],
"properties": {
"description": {
"type": "string"
},
"discount": {
"$ref": "#/$defs/DiscountInput"
},
"margin_scheme": {
"$ref": "#/$defs/MarginScheme"
},
"price_basis": {
"default": "net",
"enum": [
"net",
"gross"
],
"type": "string"
},
"quantity": {
"type": [
"number",
"string"
]
},
"source_unit_price": {
"description": "Exact entered price in price_basis. Gross prices are authoritative; unit_price remains the compatible net price.",
"type": "string"
},
"unit": {
"description": "UN/ECE code, e.g. C62 (piece).",
"type": [
"string",
"null"
]
},
"unit_price": {
"type": [
"number",
"string"
]
},
"vat_rate": {
"description": "Decimal tax rate. Either vat_rate or vat_type must be non-null.",
"type": [
"number",
"string",
"null"
]
},
"vat_type": {
"enum": [
"standard",
"exempt",
"exempt_art44",
"reverse_charge",
"cocontractant",
"intracommunity",
"zero_rated",
"export",
"margin",
null
],
"type": [
"string",
"null"
]
}
},
"required": [
"description",
"quantity",
"unit_price"
],
"type": "object"
},
"InlineFile": {
"description": "A file sent inline. Maximum 5MB decoded.",
"properties": {
"content_base64": {
"contentEncoding": "base64",
"minLength": 1,
"type": "string"
},
"filename": {
"type": "string"
},
"mime_type": {
"type": "string"
}
},
"required": [
"filename",
"content_base64"
],
"type": "object"
},
"MarginScheme": {
"additionalProperties": false,
"properties": {
"jurisdiction": {
"const": "BE"
},
"profile": {
"const": "peppol_bis_billing_3"
},
"purchase_price": {
"description": "Non-negative purchase price; at most two decimal places for the supported EUR profile.",
"oneOf": [
{
"description": "Exact decimal currency amount; no binary arithmetic. Precision follows capabilities.currencies.",
"pattern": "^-?[0-9]+(?:\\.[0-9]+)?$",
"type": "string"
},
{
"type": "number"
}
]
},
"purchase_reference": {
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"scheme": {
"const": "second_hand_goods"
},
"supplier_status": {
"const": "private_person"
},
"tax_rate": {
"description": "Supported rate is exactly 21. Decimal strings such as 21, 21.0 and 21.00 are accepted.",
"oneOf": [
{
"const": 21
},
{
"type": "string"
}
]
}
},
"required": [
"scheme",
"jurisdiction",
"profile",
"purchase_price",
"purchase_reference",
"supplier_status",
"tax_rate"
],
"type": "object"
},
"ParticipantInput": {
"additionalProperties": false,
"properties": {
"address": {
"anyOf": [
{
"$ref": "#/$defs/AddressInput"
},
{
"type": "null"
}
]
},
"bic": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"iban": {
"type": [
"string",
"null"
]
},
"name": {
"minLength": 1,
"type": "string"
},
"phone": {
"type": [
"string",
"null"
]
},
"vat_number": {
"type": [
"string",
"null"
]
}
},
"required": [
"name"
],
"type": "object"
},
"PaymentCreate": {
"additionalProperties": false,
"properties": {
"amount": {
"description": "Positive amount; prefer a decimal string. Excess minor-unit precision is refused.",
"oneOf": [
{
"description": "Exact decimal currency amount; no binary arithmetic. Precision follows capabilities.currencies.",
"pattern": "^-?[0-9]+(?:\\.[0-9]+)?$",
"type": "string"
},
{
"type": "number"
}
]
},
"currency": {
"enum": [
"EUR",
"USD",
"GBP",
"JPY"
],
"type": "string"
},
"external_id": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"method": {
"enum": [
"cash",
"card",
"bank_transfer",
"direct_debit",
"other"
],
"type": "string"
},
"occurred_at": {
"description": "Confirmed movement occurrence with timezone.",
"format": "date-time",
"type": "string"
},
"reference": {
"maxLength": 500,
"type": [
"string",
"null"
]
}
},
"required": [
"external_id",
"amount",
"currency",
"method",
"occurred_at"
],
"type": "object"
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/ordogrid-invoice-create"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.