List prices for one country, or one service across all countries
Pass country_code, service_code, or both.
By country (country_code): one row per orderable service in
that country. Add service_code to get just that service's row.
By service (service_code only): one row per country where that
service can be ordered right now, cheapest first (ties: more stock
first, then country code). Each row adds country_code and
country_name and is identical to that service's row in the
country's own price list. Use this to compare countries in one
request instead of calling this endpoint once per country. An
unknown service, or one with no stock anywhere, returns an empty
list.
price_cents is the price POST /orders locks for that service and
country when you do not pass tier; tier tells you which tier that
price lands on. You are normally charged exactly price_cents; if
the number can only be supplied at a higher price, you may be charged
more, but never more than 5% above max_price_cents (which defaults
to the locked price). Services missing from a country's list cannot
be ordered there right now. An unknown country returns 404 COUNTRY_NOT_FOUND; a known country with no stock returns an empty
list. Ordering with tier: premium explicitly may lock a different
price than the row shows.
Prices usually change once a day; pass max_price_cents when
ordering to guard against moves between your read and the purchase.
Cached — response carries Cache-Control: private, max-age=30.
Do not repeatedly query this endpoint: cache it client-side
and honour Retry-After on 429. Each request counts as one price
query, whichever mode you use. Standard accounts receive 1,000 price
queries per 5 hours and 10,000 per 7 days. VIP accounts receive 5,000
per 5 hours and 50,000 per 7 days.
| Name | Type | Required | Description |
|---|---|---|---|
| country_code | string | Optional | ISO 3166-1 alpha-2, e.g. US. Required unless service_code is given. |
| service_code | string | Optional | Service code from GET /catalog/services, e.g. whatsapp (case-insensitive). Alone: that service across all countries. With country_code: only that service's row. |
curl "https://api.dogesms.com/v1/catalog/prices?country_code=US" \ -H "Authorization: Bearer sk_live_…"
Price list.
service_code alone (one row per country).service_code alone.POST /orders locks right now (cents, default tier). Normally the amount charged; never more than 5% above max_price_cents, which defaults to this price.premium when the service has no standard supply in this country.| Status | Code | When |
|---|---|---|
| 400 | INVALID_REQUEST | INVALID_REQUEST — neither country_code nor service_code given, malformed country_code, or service_code longer than 64 characters. |
| 401 | API_KEY_MISSING API_KEY_INVALID_FORMAT API_KEY_INVALID API_KEY_REVOKED | Missing or invalid API key (API_KEY_MISSING, API_KEY_INVALID_FORMAT, API_KEY_INVALID, API_KEY_REVOKED). Emitted by the auth layer before the handler — flat shape, no request_id. |
| 403 | ACCOUNT_BANNED EMAIL_NOT_VERIFIED ACCOUNT_NOT_ACTIVE | Key is valid but the account is not eligible (ACCOUNT_BANNED, EMAIL_NOT_VERIFIED, ACCOUNT_NOT_ACTIVE). Emitted by the auth layer — flat shape. |
| 404 | COUNTRY_NOT_FOUND | COUNTRY_NOT_FOUND (only when country_code is given). |
| 429 | PRICE_RATE_LIMITED | PRICE_RATE_LIMITED — cache responses and retry after the returned reset time. Contact vip@dogesms.com if a verified business integration needs higher limits. |
Branch on code, not on the message. Full list: Errors.