cancel
Showing results for 
Search instead for 
Did you mean: 

How update the plan, once it is set to active.

Options
olexandrman
Contributor
Posted on

I created plan and added it to billing agreement. In future I will need update this Plan (change price). I tried do it (plan.Update()), but i got error:  {"name":"BUSINESS_VALIDATION_ERROR","details":[{"field":"validation_error","issue":"Invalid Path provided."}],"message":"Validation Error.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#BUSINESS_VALIDATION_ERROR","debug_id":"35c8f62320ea5"}. How can i do it?

4 REPLIES 4

How update the plan, once it is set to active.

Options
MTS_Ciaran
PayPal Employee

Hey, 

 

Can you post the API call you are sending over to us?

How update the plan, once it is set to active.

Options
olexandrman
Contributor

Hi, I'm not sure whether you understood. But I give the following information for you:

I am using next example for update billing plan: https://github.com/paypal/PayPal-NET-SDK/blob/develop/Samples/Source/BillingPlanUpdate.aspx.cs .And i found next information too http://stackoverflow.com/questions/29631597/paypal-rest-api-update-billing-plan-return-url, and next comment explain why i can't update my billing plan: "You cannot update the plan, once it is set to active. The reason for that restriction is that because there could be possible agreements based on that plan, modifying it would affect the already agreed billing agreements.....Alternatively, you could possibly create a new plan, and use that instead." .  Does exist other way for update current billing plan? I don't want crate a new plan, and use that instead my current plan.

RequestUri:

{https://api.sandbox.paypal.com/v1/payments/billing-plans/P-41023143HP107945GG6TH2RY}

 

Response:

{"name":"BUSINESS_VALIDATION_ERROR","details":[{"field":"payment_definitions","issue":"patch is not supported for this field."}],"message":"Validation Error.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#BUSINESS_VALIDATION_ERROR","debug_id":"3072..."}

How update the plan, once it is set to active.

Options
MTS_Aaron
Moderator

Hi Olexandrman,

 

Can you let me know what you are trying to update?

 

When a plan is updated, it may require the buyer's permission depending on what has to be updated. (actually in most cases)

 

Aaron

How update the plan, once it is set to active.

Options
xserrat
Contributor

Hi,

 

I am having the same problem. I would like to update two merchant preferences: max_fail_attemps (from 3 to 1) and  initial_fail_amount_action (from CONTINUE to CANCEL).

 

I've tried to do that using the PATCH endpoint with the following body:

 

{
    "op": "replace",
    "path": "/merchant_preferences",
    "value": {
           "max_fail_attempts": "1",
           "initial_fail_amount_action": "CANCEL"
     }
}

But I've got the same error response (owing to an active plan, I can't update it...). I don't understand because in this case they are merchant preferences so they're not directly related to the buyer...

 

I hope that someone helps me as soon as possible.

 

Thank you so much in advance!

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.