Before You Begin
Ensure you have:API Credentials
Valid API credentials and access token for authentication.
Account Setup
Proper account setup for your target country and business verification.
IP Whitelisting
Whitelist your server IP addresses for API access.
Webhook Endpoint
Set up a webhook URL to receive payment notifications.
Step 1: Update a Subscription Plan
To modify an existing subscription plan, send aPATCH request to the Update Subscription Plan endpoint.
Key Request Parameters
The request requires several key parameters:Supported Billing Frequencies
Daily
Update to daily billing. Ideal for services transitioning to daily usage patterns.Send the
autoRecurring.type property with value: dayMonthly
Update to monthly billing. Common for standardizing billing cycles across product lines.Send the
autoRecurring.type property with value: monthCustom (On-demand)
Update to on-demand billing. Suitable for moving to usage-based pricing models.Send the
autoRecurring.type property with value: customExample Request
Below is an example usingcurl:
curl
Step 2: Handle the Response
Successful Response
A successfully updated subscription plan returns confirmation with the current status:Key Response Fields
Error Response
When a subscription plan update fails, you’ll receive detailed error information:Step 3: Track Transaction Status
After updating a subscription plan, monitor its status through these methods:Webhooks (Recommended)
Receive real-time notifications when transaction status changes. Most efficient for production environments.
Status API Endpoint
Query transaction status programmatically. Useful for polling or recovering lost webhook notifications.
Business Portal View
Visual interface for monitoring transactions. Great for manual oversight and detailed transaction analysis.
Common Status Codes
Complete ReferenceView all status codes in our Transaction Status Documentation.
Testing Your Integration
Test Scenarios
Verify your integration handles these scenarios:- Successful Amount Update: Modify plan pricing with valid amount values.
- Billing Frequency Change: Update from monthly to daily or custom billing.
- Partial Updates: Modify only specific fields without sending complete payload.
- Validation Errors: Test with invalid amounts, missing required fields, or unsupported frequencies.
- Nonexistent Plan: Attempt to update a plan that doesn’t exist.
- Authentication Failures: Test with invalid or expired access tokens.
Next Steps
After updating a subscription plan, you may need to perform additional actions:Create a new subscription plan
Set up additional subscription plans for different pricing tiers or service
levels.
Create subscription with updated plan
Create new subscriptions using your updated plan to test the changes.
Get subscription plan details
Retrieve the updated plan information to verify all changes were applied
correctly.

