Get SMS OUT Price File#
Returns the SMS OUT price file of the plan assigned to the account in an SMS OUT domain (A2P, P2P or OTP), or only its headers.
GET downloads the prices of the plan as a gzipped CSV file. HEAD returns the headers
of the file without its body, so you can check whether your copy is current before you
download it. The three domains have the same file format; the path selects the domain.
File Format#
The file is a CSV file (UTF-8, LF line endings, a header row) compressed with gzip. Each row
is one price of the plan. Prices are in USD, VAT excluded. They are printed as the lookup
returns them: never rounded, with trailing zeros dropped and at least one decimal kept
(0.0, 1.5, 0.0525).
Column |
Description |
|---|---|
Source prefix |
Prefix of the sending number. Empty when the price applies to an SMS from any number. Same as |
Destination prefix |
Destination prefix. Empty when the price applies to any destination. Same as |
Country |
Destination country, by name. Same as |
MCC |
Mobile country code of the destination network. Empty when the price applies to any network. Same as |
MCC name |
Name of the mobile country code. Same as |
MNC |
Mobile network code of the destination network. Empty when the price applies to any network of the country. Same as |
MNC name |
Name of the mobile network. Same as |
Reject SMS |
|
Price |
Price per SMS. Empty when Reject SMS is |
The file leaves out some settings of a price, so two rows can look alike or show one destination at different prices.
Example of the file content:
Source prefix,Destination prefix,Country,MCC,MCC name,MNC,MNC name,Reject SMS,Price
,336,France,208,France,,,false,0.0525
,338,France,,,,,true,
,49151,Germany,262,Germany,1,Telekom Deutschland,false,0.075
,49151,Germany,262,Germany,2,Vodafone,false,0.078
Request#
Host: api-sms.didww.com (Sandbox: api-sms-sandbox.didww.com)
HTTP Method: GET or HEAD
URI Path:
Domain |
URI Path |
File name |
|---|---|---|
SMS OUT A2P |
|
|
SMS OUT P2P |
|
|
SMS OUT OTP |
|
|
The access token must list api-sms.didww.com in its aud. The read scope is
enough.
Request Headers#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
If-Modified-Since |
|
No |
The |
Response Headers#
Name |
Description |
|---|---|
Content-Disposition |
|
Last-Modified |
HTTP date of the later of the last change of the file content and the last change of the account’s plan assignment in this domain. Send it back in |
Cache-Control |
Always |
Accept-Ranges |
Always |
Vary |
Always |
Content-Length |
Size of the gzipped file in bytes. Not sent with |
No ETag is sent. A request that carries If-None-Match is always answered in full.
Examples#
http
1GET /v3/sms_out/a2p/prices.csv.gz HTTP/1.1
2Host: api-sms.didww.com
3Authorization: Bearer [access token]
curl
1curl -i -X GET https://api-sms.didww.com/v3/sms_out/a2p/prices.csv.gz -H "Authorization: Bearer [access token]"
response
1HTTP/1.1 200 OK
2Content-Type: application/gzip
3Content-Disposition: attachment; filename="sms_out_a2p_prices.csv.gz"
4Last-Modified: Wed, 14 Oct 2026 06:00:00 GMT
5Cache-Control: private
6Accept-Ranges: none
7Vary: Authorization
8Content-Length: 215384
To save the file with curl, use -o with a file name in place of -i:
curl -o sms_out_a2p_prices.csv.gz https://api-sms.didww.com/v3/sms_out/a2p/prices.csv.gz -H "Authorization: Bearer [access token]"
http
1GET /v3/sms_out/a2p/prices.csv.gz HTTP/1.1
2Host: api-sms.didww.com
3Authorization: Bearer [access token]
4If-Modified-Since: Wed, 14 Oct 2026 06:00:00 GMT
curl
1curl -i -X GET https://api-sms.didww.com/v3/sms_out/a2p/prices.csv.gz -H "If-Modified-Since: Wed, 14 Oct 2026 06:00:00 GMT" -H "Authorization: Bearer [access token]"
response
1HTTP/1.1 304 Not Modified
2Content-Disposition: attachment; filename="sms_out_a2p_prices.csv.gz"
3Last-Modified: Wed, 14 Oct 2026 06:00:00 GMT
4Cache-Control: private
5Accept-Ranges: none
6Vary: Authorization
With curl, send HEAD with -I (--head), not with -X HEAD. -X HEAD
changes only the method name: curl still expects the body that Content-Length
announces, and the command does not finish normally.
curl -I https://api-sms.didww.com/v3/sms_out/a2p/prices.csv.gz -H "Authorization: Bearer [access token]"
HEAD /v3/sms_out/a2p/prices.csv.gz HTTP/1.1
Host: api-sms.didww.com
Authorization: Bearer [access token]
HTTP/1.1 200 OK
Content-Disposition: attachment; filename="sms_out_a2p_prices.csv.gz"
Last-Modified: Wed, 14 Oct 2026 06:00:00 GMT
Cache-Control: private
Accept-Ranges: none
Vary: Authorization
Content-Length: 215384
Other Responses#
Error responses to GET are JSON:API error documents. Responses to HEAD carry no body.
Code |
Success |
Description |
|---|---|---|
304 |
Yes |
The file has not changed since the |
401 |
No |
Unauthorized. The bearer token was refused. The response carries |
403 |
No |
The token does not carry the |
404 |
No |
The account holds no price plan of the service in this domain, either no plan at all or a plan for which the service publishes no prices ( |
429 |
No |
The request budget of the account on this service for the current window is spent ( |
503 |
No |
The file could not be served, for example because the assigned plan has no generated file yet ( |