Get Postpaid Bulk Traffic Report

GET/customer-invoices/{invoiceId}/traffic-reports

Returns Postpaid Bulk Traffic Report in JSON format.

Sorting is not allowed for this endpoint.

Pagination is not allowed for this endpoint.

Filter Fields:

  • countryId
  • countryName
  • operatorId
  • operatorName
  • inSmsCnt
  • msgDate
  • sellPrice
  • sellPriceSinceDt
  • mcc
  • mnc

Searchable Fields:

  • billingAccountName
  • countryName
  • operatorName
  • countryCode2
  • sellCurrencyCode
  • mnc

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

Path parameters

invoiceIdinteger (int64)required

Invoice ID

Example: 15

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.

startDatestring (date)

Start date for the report

Example: 2024-01-01
endDatestring (date)

End date for the report

Example: 2024-01-31

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/traffic-report/v3/customer-invoices/{invoiceId}/traffic-reports" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Postpaid Bulk Traffic Report

application/json
dataobject[]
Show child attributes
countryCode2string
countryIdinteger (int64)
countryNamestring
inSmsCntinteger (int64)
mccstring
mncstring
operatorIdinteger (int64)
operatorNamestring
sellPricenumber (double)
billingAccountIdinteger (int64)
billingAccountNamestring
billingTzstring
customerBriefNamestring
customerExtRefIdstring
customerIdinteger (int64)
endDtstring (date-time)
sellCurrencyinteger (int64)
sellCurrencyCodestring
startDtstring (date-time)
totalAmountnumber (double)
metaobject
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
currentPageintegerrequired
perPageintegerrequired
totalintegerrequired
totalPagesintegerrequired
Example response
{
  "data": [
    {
      "countryCode2": "string",
      "countryId": 0,
      "countryName": "string",
      "inSmsCnt": 0,
      "mcc": "string",
      "mnc": "string",
      "operatorId": 0,
      "operatorName": "string",
      "sellPrice": 0,
      "billingAccountId": 0,
      "billingAccountName": "string",
      "billingTz": "string",
      "customerBriefName": "string",
      "customerExtRefId": "string",
      "customerId": 0,
      "endDt": "2026-01-01T12:00:00Z",
      "sellCurrency": 0,
      "sellCurrencyCode": "string",
      "startDt": "2026-01-01T12:00:00Z",
      "totalAmount": 0
    }
  ],
  "meta": {
    "pagination": {
      "count": 0,
      "currentPage": 0,
      "perPage": 0,
      "total": 0,
      "totalPages": 0
    }
  }
}