InvoiceCraftly Developer Document API Structured invoicing API

EN16931-core readiness and structured XML.

Business capability
Accounts Receivable Management BC-200.30

Operations 2

POST /api/v1/invoices/readiness Check EN16931-core readiness #
POST /api/v1/documents/structured Generate EN16931-core structured XML #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/invoicecraftly:invoicecraftly-structured-invoicing-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

invoicecraftly-structured-invoicing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Invoicecraftly Structured invoicing API
  version: 1.0.0-beta
  description: 'Operations tagged Structured invoicing across 2 of this provider''s published API definitions: invoicecraftly-openapi.json, invoicecraftly-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://invoicecraftly.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Structured invoicing
  description: EN16931-core readiness and structured XML.
paths:
  /api/v1/invoices/readiness:
    post:
      tags:
      - Structured invoicing
      summary: Check EN16931-core readiness
      description: Return deterministic EN16931-core readiness diagnostics. This endpoint does not generate XML.
      operationId: checkInvoiceReadiness
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicStructuredArtifactRequestV1'
      responses:
        '200':
          description: Readiness result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReadinessResponse'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/AuthenticationFailed'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/TargetNotSupported'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    servers:
    - url: https://invoicecraftly.com
      description: Production
  /api/v1/documents/structured:
    post:
      tags:
      - Structured invoicing
      summary: Generate EN16931-core structured XML
      description: Return readiness diagnostics and, when ready, an EN16931-core UBL/XML artifact. This is not a Peppol BIS artifact and does not perform network delivery.
      operationId: generateStructuredInvoice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicStructuredArtifactRequestV1'
      responses:
        '200':
          description: Readiness result plus XML artifact when ready.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StructuredArtifactResponse'
        '400':
          $ref: '#/components/responses/InvalidRequest'
        '401':
          $ref: '#/components/responses/AuthenticationFailed'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/TargetNotSupported'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    servers:
    - url: https://invoicecraftly.com
      description: Production
components:
  schemas:
    StructuredArtifactResponse:
      allOf:
      - $ref: '#/components/schemas/ReadinessResponse'
      - type: object
        required:
        - artifact
        properties:
          artifact:
            oneOf:
            - type: 'null'
            - type: object
              additionalProperties: false
              required:
              - mediaType
              - content
              properties:
                mediaType:
                  type: string
                  const: application/xml
                content:
                  type: string
                  description: EN16931-core UBL/XML when ready.
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
          - code
          - message
          - requestId
          - details
          properties:
            code:
              type: string
              enum:
              - AUTHENTICATION_FAILED
              - INVALID_REQUEST
              - TARGET_NOT_SUPPORTED
              - RATE_LIMITED
              - RENDER_TIMEOUT
              - PDF_RENDER_FAILED
            message:
              type: string
            requestId:
              type:
              - string
              - 'null'
            details:
              type: array
              items: {}
    Logo:
      type: object
      additionalProperties: false
      required:
      - data
      - mimeType
      properties:
        data:
          type: string
          contentEncoding: base64
          description: Base64 image data. Decoded size is limited to 512 KiB.
        mimeType:
          type: string
          enum:
          - image/png
          - image/jpeg
    Branding:
      type: object
      additionalProperties: false
      properties:
        accentColor:
          type: string
          pattern: ^#[0-9a-fA-F]{3,8}$
        stampStyle:
          type: string
          enum:
          - round
          - square
          - none
        logo:
          $ref: '#/components/schemas/Logo'
    PublicStructuredArtifactRequestV1:
      type: object
      additionalProperties: false
      required:
      - document
      properties:
        document:
          $ref: '#/components/schemas/PublicDocumentV1'
        supplement:
          $ref: '#/components/schemas/ComplianceSupplementV1'
    TaxRegistrationIdentifier:
      type: object
      properties:
        value:
          type: string
          maxLength: 256
        taxSchemeId:
          type: string
          maxLength: 32
    Party:
      type: object
      additionalProperties: false
      required:
      - name
      - addressLines
      properties:
        name:
          type: string
          minLength: 1
        addressLines:
          type: array
          items:
            type: string
    LineItem:
      type: object
      additionalProperties: false
      required:
      - description
      - quantity
      - unitPrice
      - taxRate
      properties:
        description:
          type: string
          minLength: 1
        quantity:
          type: number
          exclusiveMinimum: 0
        unitPrice:
          type: number
          minimum: 0
        taxRate:
          type: number
          minimum: 0
          maximum: 100
        taxLabel:
          type: string
    ComplianceLine:
      type: object
      required:
      - sourceIndex
      properties:
        sourceIndex:
          type: integer
          minimum: 0
        unitCode:
          type: string
          maxLength: 8
        vatCategoryCode:
          type: string
          enum:
          - AE
          - B
          - E
          - G
          - K
          - L
          - M
          - O
          - S
          - Z
        vatExemptionReason:
          type: string
          maxLength: 256
        vatExemptionReasonCode:
          type: string
          maxLength: 64
    TaxIdMetadata:
      type: object
      properties:
        role:
          type: string
          enum:
          - seller-id
          - legal-registration
          - tax-registration
          - vat
        schemeId:
          type: string
          maxLength: 32
        taxSchemeId:
          type: string
          maxLength: 32
    ComplianceSupplementV1:
      type: object
      description: Optional EN16931-core metadata. Unknown nested fields are ignored by the current normalizer; listed fields are the supported public surface.
      properties:
        version:
          type: integer
          enum:
          - 1
        buyerReference:
          type: string
          maxLength: 256
        seller:
          $ref: '#/components/schemas/ComplianceParty'
        buyer:
          $ref: '#/components/schemas/ComplianceParty'
        lines:
          type: array
          maxItems: 250
          items:
            $ref: '#/components/schemas/ComplianceLine'
    Payment:
      type: object
      additionalProperties: false
      properties:
        bankName:
          type: string
        iban:
          type: string
        bic:
          type: string
        accountNumber:
          type: string
        routingNumber:
          type: string
        reference:
          type: string
        poNumber:
          type: string
        terms:
          type: string
        dueText:
          type: string
        qrMode:
          type: string
          enum:
          - ''
          - contact
          - epc
          - paymentLink
    ReadinessResponse:
      type: object
      required:
      - apiVersion
      - profileId
      - specificationIdentifier
      - ready
      - gaps
      properties:
        apiVersion:
          type: string
          const: v1
        profileId:
          type: string
          examples:
          - en16931-core
        specificationIdentifier:
          type: string
          examples:
          - urn:cen.eu:en16931:2017
        ready:
          type: boolean
        gaps:
          type: array
          items:
            type: object
            additionalProperties: true
    PostalAddress:
      type: object
      properties:
        countryCode:
          type: string
          pattern: ^[A-Za-z]{2}$
        city:
          type: string
          maxLength: 128
        postalCode:
          type: string
          maxLength: 128
        region:
          type: string
          maxLength: 128
    PublicDocumentV1:
      type: object
      additionalProperties: false
      required:
      - type
      - issueDate
      - currency
      - seller
      - buyer
      - items
      properties:
        type:
          type: string
          enum:
          - invoice
          description: Only invoice is currently supported.
        number:
          type: string
        issueDate:
          type: string
          format: date
        dueDate:
          type: string
          format: date
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          examples:
          - USD
          - EUR
          - DKK
          - NOK
        locale:
          type: string
          examples:
          - en-US
          - da-DK
          - nb-NO
        template:
          type: string
          enum:
          - ledger
          description: Only Ledger is currently supported.
        seller:
          $ref: '#/components/schemas/Party'
        buyer:
          $ref: '#/components/schemas/Party'
        items:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/LineItem'
        payment:
          $ref: '#/components/schemas/Payment'
        notes:
          type: string
        branding:
          $ref: '#/components/schemas/Branding'
    ComplianceParty:
      type: object
      properties:
        postalAddress:
          $ref: '#/components/schemas/PostalAddress'
        electronicAddressSchemeId:
          type: string
        taxId:
          $ref: '#/components/schemas/TaxIdMetadata'
        vatIdentifier:
          type: string
          maxLength: 256
        taxRegistrationIdentifier:
          $ref: '#/components/schemas/TaxRegistrationIdentifier'
    StructuredArtifactResponse_2:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    PublicStructuredArtifactRequestV1_2:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ReadinessResponse_2:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
  responses:
    PayloadTooLarge:
      description: Request body exceeds the accepted size.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    AuthenticationFailed:
      description: API key is missing, invalid, or unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    TargetNotSupported:
      description: The requested document type or template is recognized but not currently supported.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InvalidRequest:
      description: Request body is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ServiceUnavailable:
      description: A required service is unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  examples:
    ReadinessRequestNotReady:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ReadinessRequestReady:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: dk_live_*
externalDocs:
  description: Developer documentation
  url: https://invoicecraftly.com/developers/
x-refined-from:
- invoicecraftly-openapi.json
- invoicecraftly-openapi.json
x-provenance:
  method: harvested
  publisher: InvoiceCraftly Developer Document API
  source: https://invoicecraftly.com/developers/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)