PayPal Subscription need to get a transaction list - but getting an empty response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm building an online store.
Currently I'm on the https://api.sandbox.paypal.com
I created subscription and customer approved it.
Everything worked as it is described in the documentation. here
> https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions
Now I need to get the actual payments for this subscription to synchronise my portal with paypal payments.
I'm guessing I needed to `List transactions for subscription` as it said here:
> https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_transactions
But when I'm calling this path
/v1/billing/subscriptions/I-T99999999999/transactions?start_time=2014-11-11T05:09:16.000Z&end_time=2020-11-11T05:09:16.000Z
I'm getting empty array as a response. Even if there was no transactions, I expect to have the structure, like this:
{
"transactions": [],
"links": [
{
"href": "https:... ",
"rel": "self",
"method": "GET"
}
]
}
But I'm getting empty response with no errors.
I'm getting statusCode=200
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also expecting that the first payment for this new subscription, which is already completed, will show up in this list -- but it is not: just the 200 response with empty data '{}'
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Unable to Retrieve Plan ID Related to a Subscription in REST APIs
- Simple Paypal button integration results in 404 error in Sandbox Environment
- Can't process subscription on Wordpress website in PayPal Payments Standard
- Reference transactions just broke? in NVP/SOAP APIs
- Paypal payment error analysis and root cause in NVP/SOAP APIs