Skip to content

Transactional Email UDR Report

This example retrieves transactional email Usage Detail Records (UDRs) for a given period. Each record covers the lifecycle from submission to final delivery status, including submission interface, processing metadata, routing, status codes, correlation IDs, message characteristics, and billing fields.

For complete field definitions and advanced options, see the GraphQL API Reference.

Query

query transactionalEmailUdrReport (
  $customerId: String!
  $datePeriod: DatePeriod!
  $pageIndex: Int
  $pageSize: Int
  $sort: SortDirection
) {
  transactionalEmailUdrReport(
    customerId: $customerId
    datePeriod: $datePeriod
    page: $pageIndex
    size: $pageSize
    sort: $sort
  ) {
    content {
      metaId
      metaVersion
      metaCreationTime
      customerId
      metaEntryInterface
      metaProcessingDomain
      metaDataCenter
      metaEnvironment
      jobId
      costCenter
      userId
      campaign
      usageId
      usageType
      usageCreationTime
      usageMsgFrom
      usageMsgFromDomain
      usageMsgTo
      usageMsgToDomain
      usageMsgSize
      usageSizeUnit
      usageStatus
      usageSubStatus
      usageStatusDetails
      usageStatusCode
      usageReference
      usageCorrelationId
    }
    pageIndex
    pageSize
    hasMoreElements
  }
}

Variables

{
	"customerId": "99999",
	"datePeriod": {
		"fromIncluded": "2025-06-04T08:00:00.000Z",
		"toExcluded": "2025-06-04T08:54:00.000Z"
	},
	"pageIndex": 0,
	"pageSize": 3,
	"sort": "ASC"
}

Response

{
	"data": {
		"transactionalEmailUdrReport": {
			"content": [
				{
					"metaId": "70cb3364-979f-4192-811c-8fa3ccaa658c",
					"metaVersion": 1,
					"metaCreationTime": "2025-06-04T08:00:15.803Z",
					"customerId": "99999",
					"metaEntryInterface": "smtp",
					"metaProcessingDomain": "de",
					"metaDataCenter": "fraix1",
					"metaEnvironment": "de.fraix1.transactional-email",
					"jobId": "a296e0e5-0652-4c94-8aab-5b3290d4d607",
					"costCenter": null,
					"userId": "99999_Retarus",
					"campaign": null,
					"usageId": "a296e0e5-0652-4c94-8abb-5b3270d4e607#00000000#1",
					"usageType": "mail",
					"usageCreationTime": "2025-06-04T08:00:06.178Z",
					"usageMsgFrom": "xxxxxx@retarus.de",
					"usageMsgFromDomain": "retarus.de",
					"usageMsgTo": "recipient@example.com",
					"usageMsgToDomain": "example.com",
					"usageMsgSize": 60036,
					"usageSizeUnit": "byte",
					"usageStatus": "OK",
					"usageSubStatus": "DELIVERED",
					"usageStatusDetails": "DELIVERED (OK): mail delivered",
					"usageStatusCode": "250",
					"usageReference": null,
					"usageCorrelationId": "a296j0e5-0652-4c94-8abb-5b4290s4e607#00000000#1"
				}
				...
			],
			"pageIndex": 0,
			"pageSize": 3,
			"hasMoreElements": true
		}
	}
}

Note
Additional records (up to the requested pageSize) are omitted for brevity.

Field reference

FieldDescription
metaIdUnique metadata identifier for this email record
metaVersionSchema version number of this record
metaCreationTimeUTC timestamp when the usage/metadata record was created in the system
customerIdRetarus customer account identifier
metaEntryInterfaceSubmission method used
metaProcessingDomainGeographic processing domain/region
metaDataCenterData center where the email was processed
metaEnvironmentFull processing environment identifier
jobIdUnique identifier for the email job
costCenterCost center for billing (null if not specified)
userIdUser account identifier used for submission
campaignMarketing campaign identifier (null if not specified)
usageIdUnique usage record identifier
usageTypeType of usage record (mail, bounce, etc.)
usageCreationTimeUTC timestamp when email usage processing was initiated
usageMsgFromSender email address
usageMsgFromDomainDomain portion of the sender email address
usageMsgToRecipient email address
usageMsgToDomainDomain portion of the recipient email address
usageMsgSizeTotal message size including headers and content
usageSizeUnitMeasurement units for usageMsgSize
usageStatusHigh-level delivery status
usageSubStatusDetailed delivery status
usageStatusDetailsHuman-readable detailed status description
usageStatusCodeSMTP status code associated with the final state
usageReferenceCustomer-provided reference
usageCorrelationIdCorrelation identifier for end-to-end tracking across systems