Subscription details api response json is malformed in sandbox

sagsai
Contributor
Contributor

When I make an api request for subscription details using the format as specified in https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_get I get the following response:

 

{"status":"ACTIVE","status_update_time":"2020-11-02T19:09:06Z","id":"I-6TE569US1W75","plan_id":"P-93X65489G27493848L6EUDMQ","start_time":"2020-10-16T07:00:00Z","quantity":"1","shipping_amount":{"currency_code":"USD","value":"0.0"},"subscriber":{"name":{"given_name":"John","surname":"Doe"},"email_address":"some-email-id","payer_id":"HSS23YHPRK3NU","shipping_address":{"address":{"address_line_1":"1 Main St","admin_area_2":"San Jose","admin_area_1":"CA","postal_code":"95131","country_code":"US"}}},"billing_info":{"outstanding_balance":{"currency_code":"USD","value":"0.0"},"cycle_executions":[{"tenure_type":"REGULAR","sequence":1,"cycles_completed":18,"cycles_remaining":0,"current_pricing_scheme_version":1,"total_cycles":0}],"last_payment":{"amount":{"currency_code":"USD","value":"0.1"},"time":"2020-11-02T19:09:05Z"},"next_billing_time":"2020-11-03T10:00:00Z","failed_payments_count":0},"create_time":"2020-10-16T15:20:54Z","update_time":"2020-11-02T19:09:06Z","plan_overridden":false,"links":* Connection #0 to host api.sandbox.paypal.com left intact
[{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-6TE569US1W75/cancel","rel":"cancel","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-6TE569US1W75","rel":"edit","method":"PATCH"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-6TE569US1W75","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-6TE569US1W75/suspend","rel":"suspend","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/billing/subscriptions/I-6TE569US1W75/capture","rel":"capture","method":"POST"}]}

 

 

The part "links":* Connection #0 to host api.sandbox.paypal.com left intact is the one causing problem.
I can fix the part in the code for testing, but does the same problem exist in the live env also?

Login to Me Too
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.