Taobao rebate official account development, Taobao alliance API permission application and docking detailed tutorial

foreword

I did a Taobao rebate official account before, and the income is still very considerable. I also spent a lot of time searching for information on the Internet when I was an official account. I feel that most of the articles on the Internet are not practical, so I wrote a blog to share relevant content and help readers who are interested in this aspect avoid detours.

Classic Case

Let me share a classic rebate official account case, yes, this is the one I developed myself!

 

I won’t talk about the development related to the WeChat official account here. You can refer to my previous blog. If readers have questions about the development of the official account, you can consult them at any time. The following mainly talks about Taobao Alliance API permission application and docking.

Taobao Alliance API permission application and docking

The following preparations are required:

  • You need to apply for a domain name and complete the filing;
  • You need to apply for a cloud server and build a project deployment environment

Let’s talk about permission application first. Open the official website of Taobao Alliance. After registering and logging in, click Promotion Management---Media Management---Website Management. simple. Click Add Website Promotion, fill in the website name, domain name, filing information, etc., then download the verification file and place it in the root directory of the domain name to complete the verification. The Taobao audit takes about 1-3 days. After the audit is completed, you can get the AppKey, AppSecret, and the primary permission package, which can achieve the effect of the above case. Obtaining advanced permissions is an invitation system. When your traffic reaches a certain level, Taobao will invite you to activate advanced permissions. Readers can refer to the access document for specific requirements.

After the website promotion application is completed, we still need to create a promotion slot, which will be used in the subsequent development of the promotion slot ID. Click Promotion Management---Promotion Plan Management---Add self-service promotion, set the promotion unit, and after clicking OK, you need to select a product to put on the promotion position, just follow the steps to choose one at will. So far, the location permission application has been completed, and finally the SDK is downloaded for development.

to develop

To link function

After implementation, the function is as follows:

Taobao Alliance has an API interface that directly implements the function of link transfer, but it requires a high-privilege user to call it. If you are a low-privilege user, you need to implement this function through 3 steps. Although the steps are slightly complicated, it is easier to implement.

  • Parsing Taobao password
  • Query products
  • Generate Taobao password

The API for parsing the Taobao password is as follows:

The taobao.wireless.share.tpwd.query interface is used to query and analyze the Taobao password, and this interface returns the product ID, product name and other content.

Use the above interface to query product information.

Call the taobao.tbk.dg.material.optional interface, recursively search according to the product name obtained after parsing the Taobao password, and match the corresponding product according to the above product ID. If there is still no matching product after the cycle ends, there is no other way but to return no discount to the user~~~ Here are the following two points to note:

  1. If it is a Juhuasuan product, the format of the product name obtained after parsing the Taobao password is "This#聚贵购件#宝贝好:xxx", at this time we need to call the taobao.tbk.item.info.get interface to obtain the simplified product name;
  2. If there is still no product matching after the recursive loop, it does not mean that the product has no discount. Because after all, we are completing high-level functions through low-level permissions, which cannot be perfect. According to my experience, the matching accuracy rate should be above 80%, which is enough to complete the rebate official account.

The last step is to generate a Taobao password, call the above interface, and pass in the product name, coupon_share_url, and pict_url obtained in step 2 to generate your own exclusive Taobao password. After the user copies your Taobao password to open Taobao and place an order, you will get a rebate up.

User order binding

After the user completes the purchase, we need to give the user a rebate. The advanced permissions include the order interface, which means that we can obtain the order list through the interface. However, the low-level authority does not open this interface, and we need to manually upload the Excel order.

Click the performance report---order detail report, we can see the order, click to download the report, there are detailed order data in the excel form, we only need to upload the form and then read the form. Although the feedback to users is not timely, it can complete the functional experience. In the future, this experience can be improved through automated scripts.

We can get the order data. We also need to know which user purchased the product. Before placing an order, the user must first transfer the link. We can record the user’s behavior of transferring the link. If only one person searches for the product, then the rebate It is bound to the user; if multiple users have purchased the product, the user can only be reminded to let them upload the order number, and we bind the rebate according to the order number.

The above-mentioned interfaces are enough to complete the ordinary rebate official account. Of course, there will be specific details in the development, so I won’t go into details here. There are many interfaces of Taobao Alliance, and readers can study them by themselves.

If you have any questions, please leave a message in the comment area, I will reply as soon as possible~~~

 

Guess you like

Origin blog.csdn.net/fanguoddd/article/details/104835906