3
我想更改計費計劃的金額,但在嘗試完成時出現錯誤。 如果計劃已經有與之相關的協議,可以更改計劃的條款(payment_definitions)?更新PayPal賬單計劃(payment_definitions)
請求:
curl -v -k -X PATCH 'https://api.sandbox.paypal.com/v1/payments/billing-plans/[plan id]' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <Access-Token>" \
-d '[
{
"path": "/payment_definitions/[payment_definitions_id]/amount",
"value": {
"currency": "EUR",
"value" : "10"
},
"op": "replace"
}
]'
響應:
{
"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":"183e87c07085e"
}