Get Overall Traffic Report

GET/overall-traffic-reports

Returns Overall Traffic Report in JSON format.

Additional Rules:

  • If no embed fields are provided, the default embed fields will be used.
  • msgDt is only avaliable for hour grain.
  • If groupBy is provided all of fields must also be in the embed fields, if not API will add them.
  • If groupBy is provided and sellAmount is in the embed parameters, sellCurrency or sellCurrencyCode should be in the groupBy fields. If not API will add them.
  • If groupBy is provided and buyAmount is in the embed parameters, buyCurrency or buyCurrencyCode should be in the groupBy fields. If not API will add them.
  • If groupBy is provided and sellAmountInCurr, buyAmountInCurr, profit or intCost is in the embed parameters, currency or currencyCode should be in the groupBy fields. If not API will add them.

Aggergated Fields (this is just informative, they are aggregated if groupBy is provided):

  • sellAmount
  • inSmsCnt
  • inBilledSmsCnt
  • buyAmount
  • outSmsCnt
  • outBilledSmsCnt
  • sellAmountInCurr
  • buyAmountInCurr
  • intCost
  • intRequestCnt
  • profit
  • stProcessingCnt
  • stSentCnt
  • stRejectNackCnt
  • stRejectRulesCnt
  • stErrorCnt
  • stUnknownCnt

Sortable Fields:

  • customerId
  • customerBriefName
  • billingAccountId
  • billingAccountName
  • supplierId
  • supplierBriefName
  • gateBillingAccountId
  • gateBillingAccountName
  • accountId
  • accountName
  • gateId
  • gateName
  • countryName
  • countryCode2
  • operatorId
  • operatorName
  • currencyCode
  • sellCurrencyCode
  • buyCurrencyCode
  • mcc
  • mnc
  • msgDate
  • accountDim
  • billingAccountDim
  • customerDim
  • countryId
  • operatorDim
  • gateDim
  • billingGateDim
  • sellPrice
  • sellAmount
  • sellCurrency
  • inSmsCnt
  • inBilledSmsCnt
  • buyPrice
  • buyAmount
  • buyCurrency
  • outSmsCnt
  • outBilledSmsCnt
  • currency
  • sellAmountInCurr
  • buyAmountInCurr
  • intCost
  • intRequestCnt
  • profit
  • stProcessingCnt
  • stSentCnt
  • stRejectNackCnt
  • stRejectRulesCnt
  • stErrorCnt
  • stUnknownCnt
  • msgDt

Embeddable Fields:

  • msgDate
  • accountDim
  • billingAccountDim
  • customerDim
  • countryId
  • operatorDim
  • gateDim
  • billingGateDim
  • sellPrice
  • sellCurrency
  • buyPrice
  • buyCurrency
  • currency
  • customerId
  • billingAccountId
  • billingAccountName
  • supplierId
  • gateBillingAccountId
  • gateBillingAccountName
  • accountId
  • accountName
  • gateId
  • gateName
  • countryName
  • countryCode2
  • operatorId
  • operatorName
  • currencyCode
  • sellCurrencyCode
  • buyCurrencyCode
  • mcc
  • mnc
  • customerBriefName
  • supplierBriefName
  • isMobile
  • msgDt
  • sellAmount
  • inSmsCnt
  • inBilledSmsCnt
  • buyAmount
  • outSmsCnt
  • outBilledSmsCnt
  • sellAmountInCurr
  • buyAmountInCurr
  • intCost
  • intRequestCnt
  • profit
  • stProcessingCnt
  • stSentCnt
  • stRejectNackCnt
  • stRejectRulesCnt
  • stErrorCnt
  • stUnknownCnt
  • customerAccManagerId
  • customerAccManagerName
  • customerAccManagerEmail
  • supplierAccManagerId
  • supplierAccManagerName
  • supplierAccManagerEmail

GroupBy Fields:

  • msgDate
  • accountDim
  • billingAccountDim
  • customerDim
  • countryId
  • operatorDim
  • gateDim
  • billingGateDim
  • sellPrice
  • sellCurrency
  • buyPrice
  • buyCurrency
  • currency
  • customerId
  • billingAccountId
  • billingAccountName
  • supplierId
  • gateBillingAccountId
  • gateBillingAccountName
  • accountId
  • accountName
  • gateId
  • gateName
  • countryName
  • countryCode2
  • operatorId
  • operatorName
  • currencyCode
  • sellCurrencyCode
  • buyCurrencyCode
  • mcc
  • mnc
  • customerBriefName
  • supplierBriefName
  • isMobile

Filter Fields:

  • customerId
  • customerBriefName
  • billingAccountId
  • billingAccountName
  • supplierId
  • supplierBriefName
  • gateBillingAccountId
  • gateBillingAccountName
  • accountId
  • accountName
  • gateId
  • gateName
  • countryName
  • countryCode2
  • operatorId
  • operatorName
  • currencyCode
  • sellCurrencyCode
  • buyCurrencyCode
  • mcc
  • mnc
  • msgDate
  • accountDim
  • billingAccountDim
  • customerDim
  • countryId
  • operatorDim
  • gateDim
  • billingGateDim
  • sellPrice
  • sellAmount
  • sellCurrency
  • inSmsCnt
  • inBilledSmsCnt
  • buyPrice
  • buyAmount
  • buyCurrency
  • outSmsCnt
  • outBilledSmsCnt
  • currency
  • sellAmountInCurr
  • buyAmountInCurr
  • intCost
  • intRequestCnt
  • profit
  • stProcessingCnt
  • stSentCnt
  • stRejectNackCnt
  • stRejectRulesCnt
  • stErrorCnt
  • stUnknownCnt
  • msgDt

Searchable Fields:

  • billingAccountName
  • gateBillingAccountName
  • accountName
  • gateName
  • countryName

Pagination is not allowed for this endpoint.

Errors:

  • START_DT_MISSING - Start datetime is missing
  • END_DT_MISSING - End datetime is missing
  • START_DT_BAD_FORMAT - Start datetime is in bad format
  • END_DT_BAD_FORMAT - End datetime is in bad format
  • UNSUPPORTED_GRAIN - Requested grain is not supported
  • START_DATE_AFTER_END_DATE - Start date is after end date
  • TIME_SPAN_GREATER_THAN_365_DAYS - Time span is greater than 365 days
  • BULK_SETTINGS_NOT_FOUND - Bulk settings not found
  • MAX_EXECUTION_TIME_EXCEEDED - Max execution time exceeded

Privilege:

  • bulk-traffic-report-view
  • bulk-traffic-report-own.view
Base URL
https://api-cpaas.sms.es/bulk/traffic-report/v3
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Query parameters

qstring

search criteria

operator(fieldName)string

Search criteria operators: isnull, isnotnull, isempty, isnotempty, eq, neq, startswith, endswith, contains, doesnotcontain, lt, lte, gt, gte, in, notin, between, notbetween.

startDtstring (date-time)required

Start datetime (RFC3339) for the report

Example: 2024-01-01T00:00:00Z
endDtstring (date-time)required

End datetime (RFC3339) for the report

Example: 2024-01-31T23:59:59Z
sortstring

Comma-separated list of fields to sort by

Example: sellAmount,-buyAmount
embedstring

Comma-separated list of fields to include in the result

Example: customerId,billingAccountId,countryName
groupBystring

Comma-separated list of fields to group by

Example: customerId,countryId
grainstring

Aggregation grain

Possible values: day, hour · Default: "day"

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/traffic-report/v3/overall-traffic-reports?startDt=STARTDT&endDt=ENDDT" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Overall Traffic Report

application/json
dataobject[]
Show child attributes
accountDiminteger (int64)
accountIdinteger (int64)
accountNamestring
billingAccountDiminteger (int64)
billingAccountIdinteger (int64)
billingAccountNamestring
billingGateDiminteger (int64)
buyAmountnumber (double)
buyAmountInCurrnumber (double)
buyCurrencyinteger (int64)
buyCurrencyCodestring
buyPricenumber (double)
countryCode2string
countryIdinteger (int64)
countryNamestring
currencyinteger (int64)
currencyCodestring
customerAccManagerEmailstring
customerAccManagerIdinteger (int64)
customerAccManagerNamestring
customerBriefNamestring
customerDiminteger (int64)
customerIdinteger (int64)
gateBillingAccountIdinteger (int64)
gateBillingAccountNamestring
gateDiminteger (int64)
gateIdinteger (int64)
gateNamestring
inBilledSmsCntinteger (int64)
inSmsCntinteger (int64)
intCostnumber (double)
intRequestCntinteger (int64)
isMobileinteger (int64)
mccstring
mncstring
msgDatestring (date)
msgDtstring (date-time)
opOperatorIdinteger (int64)
operatorDiminteger (int64)
operatorNamestring
outBilledSmsCntinteger (int64)
outSmsCntinteger (int64)
profitnumber (double)
sellAmountnumber (double)
sellAmountInCurrnumber (double)
sellCurrencyinteger (int64)
sellCurrencyCodestring
sellPricenumber (double)
stErrorCntinteger (int64)
stProcessingCntinteger (int64)
stRejectNackCntinteger (int64)
stRejectRulesCntinteger (int64)
stSentCntinteger (int64)
stUnknownCntinteger (int64)
supplierAccManagerEmailstring
supplierAccManagerIdinteger (int64)
supplierAccManagerNamestring
supplierBriefNamestring
supplierIdinteger (int64)
metaobject
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
currentPageintegerrequired
perPageintegerrequired
totalintegerrequired
totalPagesintegerrequired
Example response
{
  "data": [
    {
      "accountDim": 0,
      "accountId": 0,
      "accountName": "string",
      "billingAccountDim": 0,
      "billingAccountId": 0,
      "billingAccountName": "string",
      "billingGateDim": 0,
      "buyAmount": 0,
      "buyAmountInCurr": 0,
      "buyCurrency": 0,
      "buyCurrencyCode": "string",
      "buyPrice": 0,
      "countryCode2": "string",
      "countryId": 0,
      "countryName": "string",
      "currency": 0,
      "currencyCode": "string",
      "customerAccManagerEmail": "string",
      "customerAccManagerId": 0,
      "customerAccManagerName": "string",
      "customerBriefName": "string",
      "customerDim": 0,
      "customerId": 0,
      "gateBillingAccountId": 0,
      "gateBillingAccountName": "string",
      "gateDim": 0,
      "gateId": 0,
      "gateName": "string",
      "inBilledSmsCnt": 0,
      "inSmsCnt": 0,
      "intCost": 0,
      "intRequestCnt": 0,
      "isMobile": 0,
      "mcc": "string",
      "mnc": "string",
      "msgDate": "2026-01-01",
      "msgDt": "2026-01-01T12:00:00Z",
      "opOperatorId": 0,
      "operatorDim": 0,
      "operatorName": "string",
      "outBilledSmsCnt": 0,
      "outSmsCnt": 0,
      "profit": 0,
      "sellAmount": 0,
      "sellAmountInCurr": 0,
      "sellCurrency": 0,
      "sellCurrencyCode": "string",
      "sellPrice": 0,
      "stErrorCnt": 0,
      "stProcessingCnt": 0,
      "stRejectNackCnt": 0,
      "stRejectRulesCnt": 0,
      "stSentCnt": 0,
      "stUnknownCnt": 0,
      "supplierAccManagerEmail": "string",
      "supplierAccManagerId": 0,
      "supplierAccManagerName": "string",
      "supplierBriefName": "string",
      "supplierId": 0
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "currentPage": 0,
      "perPage": 0,
      "total": 0,
      "totalPages": 0
    }
  }
}