The new outstanding balance can not be greater than the current outstanding balance.
AdamPiersa
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-03-2020
06:43 AM
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?
Labels:
- Labels:
-
Payments REST APIs
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Activating a subscription after capturing outstanding_balance will charge the customer again in REST APIs
- Customer Cancelled Subscription that had Outstanding Amounts - Now Wants to Resubscribe in NVP/SOAP APIs
- How do re-activate paused subscriptions? in PayPal Payments Standard
- Allow collection before Five Days Overdue & More in PayPal Payments Standard
- Issue `ZERO_OUTSTANDING_BALANCE` when Capturing authorized payment. in REST APIs