PayPal Subscription need to get a transaction list - but getting an empty response

juscommune
Contributor
Contributor

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

Login to Me Too
1 REPLY 1

Tarot-dev
Contributor
Contributor

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 '{}'

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.