Loading…

Give away coupons/Share to receive coupons

There are two methods for gifting and transferring coupons between users: # Take the initiative to send it to a user ![](https://dcdn.it120.cc/yuque/0/2022/png/572726/1660740532568-d8a31cde-ecff-40b5-b048-fa974e29bc4e.png) Specify the other party's user ID or mobile phone number and directly give the coupon in your name to the other party: [https://www.yuque.com/apifm/nu0f75/eyi5x8](https://www.yuque.com/apifm/nu0f75/eyi5x8) # Upload Excel batch distribution |Batch number | Coupon Rule Number | User ID | Gift quantity | | :---: | :---: | :---: | :---: | | P0001 | 123 | 456 | 1| Just submit the Excel file according to this format, with a total of 4 columns: +Batch number: Coupons of the same batch will not be issued repeatedly. If the same batch is imported into Excel multiple times, the method will not be repeated. It is applicable to the situation where the entire Excel delivery is terminated unexpectedly. + Coupon rule number The rule ID of the coupon to be issued + User number Who to send coupons to? + Gift Quantity How many copies will be sent?# Share / Get ![](https://dcdn.it120.cc/yuque/0/2022/png/572726/1660740788218-d97419b1-c8ca-4a43-ada0-8cc259138af9.png) ## **Get coupon sharing key** [https://www.yuque.com/apifm/nu0f75/ip1w90](https://www.yuque.com/apifm/nu0f75/ip1w90) Obtain the sharing key of the coupon that needs to be shared, because when the user takes the initiative to receive this coupon, he needs to verify the correctness of this key In other words, only by sharing the key with the correct coupon can you receive this coupon ## **Cancel Coupon Sharing Key** [https://www.yuque.com/apifm/nu0f75/gzok99](https://www.yuque.com/apifm/nu0f75/gzok99) It is necessary to stop the coupon sharing and cancel the validity of the shared keys. After cancellation, the shared key will become invalid. ## **Get coupons by sharing your key** [https://www.yuque.com/apifm/nu0f75/iq5f3s](https://www.yuque.com/apifm/nu0f75/iq5f3s) Use the coupon key + coupon ID shared by others to receive the coupon to your own name # Buy and get coupons ## Purchase coupons directly [vouchers] [https://www.yuque.com/apifm/nu0f75/dhxcpu](https://www.yuque.com/apifm/nu0f75/dhxcpu) Interface for receiving coupons: [https://www.yuque.com/apifm/nu0f75/dhxcpu](https://www.yuque.com/apifm/nu0f75/dhxcpu) You can purchase with balance or initiate online payment for purchase (please refer to Angel Children's Clothing open source code, this function has been integrated) ## Purchasing a certain product to achieve automatic issuance of coupons and dynamic passwords 1. First generate a dynamic password for this coupon in the background, so that you can use the dynamic password to redeem the coupon: [https://www.yuque.com/apifm/nu0f75/gs1xva](https://www.yuque.com/apifm/nu0f75/gs1xva) 2. Use the ["Card/Coupon Automatic Shipping Plug-in"](https://www.yuque.com/apifm/doc/gr9bgz) plug-in to automatically issue a password to the user after purchasing the product.