Error trying to update Billing Plan amount

danielmiranda
Nuevo miembro de la comunidad

Hi! I'm trying to update the amount of a Billing plan using the PayPal REST API.

I did what the documentation says on https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_update

with the patch object:

[
  {
    "op": "replace",
    "path": "/payment_definitions/0/amount",
    "value": {
      "value": "NEW_AMOUNT(string)"
    }
  }
]

But it doesn't work. The response gives me a error code 400 Bad Request and this message:

{
    "name": "VALIDATION_ERROR",
    "details": [
        {
            "field": "validation_error",
            "issue": "Invalid path provided in patch request"
        }
    ],
    "message": "Invalid request - see details",
    "information_link": "https://developer.paypal.com/docs/api/payments.billing-plans#errors",
    "debug_id": "5874e0f75a0f4"
}

Hope someone can help me! 

Login to Me Too
0 RESPUESTAS 0

Haven't Found your Answer?

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