sms pricing
sms pricing
Peru SMS Pricing Guide: Compare Costs & API Providers
Complete Peru SMS pricing comparison for Twilio, Plivo, Sinch, Infobip, and SMS.to. Includes A2P market analysis, OSIPTEL regulations, and current mobile penetration statistics (109.8% in 2024).
Peru SMS Pricing Guide: Compare Costs & API Providers
Compare the top SMS API providers in Peru's market – Twilio, Plivo, Sinch, Infobip, and SMS.to – to find the right solution for your business. This guide breaks down pricing, features, and regulatory compliance so you can optimize your communication strategy and budget.
Typical Use Cases & ROI: Businesses use Peru SMS for two-factor authentication (typical ROI: 60–80% reduction in fraud), transaction alerts (95%+ open rates within 3 minutes), marketing campaigns (8–12% conversion rates for time-sensitive offers), appointment reminders (40–50% reduction in no-shows), and customer service notifications. A typical e-commerce business sending 50,000 transactional SMS monthly can expect monthly costs between $275–$960 depending on provider and carrier routing.
What Is the Current State of Peru's SMS Market?
OSIPTEL (Organismo Supervisor de la Inversión Privada en Telecomunicaciones) regulates Peru's SMS market. As of early 2024, Peru has 37.90 million cellular mobile connections, equivalent to 109.8% of the total population, with mobile penetration projected to reach 118% by late 2024. This high penetration rate – multiple subscriptions per person – makes mobile communication channels critical for reaching customers.
Source: Digital 2024: Peru – DataReportal
Market Size & Growth: The global A2P messaging market was valued at USD 73.1 billion in 2024 and is projected to reach USD 84.8 billion by 2029 (CAGR 3.0%). While specific Peru A2P volume data is not publicly disclosed by carriers, Latin America represents approximately 8–10% of global A2P traffic. Peru's four major mobile operators (Claro 37.52%, Movistar 24.41%, Entel 23.44%, Bitel 14.36%) collectively handle an estimated 800–1,200 million A2P messages annually.
Sources: MarketsandMarkets A2P Report, Sent.dm Peru SMS Guide
OTT messaging apps have impacted personal SMS usage, but business SMS (A2P messaging) remains vital for two-factor authentication, transaction alerts, marketing campaigns, customer service, and critical communications. Choose your SMS provider carefully – this decision directly impacts your business operations.
OSIPTEL Regulatory Framework
OSIPTEL ensures fair competition and consumer protection by requiring providers to follow specific regulations. In 2024–2025, OSIPTEL focuses on improving broadband coverage, 5G deployment, data security, preventing fraud related to stolen cell phones, and safeguarding consumer interests.
Source: Peru: Country Regulation Overview – 2024 Omdia
Business Compliance Requirements:
- Consent & Opt-In: Obtain prior, informed, express, and unequivocal consent before sending marketing messages. Document your consent collection method and timestamp. Support standard opt-out keywords: "STOP" or "PARA" (Spanish), "AYUDA" or "HELP" for assistance.
- Data Protection: Peru's Personal Data Protection Law (PDPL, Ley 29733, enacted July 2011, amended January 2017) governs SMS communications. Critical 2025 update: Supreme Decree No. 016-2024-JUS (effective March 30, 2025) requires ISO/IEC 27001 security standards and phased Data Protection Officer (DPO) appointments: Large companies (>2,300 UIT or ~$3.28M annually) by November 30, 2025; Medium companies (1,700–2,300 UIT) by November 30, 2026; Small companies (150–1,700 UIT) by November 30, 2027; Micro companies (<150 UIT) by November 30, 2028.
- Timing Restrictions: Send during recommended hours: Business days 8:00 AM – 8:00 PM PET (UTC-5), weekends 9:00 AM – 6:00 PM PET. Avoid national holidays. Limit to 4–5 marketing messages per month per recipient with 24-hour minimum gaps between marketing messages.
- Sender ID Regulations: In Peru, all alphanumeric sender IDs are overwritten by carriers with short or long codes. While pre-registration is not required, carriers will convert submitted IDs to numeric formats. Entel allows dynamic alphanumeric sender IDs; other networks use static short codes.
- Content Restrictions: Prohibited content includes gambling and betting services, adult content or services, unauthorized financial services, unregistered pharmaceutical products, and political messaging without clear sender identification.
- Opt-Out Processing: Honor opt-out requests within 24 hours. Maintain internal suppression lists and document all opt-out requests.
Penalties for Non-Compliance: OSIPTEL can impose fines ranging from 2 UIT ($2,850) for minor violations to 150 UIT ($214,000) for serious or repeated violations. The National Authority for Data Protection (Autoridad Nacional de Protección de Datos Personales) enforces PDPL violations with penalties up to 100 UIT (~$143,000).
Sources: Sent.dm Peru SMS Guide, D7 Networks Peru SMS Regulations, DataGuidance Peru SMS/MMS Marketing, Vonage Peru SMS Features
OSIPTEL regulations cover net neutrality, number portability, and other telecommunications aspects, as detailed in the OECD's "Progress Review of Peru's Telecommunications Regulator." Use your postpaid rate plans (voice, SMS, and data services) without additional surcharge in any Andean Community member countries (Bolivia, Colombia, Ecuador, and Peru).
Critical A2P Market Developments (2024)
The Peru A2P SMS market experienced significant disruption in 2024:
- Claro Perú Exclusive Gateway: Claro Perú partnered with iBASIS as the exclusive gateway for terminating all internationally originated A2P SMS traffic into their network, implementing comprehensive A2P messaging monetization.
Source: iBASIS – Claro Perú A2P Monetization
Timeline & Business Impact: The Claro/iBASIS partnership was announced October 29, 2024, with full implementation completed by January 2025. Businesses sending international A2P traffic to Claro subscribers experienced immediate routing changes – messages must now traverse iBASIS's gateway, adding 0.5–1 second latency and potentially increasing per-message costs by $0.01–$0.03. Use cases affected: international e-commerce transaction alerts, global two-factor authentication services, and cross-border marketing campaigns. Practical recommendation: Test message delivery to Claro numbers (37.52% market share) before large campaigns and confirm your provider has established iBASIS connectivity.
- Bitel Peru Pricing Increase: Bitel Peru's partnership with Tyntec resulted in dramatic rate increases – local A2P SMS costs rose over 1025% (from $0.004 to $0.045), while international rates reached up to $0.18. This drastic pricing change has significantly impacted Peru's SMS business landscape.
Source: LATAM A2P SMS Market Analysis
Important: These market developments make pricing highly volatile. The rates in this guide reflect historical/approximate figures and may not reflect current 2024–2025 pricing due to exclusive aggregator partnerships and carrier rate changes.
How Much Does It Cost to Send SMS in Peru?
The following table compares historical per-message rates and highlights key features to help you optimize your budget:
| Provider | Price per SMS (USD) | Volume Discounts | Key Features & Benefits |
|---|---|---|---|
| Twilio | $0.0075 – $0.1325 | Available | Global reach, extensive documentation, reliable delivery, robust API, programmable SMS |
| Plivo | $0.0055 – $0.01823 | Available | Cost-effective, high-volume capability, scalable infrastructure, REST API, comprehensive SDK support |
| Sinch | $0.1428 | Available | Strong local connections, reliable delivery rates, enterprise-grade platform, advanced messaging features |
| Infobip | $0.1922 | Available | Advanced features, enterprise-grade platform, analytics, omnichannel capabilities |
| SMS.to | Varies based on package | Available | Global reach, user-friendly platform, shortlink tracking, A/B testing, specialized SMS marketing tools |
Volume Discount Tiers (typical structures, confirm with providers):
- Twilio: Automatic volume discounts for US/Canada traffic. Peru pricing typically negotiable for >100K messages/month. Volume thresholds not publicly disclosed for Peru but generally apply at 50K, 100K, 500K, 1M+ monthly volumes with 5–20% discounts per tier.
- Plivo: Advertises up to 70% savings with volume pricing. Generally offers tiered discounts starting at 10K messages/month. Example structure: 0–10K (standard rate), 10K–100K (10–15% discount), 100K–500K (20–30% discount), 500K+ (custom pricing, up to 40% discount).
- Sinch: Volume discounts target high-volume senders. Negotiable pricing for enterprises sending >100K messages/month with typical discounts of 15–30% for committed volumes.
- Infobip: Enterprise-focused with custom volume pricing. Typically requires minimum monthly commitments of $1,000–$5,000 for volume discount access.
- SMS.to: Package-based pricing with volume tiers. Typical packages: Starter (up to 10K messages), Growth (10K–100K), Business (100K–500K), Enterprise (custom).
Additional Costs to Consider:
- Setup Fees: Most providers waive setup fees for standard accounts. Short code provisioning (8–12 weeks): $500–$1,000 setup + $500–$1,000/month rental.
- Monthly Minimums: Twilio, Plivo, Sinch: No monthly minimum for pay-as-you-go accounts. Infobip: Often requires $500–$1,000 minimum monthly spend for enterprise accounts.
- Contract Terms: Pay-as-you-go (no contract): Twilio, Plivo. Committed use discounts: Sinch, Infobip (typically 6–12 month contracts with 10–30% discounts).
- Hidden Costs: Carrier surcharges for exclusive gateway routing (Claro/iBASIS, Bitel/Tyntec) may add $0.01–$0.03 per message. Long message segmentation fees: Each 160-character GSM-7 segment or 70-character Unicode segment billed separately. Number rental: Local long codes $0.50–$1.00/month, toll-free $1.00–$2.00/month, short codes $500–$1,000/month.
Sources: Twilio Volume Pricing, Plivo vs Twilio Pricing Comparison
Critical Pricing Note: The rates above are historical/approximate and may not reflect current 2024–2025 pricing due to significant A2P market changes in Peru. Exclusive carrier partnerships and dramatic rate increases (some exceeding 1000%) make it essential to confirm current pricing directly with providers before committing. Request specific Peru routing and carrier information to understand actual costs.
Which SMS Provider Should You Choose for Peru?
Twilio: A Versatile Platform
Twilio offers a comprehensive suite of communication APIs, including a robust and well-documented SMS API. Their global reach and reliable delivery make them popular. Features like programmable SMS, real-time delivery tracking, and multiple integration options provide flexibility for developers. However, their pricing can be higher than competitors, especially for smaller volumes.
Peru Performance Metrics:
- Delivery Success Rate: 92–96% for transactional messages (industry reports). Lower rates (85–90%) possible for marketing messages due to carrier filtering.
- Average Delivery Time: 2–5 seconds for domestic routing; 3–8 seconds for international routing through carrier gateways.
- Support Response Times: Email support typically 4–24 hours; priority support (paid plans) 1–4 hours; phone support available for enterprise accounts.
- Peru-Specific Limitations: Two-way SMS not supported in Peru (carrier restriction). Alphanumeric sender IDs automatically converted to numeric codes by carriers. No local short codes available directly; must work with local aggregators (8–12 week provisioning).
- API Rate Limits: 250 messages per second per account.
- SLA: 99.95% uptime guarantee for Twilio APIs (not including carrier delivery).
Source: Twilio Service Level Agreement
Plivo: The Budget-Friendly Option
Plivo stands out for its competitive pricing, making it attractive for budget-conscious businesses. They offer high-volume messaging support and scalable infrastructure. Their modern REST API and comprehensive SDKs facilitate easy integration. While they don't offer the same breadth of features as Twilio, they provide solid foundation for core SMS needs.
Peru Performance: API rate limits of 200 messages per second. Generally offers 33–50% cost savings vs. Twilio for equivalent Peru traffic. Delivery rates comparable to Twilio (90–95% for transactional messages).
Sinch: Focus on Reliability and Local Expertise
Sinch emphasizes reliable delivery and strong local carrier relationships in Peru. Their enterprise-grade platform and advanced messaging features cater to businesses with demanding requirements. Their pricing sits on the higher end, but their focus on quality and local support adds value for mission-critical applications.
Peru-Specific Advantages:
- Carrier Partnerships: Sinch maintains direct carrier connections with Claro, Movistar, Entel, and Bitel in Peru, reducing routing complexity and improving delivery rates (typically 95–97% for transactional messages).
- Local Support: Latin America regional support team available in Spanish during business hours (9 AM – 6 PM PET). Enterprise customers receive dedicated account managers familiar with Peru market conditions.
- SLA Guarantees: Sinch offers 99.9% platform uptime SLA for enterprise customers. Latency target: 95% of messages delivered within 3 seconds to available handsets (excludes carrier-side delays).
- API Rate Limits: 100 messages per second (standard accounts); negotiable for enterprise accounts.
Source: Sinch Messaging Service Level Agreement
Infobip: Enterprise-Grade Solutions
Infobip provides a premium, enterprise-grade messaging platform with advanced features like analytics and omnichannel capabilities. Their platform supports multiple API protocols and offers robust security features. Their premium pricing reflects their focus on enterprise clients with complex needs.
SMS.to: Streamlined SMS Marketing
SMS.to focuses specifically on SMS marketing, offering a user-friendly platform with features like shortlink tracking, A/B testing, and personalized messaging. Their package-based pricing model suits businesses focused on marketing campaigns. They provide tools to manage contact lists, schedule messages, and analyze campaign performance.
What Factors Affect SMS Pricing in Peru?
Several factors influence SMS pricing in Peru:
Cost Calculation Example (50,000 messages/month):
- Base Message Cost: 50,000 × $0.0055 (Plivo rate) = $275/month
- Carrier Surcharges: If 37.52% routed to Claro (iBASIS gateway): 18,760 messages × $0.02 surcharge = $375 additional = $650 total
- Message Encoding Impact: If 20% contain Spanish accents (Unicode): 10,000 messages × 1.5× cost multiplier (70 vs 160 chars) = 5,000 extra segments × $0.0055 = $27.50 additional = $677.50 total
- Long Message Segmentation: If average message is 200 characters (2 segments): 50,000 × 2 segments × $0.0055 = $550 base (doubles from $275)
Total Monthly Cost Range: $275 (optimal: short GSM-7 messages, no surcharges) to $960 (worst case: long Unicode messages + carrier surcharges)
- Geographic Considerations: Domestic vs. international messaging, local carrier interconnections, and regional infrastructure affect costs.
- Carrier Partnerships: Exclusive aggregator agreements significantly impact pricing. In 2024, Bitel Peru and Claro Perú established exclusive partnerships that resulted in substantial rate changes.
- Volume-Based Pricing: Most providers offer tiered pricing with discounts for higher volumes. Negotiate volume-based rates for cost optimization, though carrier-level pricing changes may limit negotiation flexibility.
- Service Level Factors: Delivery speed guarantees, quality of service metrics, and support levels influence pricing. Advanced features like two-way messaging or dedicated short codes also impact cost.
- Message Encoding Costs: GSM-7 encoding (standard Latin alphabet, 160 characters per segment) vs. Unicode/UCS-2 encoding (special characters, accents, emojis, 70 characters per segment). Unicode messages cost 2.29× more per character (160÷70 = 2.29). Common Unicode triggers: Spanish accents (á, é, í, ó, ú, ñ), currency symbols (€, £), smart quotes (" "), em dashes (—).
- Long Message Segmentation: Messages exceeding single-segment limits are split and billed per segment. GSM-7: 160 chars = 1 segment, 161–306 chars = 2 segments, 307–459 chars = 3 segments. Unicode: 70 chars = 1 segment, 71–134 chars = 2 segments, 135–201 chars = 3 segments. Practical tip: Keep transactional messages under 160 characters (GSM-7) to avoid 2× costs.
- Carrier Surcharges: Claro/iBASIS and Bitel/Tyntec exclusive gateways may add $0.01–$0.03 per message surcharge not reflected in provider base rates. Always request carrier-specific routing details and test costs with small volumes.
Sources: Twilio GSM-7 Character Encoding, Link Mobility SMS Length Calculator
How Do You Choose the Right SMS Provider for Peru?
- Define Your Objectives: Determine your primary goals for using SMS (e.g., marketing, notifications, two-factor authentication).
- Assess Your Volume: Estimate your monthly message volume and anticipate peak sending periods.
- Verify Current Pricing: Contact providers directly to confirm current Peru pricing, as published rates may not reflect 2024 market changes. Request specific carrier routing information.
- Evaluate Technical Requirements: Consider API integration needs, development resources, and security requirements.
- Analyze Pricing and Features: Compare providers based on your volume and feature requirements. Factor in volume discounts and contract terms.
- Test and Evaluate: Use free trials or test accounts to evaluate the platform, API, and actual delivery rates before committing.
Critical Evaluation Criteria:
- Compliance Verification: Confirm provider supports PDPL compliance (consent management, opt-out processing, data encryption). Verify ISO/IEC 27001 certification for 2025 DPO requirements. Request documentation of OSIPTEL regulatory adherence.
- Failover & Redundancy: Does provider offer automatic failover to backup carrier routes if primary route fails? Multi-carrier redundancy critical for >95% delivery rates in Peru's fragmented market (4 major carriers).
- Scaling Considerations: Can provider handle 10× traffic spikes without rate limit throttling? Important for flash sales, emergency alerts, time-sensitive campaigns. Confirm if volume discounts lock you into minimum commitments or allow pay-as-you-go scaling.
- Migration Complexity: API compatibility (REST, SOAP, SMPP protocols), webhook configuration effort, phone number portability, historical message data export. Budget 2–4 weeks for full migration including testing across all Peru carriers.
- Carrier Coverage: Verify direct connections to all four major Peru operators (Claro, Movistar, Entel, Bitel). Single-carrier routing can exclude 60%+ of market.
- Delivery Reporting: Real-time delivery receipts (DLR), detailed error codes, per-carrier performance analytics. Essential for optimizing campaigns and troubleshooting delivery issues.
Evaluation Scorecard Template:
| Criteria | Weight | Twilio | Plivo | Sinch | Infobip |
|---|---|---|---|---|---|
| Price Competitiveness | 25% | 3/5 | 5/5 | 2/5 | 2/5 |
| Peru Delivery Rate | 20% | 4/5 | 4/5 | 5/5 | 4/5 |
| API Documentation | 15% | 5/5 | 4/5 | 4/5 | 4/5 |
| Compliance Support | 15% | 4/5 | 3/5 | 4/5 | 5/5 |
| Failover/Redundancy | 10% | 4/5 | 3/5 | 5/5 | 4/5 |
| Support Quality | 10% | 4/5 | 3/5 | 4/5 | 5/5 |
| Migration Ease | 5% | 4/5 | 4/5 | 3/5 | 3/5 |
| Weighted Score | 100% | 3.95 | 4.05 | 3.85 | 3.75 |
(Scoring: 1=Poor, 2=Fair, 3=Good, 4=Very Good, 5=Excellent. Adjust weights based on your priorities.)
What Is the Future of SMS in Peru?
Peru's SMS market evolves alongside digital transformation. While messaging apps dominate personal communication, business SMS remains powerful. As of 2024, Peru's mobile penetration of 109.8% and increasing smartphone adoption (projected to grow 16.7 percentage points from 2024 to 2029) ensure SMS remains relevant for business communications.
Source: Statista – Peru Smartphone Penetration Forecast
However, the 2024 A2P market disruptions (exclusive partnerships, dramatic rate increases) have created challenges. Evaluate providers carefully, understand carrier relationships, and stay informed about market changes. Increasing mobile device use and the need for secure authentication ensure SMS will remain relevant, though pricing and delivery models continue to evolve.
Emerging Trends & Strategic Recommendations:
-
RCS Messaging Adoption: Rich Communication Services (RCS) is gaining traction globally with business messaging traffic forecasted to grow from 33 billion messages in 2024 to 50 billion in 2025 (Juniper Research). In Latin America, RCS adoption faces challenges competing with WhatsApp's dominance. As of Q4 2024, RCS penetration in Peru remains under 5% of A2P traffic. Key obstacle: operator commitment and competitive pricing. Apple's RCS support (launched iOS 18, October 2024) improves interoperability, but Peru carriers have been slow to enable RCS Business Messaging. Strategic recommendation: Monitor RCS availability but maintain SMS as your primary channel for 2025–2026; consider RCS pilot programs for high-value customer segments if carriers offer competitive rates.
-
WhatsApp Business API Competition: WhatsApp dominates personal messaging in Latin America with 95%+ penetration in Peru. WhatsApp Business API offers richer features (images, videos, interactive buttons) but costs $0.04–$0.08 per conversation (24-hour window) in Peru vs. $0.0055–$0.01 per SMS. WhatsApp requires template pre-approval (2–3 days) and enforces strict quality ratings (low ratings = restricted sending). Strategic recommendation: Use SMS for time-sensitive transactional messages (2FA, OTP, urgent alerts requiring immediate delivery) and WhatsApp for marketing campaigns, customer service conversations, and rich media content. Hybrid approach optimizes cost and engagement.
-
AI Integration Opportunities: AI-powered messaging features emerging: predictive send-time optimization (15–30% open rate improvement), sentiment analysis for response routing, automated A/B testing, chatbot integration for two-way conversations (limited in Peru due to carrier restrictions), personalized content generation, fraud detection for OTP messages (reducing unauthorized access by 40–60%).
-
5G Impact on Messaging: Peru's 5G deployment (launched 2022, covering 15–20% of population as of 2024) has minimal direct impact on SMS delivery (SMS uses 2G/3G control channels). However, 5G enables richer mobile experiences driving users toward data-based messaging apps (WhatsApp, RCS). Long-term outlook: SMS remains essential for universal reach (100% device compatibility) and regulatory compliance (2FA, financial notifications) but may see declining marketing use as data-based channels mature.
Sources: Plusmo RCS in Latin America, Juniper Research RCS Growth, Infobip Messaging Trends 2025
Frequently Asked Questions
How much does it cost to send SMS in Peru?
SMS pricing in Peru varies significantly by provider and has become highly volatile in 2024. Historical rates ranged from $0.0055 (Plivo) to $0.1922 (Infobip) per message. However, exclusive carrier partnerships caused dramatic price increases – Bitel Peru's local A2P SMS costs rose over 1025% (from $0.004 to $0.045). Always confirm current pricing directly with providers before committing to a service.
Why did SMS prices increase dramatically in Peru in 2024?
Peru's A2P SMS market experienced major disruptions in 2024 due to exclusive carrier partnerships. Claro Perú partnered with iBASIS as the exclusive gateway for all internationally originated A2P SMS traffic, while Bitel Peru's partnership with Tyntec resulted in rates increasing over 1025%. These exclusive aggregator agreements fundamentally changed the SMS pricing landscape in Peru.
What is OSIPTEL and how does it regulate SMS in Peru?
OSIPTEL (Organismo Supervisor de la Inversión Privada en Telecomunicaciones) is Peru's telecommunications regulator, ensuring fair competition and consumer protection. In 2024–2025, OSIPTEL focuses on improving broadband coverage, 5G deployment, data security, preventing fraud related to stolen cell phones, and safeguarding consumer interests. OSIPTEL regulations cover net neutrality, number portability, and other telecommunications aspects.
Which SMS provider offers the best value for Peru?
The best SMS provider depends on your specific needs. Plivo offers budget-friendly pricing for high-volume messaging. Twilio provides comprehensive features and global reach with reliable delivery. Sinch emphasizes strong local carrier relationships. Infobip delivers enterprise-grade solutions with advanced analytics. SMS.to specializes in marketing campaigns. Due to 2024's pricing volatility, confirm current Peru routing and carrier information before choosing.
What is A2P messaging and why does it matter in Peru?
A2P (Application-to-Person) messaging refers to business SMS sent from applications to mobile users for two-factor authentication, transaction alerts, marketing campaigns, and customer service. In Peru, A2P messaging remains vital despite OTT app growth. The 2024 A2P market disruptions (exclusive carrier partnerships, dramatic rate increases) have significantly impacted how businesses send SMS in Peru.
Can I use the same SMS rate plan in other Andean countries?
Yes, OSIPTEL regulations allow you to use your postpaid rate plans (voice, SMS, and data services) without additional surcharge in any Andean Community member countries: Bolivia, Colombia, Ecuador, and Peru. This regional integration benefits businesses operating across multiple South American markets.
How do I get accurate Peru SMS pricing in 2024–2025?
Contact SMS providers directly to confirm current Peru pricing, as published rates may not reflect 2024's significant market changes. Request specific information about Peru routing, carrier partnerships (particularly Claro/iBASIS and Bitel/Tyntec relationships), and whether rates include exclusive aggregator fees. Always test with small volumes before committing to large contracts.
What is Peru's mobile phone penetration rate?
As of early 2024, Peru has 37.90 million cellular mobile connections, equivalent to 109.8% of the total population, with mobile penetration projected to reach 118% by late 2024. This high penetration rate (multiple subscriptions per person) underscores the critical importance of SMS as a business communication channel. Smartphone adoption is projected to grow 16.7 percentage points from 2024 to 2029.
How do I set up SMS API authentication with providers in Peru?
Twilio: Use Account SID and Auth Token (found in Twilio Console) for HTTP Basic Authentication. API requests to https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json. Include To (Peru number: +51XXXXXXXXX), From (your Twilio number), and Body (message text) parameters.
Plivo: Use Auth ID and Auth Token for HTTP Basic Authentication. API endpoint: https://api.plivo.com/v1/Account/{AuthId}/Message/. JSON request body with src (sender), dst (Peru number), and text (message).
Sinch: Use Service Plan ID and API Token for Bearer token authentication. Endpoint: https://sms.api.sinch.com/xms/v1/{ServicePlanId}/batches. Submit JSON with to (Peru number array), from (sender), body (message text).
All providers offer SDKs for Python, Node.js, PHP, Ruby, Java, .NET reducing authentication complexity. Free trial accounts available for testing before production deployment.
What are webhook setup requirements for delivery receipts?
Configure a publicly accessible HTTPS endpoint (SSL certificate required) to receive delivery status notifications. Your endpoint must:
- Accept POST requests with JSON payloads containing message status, timestamp, carrier error codes.
- Respond with HTTP 200 status within 3–5 seconds (faster responses prevent retry loops).
- Implement request signature verification (HMAC-SHA256) to prevent spoofing.
- Handle asynchronous delivery (receipts arrive 2–30 seconds after send).
Common webhook events: queued (message accepted), sent (delivered to carrier), delivered (confirmed receipt by handset), failed (carrier rejection with error code), undelivered (timeout or unavailable handset).
Error handling best practices: Log all webhook payloads, implement exponential backoff for failed API retries, monitor carrier-specific error patterns (e.g., Bitel timeout rates), maintain separate endpoints for delivery receipts vs. inbound messages (if supported).
How do I troubleshoot common message delivery failures in Peru?
Error Code Analysis:
- 30003 (Unreachable destination): Invalid Peru phone number format (must be +51 + 9 digits). Verify number includes country code.
- 30006 (Landline or unreachable carrier): Cannot send SMS to landlines. Validate mobile number before sending.
- 30007 (Message filtered/blocked): Carrier spam filter triggered. Review message content – avoid excessive caps, multiple URLs, prohibited keywords (gambling, adult content).
- 30008 (Unknown destination handset): Number not in service or ported to carrier not in routing table. Implement number lookup/validation API.
- 21610 (Message exceeds character limit): Message too long after segmentation. Reduce content or confirm provider supports concatenated messages.
Testing Best Practices:
- Test across all four Peru carriers (Claro, Movistar, Entel, Bitel) before production.
- Send test messages during peak hours (6–8 PM PET) to verify delivery under load.
- Monitor delivery rates by carrier – rates <90% indicate routing or filtering issues.
- Use delivery receipt webhooks to capture detailed error codes for troubleshooting.
- Maintain test phone numbers on each carrier for ongoing monitoring.
- Validate message encoding (GSM-7 vs. Unicode) to avoid unexpected segmentation costs.
What are the data privacy obligations under Peru's PDPL for SMS?
Key PDPL Requirements (updated 2025):
- Lawful Basis: Obtain explicit consent before collecting phone numbers and sending marketing messages. Consent must be freely given, specific, informed, and unambiguous. Document consent timestamp, method (web form, checkbox, verbal), and scope (marketing, transactional, both).
- Data Minimization: Collect only phone numbers necessary for stated purpose. Don't request additional data (name, email, age) unless directly relevant to SMS use case.
- Security: Implement ISO/IEC 27001 security standards (required by March 30, 2025 PDPL update). Encrypt phone numbers at rest (AES-256) and in transit (TLS 1.2+). Restrict employee access on need-to-know basis.
- Retention: Delete phone numbers within 30–90 days after opt-out or consent withdrawal. Maintain opt-out records (suppression list) indefinitely to prevent re-contact.
- Transparency: Provide clear privacy policy explaining SMS data collection, usage, sharing (with SMS providers), and retention. Include in opt-in forms and accessible on website.
- Data Subject Rights: Honor requests to access, correct, or delete phone numbers within 15 business days (PDPL requirement). Provide free opt-out mechanism in every marketing message.
- DPO Appointment: Phased requirement based on company size (see OSIPTEL Regulatory Framework section above). DPO responsibilities include PDPL compliance oversight, data breach response, privacy impact assessments.
Penalties: PDPL violations enforced by National Authority for Data Protection with fines up to 100 UIT (~$143,000). Common violations: sending marketing SMS without consent (50–100 UIT), failing to honor opt-out requests within 24 hours (20–50 UIT), inadequate data security causing breach (70–100 UIT).