Purchasing via API
The Ping Proxies API enables complete programmatic control over the purchasing and management of proxy services. This guide covers how to browse available products, generate quotes, create checkouts, and manage ongoing services.Overview of the Purchasing Process
Browsing Available Products
Start by retrieving the available products through the catalog endpoint:Generating a Quote
Before completing a purchase, generate a quote to check pricing, availability, and any applicable discounts:- Original price before discounts
- Any promotional discounts applied
- Credit balance that will be applied
- Final amount due
Creating a Checkout
Once you’re satisfied with the quote, create a checkout to complete the purchase:Payment Processing
If your account has sufficient credit,invoice_is_paid will be true and the service provisions immediately. Otherwise, use the invoice_url to complete payment.
Service Fulfillment Filters
For certain proxy types, you can specify service fulfillment filters to customize the provisioning:- Network provider (ASN)
- Geographic location (country, subdivision, city)
- Protocol preferences (IPv4, IPv6, dual-stack)
Managing Account Credit
Your account credit serves as a prepaid balance that can be applied to any purchase. This credit balance can come from:- Direct top-ups: Adding funds to your account
- Refunds: Credits issued for service issues
- Promotional credits: Special credits from promotional campaigns
Viewing Credit Balance
Check your current credit balance:Adding Credit
To top up your credit balance, use the checkout endpoint with the credit product:Residential Bandwidth Management
For residential proxies, which use a bandwidth-based model instead of a per-proxy model, you can monitor your bandwidth usage:Best Practices
- Test purchases with small quantities before automating
- Monitor credit balance to ensure sufficient funds for automated purchases
- Implement robust error handling for checkout responses
- Track service IDs returned from successful purchases
For high-volume purchasing needs or custom fulfillment requirements, contact sales@pingproxies.com.
