How to use ThirdParty token to get a list of invoices
Cloudineer
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-09-2018
04:48 AM
Hi All,
I am using the PHP SOAP sdk to report on Invoices raised by a customer. I read online that third-party permissions are not supported using REST API unless they use the 'Log In Using Paypal', so we did that, and successfully receive the code so we can get a refresh_token (and use that to obtain an access_token). However, everytime I try Invoice::getAll(), it returns my invoices (not those of the customer). I cannot see how to apply the access_token to the ApiContext which is passed to getAll(). I suspect, I need to set something in the
$apiContext->setConfig(array(...))
Any help/ suggestions would be greatly appreciated.
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.