Hello I'm having trouble editing my subscription. I'm currently working on a sandbox. I have an active subscription and want to edit it using the API, I am sending an API query with the following content. $array_json = [
'op' => "replace",
'path' => "/billing_info/outstanding_balance",
'value' => [
'currency_code' => "USD",
'value' => 1.00,
]
];
$json_encode = json_encode($array_json); And I get an opinion https://api.sandbox.paypal.com/v1/billing/subscriptions/I-72RUTN12RM3B (
[name] => UNPROCESSABLE_ENTITY
[message] => The requested action could not be performed, semantically incorrect, or failed business validation.
[debug_id] => aec54f0759faa
[details] => Array
(
[0] => Array
(
[issue] => AMOUNT_GREATER_THAN_OUTSTANDING_BALANCE
[description] => The new outstanding balance can not be greater than the current outstanding balance.
)
)
[links] => Array
(
[0] => Array
(
[href] => https://developer.paypal.com/docs/api/v1/billing/subscriptions#UNPROCESSABLE_ENTITY
[rel] => information_link
[method] => GET
)
)
) Currently, the subscription is USD 4.01. What am I doing wrong?
... View more