How to retrieve merchant integration status through the API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to onboard partner merchants through the REST api, and I can log-in and generate a sign-up link successfully. Now I want to find out whether the merchant has completed onboarding and the approach I was planning to use was to make an API call as Documented in the "track seller onboarding status" page.
The problem is that whatever I put into that call I just seem to get a 404 response back. The documentation says:
You can also query it directly by the tracking ID you specified in the Partner Referrals call by calling GET /v1/customer/partners/partner_id/merchant-integrations?tracking_id={tracking_id}
I assumed that here it when it says "partner_id" I should be using my Merchant Id, but I've tried it both ways, calling GET https://api-m.sandbox.paypal.com/v1/customer/partners/ABC123DEF456/merchant_integrations?tracking_id=my-tracking-id with my Authorization: Bearer ... authentication token and always returns a 404.
I think I have tried with every merchant Id in all my partner companies, so as far as I know it should be working with one of them. Is this because I'm trying to access a v1 endpoint with a v2 authorization code? I don't see any record of the calls on my developer dashboard at all, but I do see the other calls I have made, both successful and unsuccessful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alright, so problem one I was calling merchant_integrations instead of merchant-integrations - that's on me. Now I get a simple response like:
{
"name": "VALIDATION_ERROR",
"message": "Invalid request",
"debug_id": "123456789abcde"
}
Is this because I'm using an Oauth token with the Authorisation: Bearer header instead of the very complicated JSON object documented in the v1 API documentation? If so, how do I create that object? The Oauth login is being generated from a v1 endpoint - is there a different endpoint I need to use to be able to access the deprecated API? And why can't I get this information from a non-deprecated API - should I be finding this in a different way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @Glenatron
Thank you for posting to the PayPal community.
I would suggest to please contact your website developer or the third party eCommerce support to cross check your using same SANDBOX/LIVE REST API Credentials(Client ID & Secret) while performing the below API calls.
https://developer.paypal.com/api/rest/authentication/
https://developer.paypal.com/api/rest/postman/
Important: Please note that it is important to utilize the token within 24 hours. If it is not used within this timeframe, you will need to generate a new token.
If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US .Please ensure that you provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I am the developer in this case so I'm very confident that the credentials I'm using are the same ones I used to set up the partner onboarding - they're the only ones in the system right now. I have set up a support ticket and I'll add the solution here when we figure it out.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to enable/disable Pay Later when using HTML Form Basics for PayPal Payments Standard in PayPal Payments Standard
- Paypal 4X credit : translated message & currency error in PayPal Payments Standard
- Enable Billing Address Feature in Sandbox Environment
- I'm getting error once user try to pay via PayPal - NVP/SOAP Api Integration in NVP/SOAP APIs