How to add trail billing cycle ?
Aditykumarsinha
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-07-2024
11:39 PM
I have created a plan with a billing cycle of
[{
tenure_type,
sequence: 1,
total_cycles: 0,
frequency: {
interval_count: 1,
interval_unit: 'YEAR'
},
pricing_scheme: {
fixed_price: {
value: 100,
currency_code: 'USD'
}
}
}]
but for some customers i want to add a trial period to this plan
so using the create subscription api was changing the billing cycle to
but it throws an error
but for some customers i want to add a trial period to this plan
so using the create subscription api was changing the billing cycle to
[
{
tenure_type: 'TRIAL',
sequence: 1,
total_cycles: 1,
frequency: {
interval_count: 1,
interval_unit: 'MONTH'
},
pricing_scheme: {
fixed_price: {
value: 0,
currency_code: 'USD'
}
}
},
{
tenure_type: 'REGULAR',
sequence: 2,
total_cycles: 0,
frequency: {
interval_count: 1,
interval_unit: 'YEAR'
},
pricing_scheme: {
fixed_price: {
value: 100,
currency_code: 'USD'
}
}
}
]
but it throws an error
{
"name": "UNPROCESSABLE_ENTITY",
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id": "#id",
"details": [
{
"field": "/plan/billing_cycles/1/sequence",
"value": "2",
"location": "body",
"issue": "INVALID_BILLING_CYCLE_SEQUENCE",
"description": "The provided billing cycle sequence is not available."
}
],
"links": [
{
"rel": "information_link",
"method": "GET"
}
]
}
i am not able to understand what is that i am doing wrong here
please help
i am not able to understand what is that i am doing wrong here
please help
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Subscription Status Immediately Updates to New Plan Despite Payment Scheduled for Next Billing Cycle in NVP/SOAP APIs
- Resuming a subscription and update billing dates in REST APIs
- Billing Cycles / Interval / Month -- what happens for month overruns and non-business days? in REST APIs
- Activating a subscription after capturing outstanding_balance will charge the customer again in REST APIs