Skip to main content

Provider-agnostic order submission

The API is largely standardized (uniform endpoints, data objects, status and error logic). However, deviations may occur depending on the provider, e.g.:

  • different required fields (mandatory vs. optional)
  • different character lengths / formats (e.g., different max lengths for names or IDs)
  • provider-specific validations (e.g., permitted value ranges, regex constraints)
  • different process steps / statuses (e.g., additional checks or follow-up questions)

Basic principle​

  1. Orders can be sent to our API in a standardized format.
  2. Our platform:
    • checks the syntax (schema),
    • checks business rules,
    • optionally adds defaults/normalization,
    • applies provider-specific rules.
  3. The order is forwarded to the provider.
  4. Status updates and result information are returned via the API (pull) or via events/webhooks (optional, if available).

Unified API contract​

2.1 Resources​

  • Order – order including contract and customer data
  • Customer – customer data
  • Product – product/tariff configuration
  • Address – installation and billing address

2.2 Shared validation logic​

Our platform uses a two-stage validation concept:

  1. Base schema validation (provider-agnostic)

    • required fields that are always needed
    • data types, basic formats (date, email, phone number)
    • basic length and value ranges
  2. Provider validation (provider-specific)

    • additional required fields per provider
    • differing length/format rules
    • provider-specific value lists and dependencies

Provider-specific differences​

Why are there differences?​

Providers have different technical systems and business logic. So that partners don’t need to build a completely separate integration for every provider, we abstract the differences as much as possible—however, in certain areas deviations remain necessary.

How are differences represented in the documentation?​

Provider-specific rules are consistently documented in the API reference, e.g.:

  • required-field matrix per provider
  • field constraints (min/max length, pattern, allowed values)
  • special logic / dependencies (e.g., “if product = X, then field Y is required”)
  • mapping notes (how a standardized field is used on the provider side)

Versioning & backward compatibility​

  • API version: Changes to the API contract are versioned (e.g., /v1, /v2).
  • Provider rules may change more frequently than the API contract.
  • Changes to provider-specific rules are, whenever possible:
    • designed to be backward compatible,
    • communicated with a change log,
    • accompanied by transition periods (if required).

Status model​

A unified status model helps abstract provider-side processes.

Typical statuses:

  • RECEIVED – order accepted (technical)
  • FORWARDED – forwarded to provider

Providers may have additional internal statuses; these are mapped to the standard model and can optionally be provided as a detailed status.


Error concept​

Error structure​

In case of errors, we provide structured information to enable automated handling.

  • code – stable error code
  • message – human-readable short description
  • field – affected field path (if relevant)
  • details – additional information (e.g., permitted values)

Typical error types​

  • Schema errors: wrong data type, missing base field
  • Validation errors: provider-specific required field missing, length exceeded
  • Process errors: provider not reachable, timeout, duplicate
  • Business rejection: order not allowed (e.g., availability, credit check, product not deliverable)