在PayPal计划更新API中使用补丁/更新间隔单位时出现INVALID_PATCH_PATH错误



我将正文中的详细信息用作

[
{
"op": "replace",
"path": "/billing_cycles/frequency/interval_unit",
"value": "MONTH"
}
]

我得到的输出如下

{
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
"debug_id": "7e77554e0bd6d",
"details": [
{
"field": "/0/path",
"value": "/billing_cycles/frequency/interval_unit",
"location": "body",
"issue": "INVALID_PATCH_PATH",
"description": "The specified field cannot be patched."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v1/billing/subscriptions#INVALID_REQUEST",
"rel": "information_link",
"method": "GET"
}
]
}

要传递哪些正确的主体数据来更新PayPal计划数据的interval_unit

"issue": "INVALID_PATCH_PATH",
"description": "The specified field cannot be patched."

错误消息是正确的,该字段无法修补。

有关可以修补的字段,请参阅更新API调用的文档。

如果您需要一个具有不同计费周期的计划,请创建一个新计划。