Commerce Cloud

Order Invoiced

Fired when Danoffice IT issues the invoice for the order.

The order.invoiced event is the final event in the standard order lifecycle. It is emitted when Danoffice IT issues the invoice for the fulfilled order. Use this event to trigger financial workflows such as three-way matching, cost allocation, or ERP posting.

When it fires

Payload

{
  "eventId": "c4e2a891-5f3b-47d9-a012-8bc74d3e6f21",
  "eventType": "order.invoiced",
  "timestamp": "2026-03-15T08:14:52.310Z",
  "data": {
    "order": {
      "no": "DK-SO0085391",
      "externalDocumentNo": "RITM0057743",
      "yourReference": "",
      "correlationId": "b8d42a17-9c6e-4f01-b235-71e30ac84d58"
    },
    "invoice": { "no": "DK-INV100923", "date": "22-01-26" },
    "customer": {
      "no": "CU004117",
      "name": "Acme Corporation A/S"
    },
    "receiver": {
      "company": "Acme Technology Group A/S",
      "contact": "Thomas Andersen",
      "phone": "28 46 93 71",
      "address": {
        "street": "Borupvang 3",
        "city": "Ballerup",
        "postalCode": "2750",
        "country": "DK"
      }
    },
    "lines": [
      {
        "lineNo": 10000,
        "no": "MYE73QN/A-RDY",
        "description": "Apple iPhone 16",
        "quantity": 1.0,
        "correlationId": "b8d42a17-9c6e-4f01-b235-71e30ac84d58",
        "ref1": "RITM0057743",
        "ref2": "SCTASK0088421",
        "ref3": "",
        "ref4": "",
        "categoryCode": "K/C",
        "categoryName": "Mobiles & GPS//Mobile Phones",
        "manufacturer": "Apple",
        "assetDetails": [
          {
            "id": 1031204,
            "assetTag": "",
            "serialNumber": "F9KN2LPXRM47",
            "imei1": "354891092847361",
            "imei2": ""
          }
        ]
      },
      {
        "lineNo": 20000,
        "no": "CH20EUWH7079",
        "description": "dbramante1928 re-charge - Strømforsyningsadapter - 20 Watt (",
        "quantity": 1.0,
        "correlationId": "b8d42a17-9c6e-4f01-b235-71e30ac84d58",
        "ref1": "RITM0057743",
        "ref2": "SCTASK0088421",
        "ref3": "",
        "ref4": "",
        "categoryCode": "K/D3",
        "categoryName": "Mobiles & GPS//Mobile Phones - Cables & Power Adapters",
        "manufacturer": "dbramante1928",
        "assetDetails": [
          {
            "id": 1031205,
            "assetTag": "",
            "serialNumber": "",
            "imei1": "",
            "imei2": ""
          }
        ]
      }
    ]
  }
}

Fields

Envelope

FieldTypeDescription
eventIdstringUnique identifier for this event delivery
eventTypestringAlways order.invoiced
timestampstringISO 8601 UTC timestamp of when the event was emitted

data.order

FieldTypeDescription
data.order.nostringThe sales order number in the Danoffice IT ERP
data.order.externalDocumentNostringThe reference you provided when placing the order (e.g. RITM number)
data.order.yourReferencestringSecondary free-text reference from the original order
data.order.correlationIdstringUnique reference linking this event to your original order

data.invoice

FieldTypeDescription
data.invoice.nostringThe invoice number issued by Danoffice IT
data.invoice.datestringInvoice date in dd-MM-yy format

data.customer

FieldTypeDescription
data.customer.nostringDanoffice IT customer account number
data.customer.namestringCustomer account name in the Danoffice IT ERP

data.receiver

FieldTypeDescription
data.receiver.companystringCompany name of the recipient
data.receiver.contactstringContact person at the delivery address
data.receiver.phonestringPhone number for the recipient
data.receiver.address.streetstringStreet address
data.receiver.address.citystringCity
data.receiver.address.postalCodestringPostal / ZIP code
data.receiver.address.countrystringISO 3166-1 alpha-2 country code

data.lines

Each entry in the lines array represents one invoiced order line.

FieldTypeDescription
lineNonumberLine number from the sales order
nostringItem/product number
descriptionstringProduct description
quantitynumberQuantity invoiced on this line
correlationIdstringCorrelation ID for the order this line belongs to
ref1ref4stringCustom reference fields passed in on the original order line
categoryCodestringInternal category code
categoryNamestringHuman-readable category path
manufacturerstringManufacturer name

data.lines.assetDetails

Each line may include one or more asset records for serialised items.

FieldTypeDescription
idnumberInternal asset record identifier
assetTagstringAsset tag, if assigned
serialNumberstringSerial number of the unit, if available
imei1stringPrimary IMEI number, for cellular devices
imei2stringSecondary IMEI number, for dual-SIM devices

What to do

  • Use invoice.no and order.externalDocumentNo together for three-way matching against your purchase order.
  • Post the invoice to your ERP or accounts payable system using the customer and invoice fields.
  • Store assetDetails (serial numbers, IMEI) if you need to reconcile invoiced items against your CMDB or asset register.
  • Use order.correlationId to link back to the corresponding order.shipped and order.delivered events.

Invoice date format

invoice.date is formatted as dd-MM-yy, not ISO 8601. Parse accordingly when ingesting into date-aware systems.

Invoice document

This event carries the invoice metadata. If you need the invoice PDF or a structured EDI document, contact your Danoffice IT account manager to discuss available formats for your account, as Commerce Cloud is not capable of delivering such formats in a webhook request.

On this page