Skip to content

Fax Inbound UDR Report

This example retrieves inbound fax Usage Detail Records (UDRs) for a given period. The response contains the full reception lifecycle (call details, document processing, email delivery, archiving status) plus billing-related fields.

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

Query

query faxInUdrReport (
  $customerId: String!
  $datePeriod: DatePeriod!
  $pageIndex: Int
  $pageSize: Int
  $sort: SortDirection
) {
  faxInUdrReport(
    customerId: $customerId
    datePeriod: $datePeriod
    page: $pageIndex
    size: $pageSize
    sort: $sort      
  ) {
    content {
      accountingService
      allPages
      archivePurgeAt
      archivingStatus
      baudRate
      billingCode
      callConnectedAt
      calledCountry
      calledCsId
      calledNumber
      calledNumberDisplay
      callingNumber
      callingTsId
      callStartedAt
      confirmedPages
      customerId
      deliveryRecipients
      deliverySender
      deliverySenderUser
      discardedPages
      docMimeType
      documentDeliveryStatus
      faxFileSize
      faxTransmitStatus
      keyTimestamp
      recipientsCount
      resolution
      secondaryDeliveryRecipients
      virtualPagesBilled
    }
    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": {
		"faxInUdrReport": {
			"content": [
				{
					"accountingService": "F2Mail",
					"allPages": 2,
					"archivePurgeAt": "2025-07-04T00:00:00Z",
					"archivingStatus": "SUCCEEDED",
					"baudRate": 9600,
					"billingCode": "Pos. 2 Fax",
					"callConnectedAt": null,
					"calledCountry": "DEU",
					"calledCsId": "+494023606XXXXXX",
					"calledNumber": "0049/40/23606XX-XXXX",
					"calledNumberDisplay": "+494023606XXXXXX",
					"callingNumber": "+499119XXXXXX",
					"callingTsId": "+499119XXXXXX",
					"callStartedAt": "2025-06-04T07:59:02.721Z",
					"confirmedPages": 2,
					"customerId": "99999",
					"deliveryRecipients": "fax_recipient@example.com",
					"deliverySender": "xxxxxxxxxx@retarus.net",
					"deliverySenderUser": "xxxxxx-service@retarus.net",
					"discardedPages": 0,
					"docMimeType": "image/tiff",
					"documentDeliveryStatus": "SUCCEEDED",
					"faxFileSize": 29412,
					"faxTransmitStatus": "OK",
					"keyTimestamp": "2025-06-04T08:00:04.721Z",
					"recipientsCount": 1,
					"resolution": "204x98",
					"secondaryDeliveryRecipients": "",
					"virtualPagesBilled": null
				}
				...
			],
			"pageIndex": 0,
			"pageSize": 3,
			"hasMoreElements": true
		}
	}
}

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

Field Reference

FieldDescription
accountingServiceService identifier for billing and cost allocation
allPagesTotal pages received in the fax document
archivePurgeAtUTC timestamp when the archived document will be automatically deleted
archivingStatusArchival status of the document
baudRateFax transmission speed in bits per second
billingCodeCost center or department identifier for internal billing
callConnectedAtUTC timestamp when the fax call was established
calledCountryISO 3166-1 alpha-3 country code of the called (destination) fax number
calledCsIdCalled subscriber identifier reported by the fax protocol
calledNumberOriginal dialed fax number as received
calledNumberDisplayStandardized international format of the called number
callingNumberSender's fax number in international format
callingTsIdCalling terminal subscriber identifier from the fax header
callStartedAtUTC timestamp when the fax transmission began
confirmedPagesNumber of pages successfully received without errors
customerIdRetarus customer account identifier
deliveryRecipientsPrimary email recipient(s) for delivered documents
deliverySenderSystem email address used as the sender for document delivery
deliverySenderUserService account used for email delivery
discardedPagesNumber of pages dropped due to errors or quality issues
docMimeTypeMIME type of the delivered document
documentDeliveryStatusEmail delivery status
faxFileSizeProcessed document size in bytes
faxTransmitStatusOverall reception result
keyTimestampPrimary record timestamp used for chronological sorting
recipientsCountTotal number of email recipients
resolutionFax resolution as horizontal x vertical DPI
secondaryDeliveryRecipientsAdditional recipient addresses (empty string if none)
virtualPagesBilledBilling page count when different from actual pages (null if same as allPages)