Edit plan
A comprehensive testing strategy is crucial to ensure the successful integration of SmartpayGenie into your application. Here are some key testing types:
Edit a plan
'PUT'
Request parameters
Parameters
Type
Description
Required
name
String
Updated name of the plan
Optional
amount
Number
Updated amount of the plan
Optional
currency
String
Updated currency of the plan
Optional
interval
Object
Updated billing interval (e.g., monthly, yearly)
optional
features
Object
Updated list of features
optional
Request Payload
JSON
{ "plan_id": "plan_id_1", "customer_id": "customer_id_1", "payment_method_id": "method_id_1" }
Response
200 - OK successful response
[ { "id": "plan_id_1", "name": "Basic Plan (Updated)", "amount": 120, "currency": "USD", "interval": "monthly", "features": [ "Feature 2", "Feature 3", "Feature 3" ] } ]
Note:
- You may need to implement pagination for large datasets.
- Consider adding filtering and sorting options to the endpoint for better flexibility.
- Implement appropriate security measures to protect transactions data.
Support
If you encounter any issues or have questions, please feel free to contact our dedicated
support team.We are committed to providing you with the best possible experience and support.