Downloads export file

GET/out-gates-export

Downloads export file in specified format. For other parameters needed in url query, please send same as for /out-gates endpoint. When type is "Custom", columns parameter is required. The user must have either bulk-gates.view or bulk-gates-own.view, and the bulk-settings-supplier-sms.complete privilege to view data in the export file.

Privileges:

  • bulk-gates.view - Logged user can see data in export file for all gates.
  • bulk-gates-own.view - Logged user can see data in export file only for his own gates.
  • bulk-settings-supplier-sms.complete - Logged user can see data in export file for all gates, including password.

Auditlog Event: bulk.gates.v2.out.gate.export.get

Sortable Attributes:

  • id
  • name
  • cname
  • status
  • statusDt
  • supplierId
  • priceListId
  • billingAccountId
  • clientName
  • clientNameBrief
  • ownerName
  • ownerNameBrief
  • insertDt
  • setupDate
  • groupId
  • groupName
  • overVpn
  • vpnConnId
  • ownerBpId
  • ownerBpName
  • ownerBpBriefName
  • lastChangeDt

Filterable Attributes:

  • id
  • name
  • cname
  • status
  • statusDt
  • supplierId
  • priceListId
  • billingAccountId
  • clientName
  • clientNameBrief
  • ownerName
  • ownerNameBrief
  • insertDt
  • setupDate
  • groupId
  • groupName
  • overVpn
  • vpnConnId
  • ownerBpId
  • ownerBpName
  • ownerBpBriefName
  • lastChangeDt

Searchable Attributes:

  • id
  • name
  • cname
  • status
  • statusDt
  • supplierId
  • priceListId
  • overVpn
  • vpnConnId
  • connIndex
  • billingAccountId
  • insertDt
  • setupDate
  • lastChangeDt
  • groupId
  • priceListName
  • priceListStatus
  • clientId
  • clientName
  • clientNameBrief
  • ownerId
  • ownerName
  • ownerNameBrief
  • ownerBpId
  • ownerBpName
  • ownerBpBriefName
  • groupName
  • packageName
Base URL
https://api-cpaas.sms.es/bulk/gates/v2
Authentication

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

Request

Query parameters

typestringrequired

File type

Possible values: iTest, ARPTel, TelQ, Custom
formatstring

Export file format. Default is xlsx.

Possible values: csv, json, xlsx · Default: "xlsx"
columnsstring

Comma-separated list of column names to export. Required when type is "Custom".
Allowed columns: Id, GroupId, Name, Cname, SupplierId, PriceListId, Status, StatusDt, ConnIndex, BillingAccountId, OverVpn, VpnConnId, InsertDt, SetupDate, PriceListName, PriceListStatus, PackageName, PackageStatus, ClientId, ClientName, ClientNameBrief, OwnerId, OwnerName, OwnerNameBrief, OwnerBpId, OwnerBpName, OwnerBpBriefName, GroupName, LastChangeDt

allColumnsstring

Whether to export all columns. Default is NO.

Possible values: YES, NO · Default: "NO"
allstring

Return all records for given criteria (disables pagination)

Possible values: yes, no
page_numberinteger

Page number

Default: 1
page_sizeinteger

Page size

Default: 10
pagingstring

Paging options in form of &paging=page_num,page_size e.g. paging=1,10

sortstring

Sort options in form of sort=-attribute1,attribute2,-attribute3 (prefix - for descending)

qstring

Full-text search criteria

operator(fieldName)string

Search criteria can be specified using the following operators and attributes:

Available Operators:

  • isnull, isnotnull
  • isempty, isnotempty
  • eq, neq
  • startswith, endswith, contains, doesnotcontain
  • lt, lte, gt, gte
  • in, notin
  • between, notbetween

Special Cases:

  1. For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
  2. For operators [in, notin]: field value must be a comma-separated list. Example: in(status)=active,inactive
  3. For operators [between, notbetween]: field value must be two comma-separated values. Example: between(insertDt)=2024-01-01,2024-12-31

Default Behavior:

  • If operator is omitted, 'eq' is assumed
  • Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue

Example Usage:

  • startswith(name)=EUR # Find records where name starts with "EUR"
  • in(status)=active,inactive # Find records with active or inactive status
  • gt(maxAllowedPrice)=0.05 # Find records where max allowed price is greater than 0.05

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/bulk/gates/v2/out-gates-export?type=TYPE" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Export file

application/json
Example response
{}
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Example response
string
text/csv
Example response
string