You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a specific schema. Error happens by extraction for PDF.
{ "type": "object", "properties": { "invoice": { "type": "object", "properties": { "invoiceNumber": { "type": "string", "description": "A unique identification of the Invoice.", "example": "inv2024/1" }, "issueDate": { "type": "string", "format": "date", "description": "The date when the Invoice was issued. Format 'YYYY-MM-DD'.", "example": "2024-02-21" }, "dueDate": { "type": "string", "format": "date", "description": "The date when the payment is due. Format 'YYYY-MM-DD'.", "example": "2024-03-21" }, "typeCode": { "type": "integer", "description": "A code specifying the functional type of the Invoice. Example codes:\n- **380**: Commercial invoice\n- **381**: Credit note", "example": 380 }, "paymentTerms": { "type": "string", "description": "A textual description of the payment terms that apply.", "example": "Net within 30 days" }, "paymentDescription": { "type": "string", "description": "A textual value used to establish a link between the payment and the Invoice.", "example": "Payment for Invoice inv2024/1, January 2024 Consulting Services" }, "accountingCost": { "type": "string", "description": "A textual value that specifies where to book the relevant data into the Buyer's financial accounts.", "example": "Ref444" }, "periodStartDate": { "type": "string", "format": "date", "description": "The date when the Invoice period starts. Format 'YYYY-MM-DD'.", "example": "2024-01-01" }, "periodEndDate": { "type": "string", "format": "date", "description": "The date when the Invoice period ends. Format 'YYYY-MM-DD'.", "example": "2024-01-31" }, "buyerReference": { "type": "string", "description": "An identifier assigned by the Buyer used for internal routing purposes.", "example": "992-90009-96" }, "orderReference": { "type": "string", "description": "An identifier of a referenced purchase order, issued by the Buyer.", "example": "Ref123" }, "contractReference": { "type": "string", "description": "The identification of a contract.", "example": "Ref456" }, "projectReference": { "type": "string", "description": "The identification of the project the invoice refers to.", "example": "Ref789" }, "salesOrderReference": { "type": "string", "description": "An identifier of a referenced sales order, issued by the Seller.", "example": "Ref111" }, "awardReference": { "type": "string", "description": "The identification of the call for tender or lot the invoice relates to.", "example": "Ref222" }, "despatchAdviceReference": { "type": "string", "description": "An identifier of a referenced despatch advice.", "example": "DA20240815-001" }, "receiptAdviceReference": { "type": "string", "description": "An identifier of a referenced receiving advice.", "example": "RA20240816-002" }, "payeeReference": { "type": "string", "description": "Seller identifier or bank assigned creditor identifier.", "example": "SE123456789012" }, "mandateReference": { "type": "string", "description": "Unique identifier assigned by the Payee for referencing the direct debit mandate.", "example": "MD1234567890-SEPA" }, "currencyCode": { "type": "string", "description": "The currency in which all Invoice amounts are given. ISO 4217 alpha-3 code.", "example": "EUR" } }, "required": [ "invoiceNumber", "issueDate", "dueDate", "typeCode", "buyerReference", "currencyCode" ] }, "company": { "type": "object", "properties": { "name": { "type": "string", "description": "The full formal name by which the Seller is registered.", "example": "Webware internet solutions GmbH" }, "description": { "type": "string", "description": "Additional legal information relevant for the Seller.", "example": "IT services company" }, "tradingName": { "type": "string", "description": "A name by which the Seller is known, other than Seller name.", "example": "Webware" }, "addressLine": { "type": "string", "description": "The main address line in an address.", "example": "Teichstraße 14-16" }, "addressLine2": { "type": "string", "description": "An additional address line in an address.", "example": "Building A, Floor 3" }, "addressLine3": { "type": "string", "description": "An additional address line in an address.", "example": "Suite 500" }, "city": { "type": "string", "description": "The city where the Seller address is located.", "example": "Kassel" }, "zip": { "type": "string", "description": "The postal code of the Seller address.", "example": "34130" }, "subCountry": { "type": "string", "description": "The subdivision of a country (e.g., state, region).", "example": "Hessen" }, "country": { "type": "string", "description": "Country code (ISO 3166-1 alpha-2).", "example": "DE" }, "vatId": { "type": "string", "description": "The Seller's VAT identifier.", "example": "DE279247134" }, "partyEndpointId": { "type": "string", "description": "Identifies the Seller's electronic address.", "example": "DE279247134" }, "partyEndpointSchema": { "type": "string", "description": "The identification scheme identifier of the Seller electronic address.", "example": "9930" }, "legalRegistrationId": { "type": "string", "description": "An identifier issued by an official registrar that identifies the Seller as a legal entity.", "example": "987654321" }, "legalRegistrationScheme": { "type": "string", "description": "The identification scheme identifier of the Seller legal registration identifier.", "example": "0002" }, "partyId": { "type": "string", "description": "Seller identifier or bank assigned creditor identifier.", "example": "5060012349998" }, "partyScheme": { "type": "string", "description": "The identification scheme identifier of the Seller identifier.", "example": "0088" }, "contactName": { "type": "string", "description": "A contact point for a legal entity or person.", "example": "Julia Berestova" }, "contactPhone": { "type": "string", "description": "A phone number for the contact point.", "example": "+49 (0) 561 56014568" }, "contactEmail": { "type": "string", "description": "An email address for the contact point.", "example": "[email protected]" } }, "required": [ "name", "addressLine", "city", "zip", "country", "vatId", "contactName", "contactPhone", "contactEmail" ] }, "customer": { "type": "object", "properties": { "name": { "type": "string", "description": "The full name of the Buyer.", "example": "DB InfraGO AG" }, "description": { "type": "string", "description": "Buyer additional legal information.", "example": "Share capital" }, "tradingName": { "type": "string", "description": "A name by which the Buyer is known, other than Buyer name.", "example": "DB InfraGO" }, "addressLine": { "type": "string", "description": "The main address line in an address.", "example": "Elisabeth-Schwarzhaupt-Platz 1" }, "addressLine2": { "type": "string", "description": "An additional address line in an address.", "example": "c/o DB AG" }, "addressLine3": { "type": "string", "description": "An additional address line in an address.", "example": "SSC DE" }, "city": { "type": "string", "description": "The city where the Buyer's address is located.", "example": "Berlin" }, "zip": { "type": "string", "description": "The postal code of the Buyer address.", "example": "10115" }, "subCountry": { "type": "string", "description": "The subdivision of a country.", "example": "Berlin" }, "country": { "type": "string", "description": "Country code (ISO 3166-1 alpha-2).", "example": "DE" }, "vatId": { "type": "string", "description": "The Buyer's VAT identifier.", "example": "DE199861757" }, "partyEndpointId": { "type": "string", "description": "Identifies the Buyer's electronic address.", "example": "987654321" }, "partyEndpointScheme": { "type": "string", "description": "The identification scheme identifier of the Buyer electronic address.", "example": "9930" }, "legalRegistrationId": { "type": "string", "description": "An identifier issued by an official registrar that identifies the Buyer as a legal entity.", "example": "" }, "legalRegistrationSchema": { "type": "string", "description": "The identification scheme identifier of the Buyer legal registration identifier.", "example": "0007" }, "partyId": { "type": "string", "description": "An identifier of the Buyer.", "example": "SE8765456787" }, "partyIdSchema": { "type": "string", "description": "The identification scheme identifier of the Buyer identifier.", "example": "0088" }, "contactName": { "type": "string", "description": "A contact point for a legal entity or person.", "example": "Jens Jensen" }, "contactPhone": { "type": "string", "description": "A phone number for the contact point.", "example": "+49 561 56014777" }, "contactEmail": { "type": "string", "description": "An email address for the contact point.", "example": "[email protected]" } }, "required": [ "name", "addressLine", "city", "zip", "country", "contactName", "contactPhone", "contactEmail" ] }, "delivery": { "type": "object", "properties": { "partyName": { "type": "string", "description": "Deliver to party name.", "example": "DB InfraGO AG" }, "partyId": { "type": "string", "description": "Deliver to location identifier.", "example": "83745498753497" }, "partyScheme": { "type": "string", "description": "Deliver to location identifier identification scheme identifier.", "example": "0088" }, "date": { "type": "string", "format": "date", "description": "Actual delivery date. Format 'YYYY-MM-DD'.", "example": "2024-02-15" }, "addressLine": { "type": "string", "description": "Deliver to address line 1.", "example": "Stettiner Straße 92a" }, "addressLine2": { "type": "string", "description": "Deliver to address line 2.", "example": "Regionalbereich Ost" }, "addressLine3": { "type": "string", "description": "Deliver to address line 3.", "example": "C54" }, "city": { "type": "string", "description": "Deliver to city.", "example": "Prenzlau" }, "zip": { "type": "string", "description": "Deliver to postal code.", "example": "17291" }, "subCountry": { "type": "string", "description": "Deliver to country subdivision.", "example": "Brandenburg" }, "country": { "type": "string", "description": "Deliver to country code (ISO 3166-1 alpha-2).", "example": "DE" } }, "required": ["date", "addressLine", "city", "zip", "country"] }, "payee": { "type": "object", "properties": { "name": { "type": "string", "description": "Payee name.", "example": "Payee Name GmbH" }, "partyId": { "type": "string", "description": "Payee identifier or bank assigned creditor identifier.", "example": "DE279247134" }, "partyScheme": { "type": "string", "description": "Payee or bank assigned creditor identifier identification scheme identifier.", "example": "" }, "legalRegistrationId": { "type": "string", "description": "Payee legal registration identifier.", "example": "DE279247134" }, "legalRegistrationScheme": { "type": "string", "description": "Payee legal registration identifier identification scheme identifier.", "example": "0002" } }, "required": ["name", "partyId", "legalRegistrationId"] }, "notes": { "type": "array", "items": { "type": "object", "properties": { "noteText": { "type": "string", "description": "A textual note that gives unstructured information relevant to the Invoice.", "example": "Includes additional support services." }, "noteSubjectCode": { "type": "string", "description": "A code that classifies the type or subject of the note provided.", "example": "" } }, "required": ["noteText"] }, "description": "Notes related to the InvoiceFormat. Can be empty." }, "additionalDocuments": { "type": "array", "items": { "$ref": "#/components/schemas/AdditionalDocument" }, "description": "Additional documents related to the InvoiceFormat. Can be empty." }, "precedingInvoices": { "type": "array", "description": "Preceding invoices related to the InvoiceFormat. Can be empty." }, "invoiceDiscountsAndCharges": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceDiscountAndCharge" }, "description": "Invoice discounts and charges related to the InvoiceFormat. Can be empty." }, "bankDetails": { "type": "array", "description": "Bank details related to the InvoiceFormat. Can be empty." }, "taxes": { "type": "array", "description": "Taxes related to the InvoiceFormat. Cannot be empty." }, "items": { "type": "array", "description": "Items related to the InvoiceFormat. Cannot be empty." } } }
The text was updated successfully, but these errors were encountered:
I added a specific schema. Error happens by extraction for PDF.
{ "type": "object", "properties": { "invoice": { "type": "object", "properties": { "invoiceNumber": { "type": "string", "description": "A unique identification of the Invoice.", "example": "inv2024/1" }, "issueDate": { "type": "string", "format": "date", "description": "The date when the Invoice was issued. Format 'YYYY-MM-DD'.", "example": "2024-02-21" }, "dueDate": { "type": "string", "format": "date", "description": "The date when the payment is due. Format 'YYYY-MM-DD'.", "example": "2024-03-21" }, "typeCode": { "type": "integer", "description": "A code specifying the functional type of the Invoice. Example codes:\n- **380**: Commercial invoice\n- **381**: Credit note", "example": 380 }, "paymentTerms": { "type": "string", "description": "A textual description of the payment terms that apply.", "example": "Net within 30 days" }, "paymentDescription": { "type": "string", "description": "A textual value used to establish a link between the payment and the Invoice.", "example": "Payment for Invoice inv2024/1, January 2024 Consulting Services" }, "accountingCost": { "type": "string", "description": "A textual value that specifies where to book the relevant data into the Buyer's financial accounts.", "example": "Ref444" }, "periodStartDate": { "type": "string", "format": "date", "description": "The date when the Invoice period starts. Format 'YYYY-MM-DD'.", "example": "2024-01-01" }, "periodEndDate": { "type": "string", "format": "date", "description": "The date when the Invoice period ends. Format 'YYYY-MM-DD'.", "example": "2024-01-31" }, "buyerReference": { "type": "string", "description": "An identifier assigned by the Buyer used for internal routing purposes.", "example": "992-90009-96" }, "orderReference": { "type": "string", "description": "An identifier of a referenced purchase order, issued by the Buyer.", "example": "Ref123" }, "contractReference": { "type": "string", "description": "The identification of a contract.", "example": "Ref456" }, "projectReference": { "type": "string", "description": "The identification of the project the invoice refers to.", "example": "Ref789" }, "salesOrderReference": { "type": "string", "description": "An identifier of a referenced sales order, issued by the Seller.", "example": "Ref111" }, "awardReference": { "type": "string", "description": "The identification of the call for tender or lot the invoice relates to.", "example": "Ref222" }, "despatchAdviceReference": { "type": "string", "description": "An identifier of a referenced despatch advice.", "example": "DA20240815-001" }, "receiptAdviceReference": { "type": "string", "description": "An identifier of a referenced receiving advice.", "example": "RA20240816-002" }, "payeeReference": { "type": "string", "description": "Seller identifier or bank assigned creditor identifier.", "example": "SE123456789012" }, "mandateReference": { "type": "string", "description": "Unique identifier assigned by the Payee for referencing the direct debit mandate.", "example": "MD1234567890-SEPA" }, "currencyCode": { "type": "string", "description": "The currency in which all Invoice amounts are given. ISO 4217 alpha-3 code.", "example": "EUR" } }, "required": [ "invoiceNumber", "issueDate", "dueDate", "typeCode", "buyerReference", "currencyCode" ] }, "company": { "type": "object", "properties": { "name": { "type": "string", "description": "The full formal name by which the Seller is registered.", "example": "Webware internet solutions GmbH" }, "description": { "type": "string", "description": "Additional legal information relevant for the Seller.", "example": "IT services company" }, "tradingName": { "type": "string", "description": "A name by which the Seller is known, other than Seller name.", "example": "Webware" }, "addressLine": { "type": "string", "description": "The main address line in an address.", "example": "Teichstraße 14-16" }, "addressLine2": { "type": "string", "description": "An additional address line in an address.", "example": "Building A, Floor 3" }, "addressLine3": { "type": "string", "description": "An additional address line in an address.", "example": "Suite 500" }, "city": { "type": "string", "description": "The city where the Seller address is located.", "example": "Kassel" }, "zip": { "type": "string", "description": "The postal code of the Seller address.", "example": "34130" }, "subCountry": { "type": "string", "description": "The subdivision of a country (e.g., state, region).", "example": "Hessen" }, "country": { "type": "string", "description": "Country code (ISO 3166-1 alpha-2).", "example": "DE" }, "vatId": { "type": "string", "description": "The Seller's VAT identifier.", "example": "DE279247134" }, "partyEndpointId": { "type": "string", "description": "Identifies the Seller's electronic address.", "example": "DE279247134" }, "partyEndpointSchema": { "type": "string", "description": "The identification scheme identifier of the Seller electronic address.", "example": "9930" }, "legalRegistrationId": { "type": "string", "description": "An identifier issued by an official registrar that identifies the Seller as a legal entity.", "example": "987654321" }, "legalRegistrationScheme": { "type": "string", "description": "The identification scheme identifier of the Seller legal registration identifier.", "example": "0002" }, "partyId": { "type": "string", "description": "Seller identifier or bank assigned creditor identifier.", "example": "5060012349998" }, "partyScheme": { "type": "string", "description": "The identification scheme identifier of the Seller identifier.", "example": "0088" }, "contactName": { "type": "string", "description": "A contact point for a legal entity or person.", "example": "Julia Berestova" }, "contactPhone": { "type": "string", "description": "A phone number for the contact point.", "example": "+49 (0) 561 56014568" }, "contactEmail": { "type": "string", "description": "An email address for the contact point.", "example": "[email protected]" } }, "required": [ "name", "addressLine", "city", "zip", "country", "vatId", "contactName", "contactPhone", "contactEmail" ] }, "customer": { "type": "object", "properties": { "name": { "type": "string", "description": "The full name of the Buyer.", "example": "DB InfraGO AG" }, "description": { "type": "string", "description": "Buyer additional legal information.", "example": "Share capital" }, "tradingName": { "type": "string", "description": "A name by which the Buyer is known, other than Buyer name.", "example": "DB InfraGO" }, "addressLine": { "type": "string", "description": "The main address line in an address.", "example": "Elisabeth-Schwarzhaupt-Platz 1" }, "addressLine2": { "type": "string", "description": "An additional address line in an address.", "example": "c/o DB AG" }, "addressLine3": { "type": "string", "description": "An additional address line in an address.", "example": "SSC DE" }, "city": { "type": "string", "description": "The city where the Buyer's address is located.", "example": "Berlin" }, "zip": { "type": "string", "description": "The postal code of the Buyer address.", "example": "10115" }, "subCountry": { "type": "string", "description": "The subdivision of a country.", "example": "Berlin" }, "country": { "type": "string", "description": "Country code (ISO 3166-1 alpha-2).", "example": "DE" }, "vatId": { "type": "string", "description": "The Buyer's VAT identifier.", "example": "DE199861757" }, "partyEndpointId": { "type": "string", "description": "Identifies the Buyer's electronic address.", "example": "987654321" }, "partyEndpointScheme": { "type": "string", "description": "The identification scheme identifier of the Buyer electronic address.", "example": "9930" }, "legalRegistrationId": { "type": "string", "description": "An identifier issued by an official registrar that identifies the Buyer as a legal entity.", "example": "" }, "legalRegistrationSchema": { "type": "string", "description": "The identification scheme identifier of the Buyer legal registration identifier.", "example": "0007" }, "partyId": { "type": "string", "description": "An identifier of the Buyer.", "example": "SE8765456787" }, "partyIdSchema": { "type": "string", "description": "The identification scheme identifier of the Buyer identifier.", "example": "0088" }, "contactName": { "type": "string", "description": "A contact point for a legal entity or person.", "example": "Jens Jensen" }, "contactPhone": { "type": "string", "description": "A phone number for the contact point.", "example": "+49 561 56014777" }, "contactEmail": { "type": "string", "description": "An email address for the contact point.", "example": "[email protected]" } }, "required": [ "name", "addressLine", "city", "zip", "country", "contactName", "contactPhone", "contactEmail" ] }, "delivery": { "type": "object", "properties": { "partyName": { "type": "string", "description": "Deliver to party name.", "example": "DB InfraGO AG" }, "partyId": { "type": "string", "description": "Deliver to location identifier.", "example": "83745498753497" }, "partyScheme": { "type": "string", "description": "Deliver to location identifier identification scheme identifier.", "example": "0088" }, "date": { "type": "string", "format": "date", "description": "Actual delivery date. Format 'YYYY-MM-DD'.", "example": "2024-02-15" }, "addressLine": { "type": "string", "description": "Deliver to address line 1.", "example": "Stettiner Straße 92a" }, "addressLine2": { "type": "string", "description": "Deliver to address line 2.", "example": "Regionalbereich Ost" }, "addressLine3": { "type": "string", "description": "Deliver to address line 3.", "example": "C54" }, "city": { "type": "string", "description": "Deliver to city.", "example": "Prenzlau" }, "zip": { "type": "string", "description": "Deliver to postal code.", "example": "17291" }, "subCountry": { "type": "string", "description": "Deliver to country subdivision.", "example": "Brandenburg" }, "country": { "type": "string", "description": "Deliver to country code (ISO 3166-1 alpha-2).", "example": "DE" } }, "required": ["date", "addressLine", "city", "zip", "country"] }, "payee": { "type": "object", "properties": { "name": { "type": "string", "description": "Payee name.", "example": "Payee Name GmbH" }, "partyId": { "type": "string", "description": "Payee identifier or bank assigned creditor identifier.", "example": "DE279247134" }, "partyScheme": { "type": "string", "description": "Payee or bank assigned creditor identifier identification scheme identifier.", "example": "" }, "legalRegistrationId": { "type": "string", "description": "Payee legal registration identifier.", "example": "DE279247134" }, "legalRegistrationScheme": { "type": "string", "description": "Payee legal registration identifier identification scheme identifier.", "example": "0002" } }, "required": ["name", "partyId", "legalRegistrationId"] }, "notes": { "type": "array", "items": { "type": "object", "properties": { "noteText": { "type": "string", "description": "A textual note that gives unstructured information relevant to the Invoice.", "example": "Includes additional support services." }, "noteSubjectCode": { "type": "string", "description": "A code that classifies the type or subject of the note provided.", "example": "" } }, "required": ["noteText"] }, "description": "Notes related to the InvoiceFormat. Can be empty." }, "additionalDocuments": { "type": "array", "items": { "$ref": "#/components/schemas/AdditionalDocument" }, "description": "Additional documents related to the InvoiceFormat. Can be empty." }, "precedingInvoices": { "type": "array", "description": "Preceding invoices related to the InvoiceFormat. Can be empty." }, "invoiceDiscountsAndCharges": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceDiscountAndCharge" }, "description": "Invoice discounts and charges related to the InvoiceFormat. Can be empty." }, "bankDetails": { "type": "array", "description": "Bank details related to the InvoiceFormat. Can be empty." }, "taxes": { "type": "array", "description": "Taxes related to the InvoiceFormat. Cannot be empty." }, "items": { "type": "array", "description": "Items related to the InvoiceFormat. Cannot be empty." } } }
The text was updated successfully, but these errors were encountered: