PayPal Rest API - historical data - paypal

I'm just wondering if the new PayPal rest API can be used to receive historical data. For example getting a list of sales made before the rest API existed.
I thought there would be some way to hook it up but it seems you can only get sales that were made though the rest API itself.
Am I wrong?

That's correct - only transactions created (via the REST API's) are returned in a GET /payment call today.
You would need to use the classic TransactionSearch API call for any transaction created prior to that.

Related

Get All Refunds in BigCommerce

I'm using BigCommerce and want to know if there is an endpoint that retrieves all refunds. I've seen the v3 orders endpoint /orders/{order_id}/payment_actions/refunds, but this gets all refunds for a specific order.
I want to know if its possible to get all refunds of all orders.
Edit:
Found the path for refunds, but now I need to know if I can use query params to filter the data or not.
In the orders API we can use filters like min_date_modified. Can I use the same for the refunds endpoint?
It seems they've missed the documentation on that endpoint, but if I was to guess I'd try /v3/orders/payment_actions/refunds?created:min=2021-01-01T23:05:05%2B00:00 since that's how other V3 endpoints work. I used that query and it didn't error (once I encoded the + sign in the time), but I don't have production creds at hand to test with real refunds.
I found an article that specified the endpoint URL
https://medium.com/bigcommerce-developer-blog/order-refund-api-automate-refunds-in-bigcommerce-7a00aaa6fae7
the endpoint to get all refunds is orders/payment_actions/refunds

Get Cases in Business Catalyst REST API

Business Catalyst has a push notification for new customer inquiries that sends a POST request with the object ID, e.g.ObjectID=1234567&ObjectType=2001
The answer to this question say to use the SOAP API(Legacy) to request the details of the case.
Is there a way to do this using the new Rest API?https://docs.worldsecuresystems.com/reference/rest-apis/index.html
There is no documented method for a cases or case endpoint.
If not, the only solution wil be to mix the API calls being used .
Some of the API's haven't been updated to v3 yet (REST) so unfortunately you will still need to use the SOAP endpoint for the Cases API.

Can one retrieve virtual terminal transactions with PayPal REST API?

I have built a tool that uses REST API to pull all payments and create various reports. However, I do not see any of the transactions completed via the Virtual Terminal.
The person that used the virtual terminal printed out the approved page, so I know that transactions were done on the 2015-11-19 yet these don't show up in my query results.
I don't think those will come back in the REST API, no. You can use the Classic API to get them, though. Specifically, TransactionSearch would return the list of transactions, and then you can use GetTransactionDetails to pull more details for any given transaction.
If you're working with PHP you can use this PayPal PHP SDK to make those calls very quick and easy for you.

PayPal REST API - Get Sale by Transaction ID - The requested resource ID was not found (404)

I am essentially trying to get the details of any transaction ID in my PayPal account to authenticate users I am migrating to a new authentication system.
I am using the PayPal Rest API so: http://puu.sh/gdb3T/461dde2928.png and yes I have checked everything is fine, it is infact set to live with the correct id / secret.
This isn't exactly an answer to this specific question, but I have simply fixed it by using PayPal's classic API in order to get the job done.
Kind of strange the rest API doesn't let me do this.

PayPal REST API with Notifications

PayPal has recently released a new API which should replace the old API. The new API is based on a REST approach.
As fare as I can see there is no option to define a callback URL. In the old API the parameter was 'notify_url'. I use the following documentation:
https://developer.paypal.com/webapps/developer/docs/api/#create-a-payment
Is there a parameter in the new REST API which allows to define a notification URL?
Unfortunately, the REST API is still pretty far behind the classic API's with all of the features they provide. To my knowledge, notify_url/NOTIFYURL simply aren't included in the REST API yet.
That said, if you have IPN configured in your PayPal account profile the REST API calls should still trigger them. It's just that you can't override the value there with a custom one using notify like you're talking about.
The classic API's aren't going away, though. You can still use them just fine.