Follow the instructions below to complete the integration.
When you first register and subsequently add products, you can operate "Add Product" in the upper left corner.
Important! PartnerShare platform requires API permissions for your application so we can determine if the installation was done via a promotion link and accurately calculate transaction and reward amounts.
These permissions grant us "read-only" access, and we only use this access to read information related to the PartnerShare platform.
We will not read any data prior to your integration with PartnerShare.
You can find more information about partner API permissions here.
If you are creating an API client access token for the first time, you can follow the guide and screenshots below to obtain the API client access token:
Find and copy it from the link on your application's partner management page.
For example:
https://partners.shopify.com/1111111/apps/**1234567**/#
1234567 is your application ID.
To successfully create the app and start promoting, you must verify the connection with the Shopify Partners API to ensure the details you entered are correct.
If the above steps are correct, click the verification link on Partnershare, and after passing, click submit. If prompted submission is successful, the first step of the integration is completed!
To complete the integration, you need to add a POST request to your application. This request will help us correctly match invited users to their respective partners.
This request must run each time a new store installs the application.
When OAuth is completed, you will receive a request from Shopify containing the shop name and the "X-Forwarded-For" header.
When you have these values, you need to send a POST request containing the following data (four parameters in total):
ctx.request.header['x-forwarded-for']
request.env["HTTP_X_FORWARDED_FOR"]
$_SERVER["HTTP_X_FORWARDED_FOR"]
curl -X POST https://api.partnershare.net/partner/conversion/new-merchant
-H 'Content-Type: application/json'
-d '{"conversion_token":"xxxxxx",
"shop_name":"xxxxxxx.myshopify.com",
"app_id":"1111111",
"xff":"11.1111.111.111"}'
await fetch('https://api.partnershare.net/partner/conversion/new-merchant', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ conversion_token: "xxxxxx", shop_name: "xxxxx.myshopify.com", app_id: "111111", xff: "11.1111.111.111" })
})
You can test it directly on PartnerShare, and later you can contact our staff to clear the test data.
After adding the POST request, you need to open a new developer store from the application's partner management backend, install, and open your application. Once our system receives the request for the first time, the product integration status will change to "Under Review," and our account manager will contact you.