Skip to content

SMS Outbound UDR Report

This example retrieves outbound SMS Usage Detail Records (UDRs) for a given period. Each record covers the lifecycle from job submission through final delivery confirmation, including routing, billing, timing metrics, encoding, and status fields.

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

Query

query smsOutUdrReport (
  $customerId: String!
  $datePeriod: DatePeriod!
  $pageIndex: Int
  $pageSize: Int
  $sort: SortDirection
) {
  smsOutUdrReport(
    customerId: $customerId
    datePeriod: $datePeriod
    page: $pageIndex
    size: $pageSize
    sort: $sort
  ) {
    content {
      smsId
      requestId
      jobId
      trackingId
      reference
      recipientReference
      dataCenter
      customerId
      service
      serviceAccount
      serviceVersion
      billingCode
      statusRequests
      flash
      encoding
      express
      personalized
      src
      recipient
      recipientCountryCode
      recipientType
      numberOfParts
      processStatus
      statusCode
      status
      numberScheduleTs
      numberDeliveryTs
      numberStatusTs
      numberFinalTs
      deliveryProcessedTs
      jobFinalTs
    }
    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": {
		"smsOutUdrReport": {
			"content": [
				{
					"smsId": "S.20250604-100009.027-0mbhnqjiNMXNJXCAY9",
					"requestId": "R.20250604-100009.027-0mbhngiisJ08FR26M5",
					"jobId": "J.20250604-100009.017-2mbhnqiki7GYAZNZSF",
					"trackingId": "mbhmqiio-de2-usmss-29irrhd3vhs5i",
					"reference": "",
					"recipientReference": "00491702XXXXXX",
					"dataCenter": "DE2",
					"customerId": "99999",
					"service": "XML2SMS",
					"serviceAccount": "",
					"serviceVersion": "",
					"billingCode": "PASSCODE",
					"statusRequests": false,
					"flash": false,
					"encoding": "GSM-7",
					"express": true,
					"personalized": false,
					"src": "ACME",
					"recipient": "+491702XXXXXX",
					"recipientCountryCode": "DEU",
					"recipientType": "MOBILE",
					"numberOfParts": 1,
					"processStatus": "DONE",
					"statusCode": "200",
					"status": "SUC_ACC",
					"numberScheduleTs": "2025-06-04T08:00:09.027Z",
					"numberDeliveryTs": "2025-06-04T08:00:09.195Z",
					"numberStatusTs": null,
					"numberFinalTs": "2025-06-04T08:00:09.195Z",
					"deliveryProcessedTs": "2025-06-04T08:00:09.195Z",
					"jobFinalTs": "2025-06-04T08:00:13.579242Z"
				}
				...
			],
			"pageIndex": 0,
			"pageSize": 3,
			"hasMoreElements": true
		}
	}
}

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

Field reference

FieldDescription
smsIdUnique identifier for this SMS record
requestIdUnique identifier for the API request that created the SMS
jobIdUnique identifier for the SMS job (may include multiple messages)
trackingIdInternal tracking identifier for message routing and monitoring
referenceCustomer-provided reference for this message
recipientReferenceCustomer-provided recipient-specific reference
dataCenterData center where the message was processed
customerIdRetarus customer account identifier
serviceRetarus submission service
serviceAccountService account used for submission
serviceVersionAPI or service version used for submission
billingCodeCost center or department code for billing
statusRequestsWhether delivery status requests were enabled
flashWhether the message was sent as flash SMS (immediate display)
encodingMessage encoding used for message content (GSM-7, UCS-2, etc.)
expressWhether express/priority delivery was requested
personalizedWhether personalized content was used
srcSMS sender identifier
recipientDestination phone number in international format
recipientCountryCodeISO 3166-1 alpha-3 country code of the recipient
recipientTypeType of the recipient number
numberOfPartsNumber of SMS parts for multi-part messages (1 for single SMS)
processStatusOverall processing status
statusCodeHTTP-style status code indicating the delivery result
statusDetailed delivery status code
numberScheduleTsUTC timestamp when the message was scheduled for delivery
numberDeliveryTsUTC timestamp when the message was delivered to carrier
numberStatusTsUTC timestamp of the last status update
numberFinalTsUTC timestamp when the final delivery status was determined
deliveryProcessedTsUTC timestamp when delivery processing was completed
jobFinalTsUTC timestamp when the entire job finished processing