Download OpenAPI specification:Download
API for a service for creating document binaries from document data.
org-id required | string ID of the organization whose data is being accessed. |
request_id required | string An identifier for the request. The identifier is issued by the client and can be used by the DCS to cache the generated document binary. A client must guarantee to use a different identifier for requests for a different document or with a different locale, output format specification, or duplicate flag. Note that changes in the meta data or the external data do not require a change in the request identifier. |
document_type required | string (DocumentType) Enum: "CREDIT_MEMO" "INVOICE" "PAYMENT_RECEIPT" "PRO_FORMA_INVOICE" |
document_data required | any (DocumentData) |
language | string <bcp47> [ 2 .. 5 ] characters The language in which the document shall be generated. The language is identified by a simple IETF BCP 47 language tag consisting of a two-letter language code from ISO 639-1 optionally followed by a '-' and a region subtag based on a two-letter country code from ISO 3166-1 alpha-2 written in upper case. For example, |
meta_data required | object (MetaData) Data that is associated with the "createDocument" request but is not relevant for the document itself. Consider for example, the request to create a binary for an "Invoice" document. While the meta data contains the IDs of the service location and device from which the document is requested, they are not the service location/device to be printed on the document. Those are provided as part of the document data. Note that the service location, device and staff member IDs are optional. They are omitted when the request is not triggered via user interaction on a client but by the enfore server platform on its own. |
output_format required | object (OutputFormatSpecification) Specifies the output format that the document binary created by the DCS must to conform to. ATTN: For now, only PDF without additional format specification is
used. The format type RECEIPT and the |
external_data | string <= 1024 characters External data that was returned by the DCS as result of a previous "create document" invocation. Note that this is reused across different output formats. |
as_duplicate required | boolean Default: false A flag indicating that a "duplicate" document binary is requested. ATTN: This flag is not used at the moment. |
OK
Invalid parameters were sent by the client
Credentials missing or not sufficient
Resource(s) not found or invalid identifier
Too many requests / rate-limited.
{- "request_id": "string",
- "document_type": "CREDIT_MEMO",
- "document_data": {
- "@type": "InvoiceData",
- "version": "1.0",
- "id": "string",
- "invoice_date": "2025-04-23T13:33:57Z",
- "invoice_number": "string",
- "creation_context": {
- "organization_info": {
- "name": "string",
- "address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "web_address": "string",
- "email": "user@example.com",
- "phone": "string",
- "fax": "string",
- "legal_info": [
- "string"
], - "registered_business_name": "string",
- "global_location_number": "string",
- "tax_number": "string",
- "eu_vat_number": "string"
}, - "sales_channel_info": {
- "id": "string",
- "name": "string"
}, - "location_info": {
- "id": "string",
- "name": "string",
- "address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "web_address": "string",
- "email": "user@example.com",
- "phone": "string",
- "fax": "string",
- "global_location_number": "string"
}, - "register_info": {
- "id": "string",
- "register_identifier": "string"
}, - "operator_info": {
- "id": "string",
- "name": "string",
- "staff_number": "string"
}
}, - "entertainment_expense_receipt": false,
- "issuer": {
- "@type": "OrganizationContactInformation",
- "organization": "string",
- "organization_name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "global_location_number": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "recipient": {
- "@type": "AnonymousContactInformation",
- "name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "customer": {
- "customer": {
- "@type": "AnonymousContactInformation",
- "name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "tax_registration_number": "string",
- "eu_vat_number": "string"
}, - "positions": [
- {
- "id": "string",
- "resource": {
- "id": "string",
- "name": "string",
- "brand_name": "string",
- "manufacturer_name": "string",
- "article_id": "string"
}, - "pricing_info": {
- "sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "standard_sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "standard_price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "pricing_origin": "REGISTER_UI",
- "fixed_price_reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}, - "promotion_reference": {
- "promotion_type": "OFFER_PROMOTION",
- "promotion_id": "string"
}
}, - "amount": {
- "value": 0,
- "unit": "AUD"
}, - "undiscounted_amount": {
- "value": 0,
- "unit": "AUD"
}, - "amount_including_dependencies": {
- "value": 0,
- "unit": "AUD"
}, - "discounts": [
- {
- "@type": "ManualDiscountApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "markups": [
- {
- "@type": "ManualMarkupApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "tax_info": {
- "taxes": [
- {
- "@type": "ValueAddedTaxReference",
- "id": "string",
- "tax_identifier": "CH_STANDARD_VAT_2008"
}
], - "tax_exemption": "UNIVERSAL_POSTAL_SERVICE_DE"
}, - "sales_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "number_of_sales_units": 0,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "position_order_data": {
- "order_reference_number": 0,
- "basket_item_references": [
- {
- "order_reference_number": 0,
- "line_item_id": "string",
- "line_item_sub_id": "string"
}
], - "special_instructions": "string",
- "unique_item_ids": [
- "string"
], - "lot": {
- "id": "string",
- "lot_number": "string"
}, - "selected_features": [
- {
- "name": "string",
- "value": {
- "@type": "StringFeatureValue",
- "value": "string"
}
}
], - "payout_item_reason": {
- "@type": "PlatformDefinedSalesOrderPayoutItemReason",
- "name": "DEPOSIT_RETURN"
}, - "custom_workflow_external_data": "string",
- "escrow_principal": {
- "contact": {
- "@type": "IndividualContactInformation",
- "individual": "string",
- "individual_name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "global_location_number": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "tax_number": "string",
- "eu_vat_number": "string"
}
}, - "additional_invoice_information": [
- {
- "type": "string",
- "text": [
- "string"
]
}
], - "options": [
- {
- "id": "string",
- "resource": {
- "id": "string",
- "name": "string",
- "brand_name": "string",
- "manufacturer_name": "string",
- "article_id": "string"
}, - "pricing_info": {
- "sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "standard_sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "standard_price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "pricing_origin": "REGISTER_UI",
- "fixed_price_reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}, - "promotion_reference": {
- "promotion_type": "OFFER_PROMOTION",
- "promotion_id": "string"
}
}, - "amount": {
- "value": 0,
- "unit": "AUD"
}, - "undiscounted_amount": {
- "value": 0,
- "unit": "AUD"
}, - "discounts": [
- {
- "@type": "ManualDiscountApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "markups": [
- {
- "@type": "ManualMarkupApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "tax_info": {
- "taxes": [
- {
- "@type": "ValueAddedTaxReference",
- "id": "string",
- "tax_identifier": "CH_STANDARD_VAT_2008"
}
], - "tax_exemption": "UNIVERSAL_POSTAL_SERVICE_DE"
}, - "unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "number_of_units": 0,
- "is_single_issue": false,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "default_number_of_units": 0,
- "included_in_position_price": false,
- "option_group_id": "string",
- "order_data": {
- "order_reference_number": 0,
- "basket_item_references": [
- {
- "order_reference_number": 0,
- "line_item_id": "string",
- "line_item_sub_id": "string"
}
], - "special_instructions": "string",
- "unique_item_ids": [
- "string"
], - "lot": {
- "id": "string",
- "lot_number": "string"
}, - "selected_features": [
- {
- "name": "string",
- "value": {
- "@type": "StringFeatureValue",
- "value": "string"
}
}
], - "payout_item_reason": {
- "@type": "PlatformDefinedSalesOrderPayoutItemReason",
- "name": "DEPOSIT_RETURN"
}, - "custom_workflow_external_data": "string",
- "escrow_principal": {
- "contact": {
- "@type": "IndividualContactInformation",
- "individual": "string",
- "individual_name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "global_location_number": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "tax_number": "string",
- "eu_vat_number": "string"
}
}
}
], - "extra_charges": [
- {
- "id": "string",
- "resource": {
- "id": "string",
- "name": "string",
- "brand_name": "string",
- "manufacturer_name": "string",
- "article_id": "string"
}, - "pricing_info": {
- "sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "standard_sales_price_unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "standard_price_per_unit": {
- "value": 0,
- "unit": "AUD"
}, - "pricing_origin": "REGISTER_UI",
- "fixed_price_reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}, - "promotion_reference": {
- "promotion_type": "OFFER_PROMOTION",
- "promotion_id": "string"
}
}, - "amount": {
- "value": 0,
- "unit": "AUD"
}, - "undiscounted_amount": {
- "value": 0,
- "unit": "AUD"
}, - "discounts": [
- {
- "@type": "ManualDiscountApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "markups": [
- {
- "@type": "ManualMarkupApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "tax_info": {
- "taxes": [
- {
- "@type": "ValueAddedTaxReference",
- "id": "string",
- "tax_identifier": "CH_STANDARD_VAT_2008"
}
], - "tax_exemption": "UNIVERSAL_POSTAL_SERVICE_DE"
}, - "unit": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "number_of_units": 0,
- "is_single_issue": false,
- "quantity": {
- "value": 0,
- "unit": "ENERGY_JOULES"
}, - "extra_charge_type": "DEPOSIT",
- "order_data": {
- "order_reference_number": 0,
- "basket_item_references": [
- {
- "order_reference_number": 0,
- "line_item_id": "string",
- "line_item_sub_id": "string"
}
], - "special_instructions": "string",
- "unique_item_ids": [
- "string"
], - "lot": {
- "id": "string",
- "lot_number": "string"
}, - "selected_features": [
- {
- "name": "string",
- "value": {
- "@type": "StringFeatureValue",
- "value": "string"
}
}
], - "payout_item_reason": {
- "@type": "PlatformDefinedSalesOrderPayoutItemReason",
- "name": "DEPOSIT_RETURN"
}, - "custom_workflow_external_data": "string",
- "escrow_principal": {
- "contact": {
- "@type": "IndividualContactInformation",
- "individual": "string",
- "individual_name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "global_location_number": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "tax_number": "string",
- "eu_vat_number": "string"
}
}
}
]
}
], - "use_net_amounts": false,
- "sub_total_amount": {
- "value": 0,
- "unit": "AUD"
}, - "total_gross_amount": {
- "value": 0,
- "unit": "AUD"
}, - "total_net_amount": {
- "value": 0,
- "unit": "AUD"
}, - "tax_info": {
- "applied_taxes": [
- {
- "tax": {
- "@type": "ValueAddedTaxReference",
- "id": "string",
- "tax_identifier": "CH_STANDARD_VAT_2008"
}, - "taxed_net_amount": {
- "value": 0,
- "unit": "AUD"
}, - "tax_amount": {
- "value": 0,
- "unit": "AUD"
}, - "gross_amount": {
- "value": 0,
- "unit": "AUD"
}, - "included_discounts": {
- "value": 0,
- "unit": "AUD"
}, - "included_markups": {
- "value": 0,
- "unit": "AUD"
}, - "already_taxed_amount": {
- "value": 0,
- "unit": "AUD"
}
}
], - "already_taxed_amount": {
- "value": 0,
- "unit": "AUD"
}, - "tax_exemption": "UNIVERSAL_POSTAL_SERVICE_DE",
- "not_taxable_amount": {
- "value": 0,
- "unit": "AUD"
}, - "tax_exempted_amount": {
- "value": 0,
- "unit": "AUD"
}
}, - "total_discount": {
- "value": 0,
- "unit": "AUD"
}, - "discounts": [
- {
- "@type": "ManualDiscountApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "markups": [
- {
- "@type": "ManualMarkupApplication",
- "amount": {
- "value": 0,
- "unit": "AUD"
}, - "description": "string",
- "reason": {
- "@type": "PlatformDefinedPriceModificationReason",
- "name": "DAMAGED"
}
}
], - "order_information": {
- "orders": [
- {
- "order_reference_number": 0,
- "order_id": "string",
- "order_number": "string",
- "is_partial_order": true,
- "fulfilled": true,
- "fulfillment_type": "OTC",
- "fulfillment_period": {
- "start": "2025-04-23",
- "end": "2025-04-23"
}, - "delivery_date": "2025-04-23",
- "delivery_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "recorded_for": "string"
}
]
}, - "payment_information": {
- "target": "PREPAYMENT",
- "due_date": "2025-04-23",
- "remaining_due_amount": {
- "value": 0,
- "unit": "AUD"
}, - "cash_discounts": [
- {
- "paid_until": "2025-04-23",
- "cash_discount_rate": 0
}
], - "alternative_payer": {
- "@type": "IndividualContactInformation",
- "individual": "string",
- "individual_name": "string",
- "contact_address": {
- "full_address": "string",
- "recipient_name": "string",
- "care_of": "string",
- "street_name": "string",
- "street_number": "string",
- "additional": "string",
- "city": "string",
- "zip": "string",
- "country_code": "AF"
}, - "contact_email": "user@example.com",
- "contact_phone": "string",
- "global_location_number": "string",
- "unique_instance_id": "string",
- "external_data": "string",
- "user_level_identifiers": [
- {
- "identifier": "string",
- "label": "string"
}
]
}, - "payments": [
- {
- "payment_date": "2025-04-23T13:33:57Z",
- "reverted_by": "string",
- "reversal_for": "string",
- "payment_amount": {
- "value": 0,
- "unit": "AUD"
}, - "used_amount": {
- "value": 0,
- "unit": "AUD"
}, - "tip_amount": {
- "value": 0,
- "unit": "AUD"
}, - "payment_method": "CASH",
- "payment_process_data": {
- "@type": "CashPaymentProcessData",
- "amount_given": {
- "value": 0,
- "unit": "AUD"
}, - "change_returned": {
- "value": 0,
- "unit": "AUD"
}
}
}
],
}, - "description": "string",
- "additional_invoice_information": [
- {
- "type": "string",
- "text": [
- "string"
]
}
], - "cash_register_security_data": {
- "@type": "TSECashRegisterSecurityData",
- "tse_serial_number": "string",
- "transaction_number": "string",
- "transaction_start_timestamp": "string",
- "transaction_end_timestamp": "string",
- "transaction_signature_counter": "string",
- "transaction_signature": "string",
- "transaction_hash_type": "string",
- "tse_public_key": "string",
- "time_format": "string",
- "tse_status": "string",
- "first_take_order_timestamp": "string",
- "qr_code_data": "string"
}, - "promotion_data": {
- "rewards": [
- {
- "promotion_name": "string",
- "description": "string",
- "identifier": "string"
}
], - "loyalty_program_data": [
- {
- "promotion": {
- "promotion_type": "OFFER_PROMOTION",
- "promotion_id": "string"
}, - "loyalty_points": {
- "number_of_points": 0,
- "label": "string"
}, - "subscription_identifier": "string",
- "additional_invoice_information": [
- {
- "type": "string",
- "text": [
- "string"
]
}
]
}
]
}
}, - "language": "strin",
- "meta_data": {
- "organization_id": "string",
- "service_location_id": "string",
- "device_id": "string",
- "staff_member_id": "string"
}, - "output_format": {
- "format_type": "PDF",
- "format_parameters": {
- "@type": "ReceiptFormatParameters"
}
}, - "external_data": "string",
- "as_duplicate": false
}
{- "title": "string",
- "detail": "string",
}