By default, when users purchase goods, they need to fill in the courier information (recipient, address, mobile phone number) so that the purchased goods can be couriered to the user in the background.
But sometimes, users want to pick it up at the store themselves without the need for express delivery;
In order to meet this demand, "apifm" has added a self-pickup function in the store. It is very simple to activate and only requires 2 steps:
1. Add a switch type parameter setting to the system parameters: ALLOW_SELF_COLLECTION
["Detailed explanation of apifm system parameter setting and configuration"](https://www.yuque.com/apifm/doc/kcncad)
2. Create the order interface (/order/create) and add the parameter peisongType=zq
["api interface document"](#)
After the above two steps, when creating the order interface, there is no need to submit express delivery information (recipient, address, mobile phone number), and the order will automatically become an in-store pick-up order;
You can see relevant information in the background order details;
**What if users are allowed to choose whether they want express delivery or pick up at the store? **
You can set a variable peisongType and change the value of this variable according to the user's selection on the UI interface: zq or kd
When the user selects kd, the interface displays filling/selecting the delivery address;
When the user selects zq, filling in/selecting the delivery address is hidden on the interface;
When clicking the order button at the same time, create an order interface and pass a specific value to the peisongType parameter according to the user's selection.
**If some of my products require self-pickup, and some products are not allowed to be picked up, how can I do this? **
In response to this demand, it is recommended to use it in conjunction with the extended attributes of the product (of course this is not the only way, there are many alternative ways to achieve it):
1. Edit the product and set the extended attributes of the product, such as: allowSelfCollection=true / allowSelfCollection=false;
2. In the front-end program (webpage/mini program/android/ios), when creating an order, based on the extended attributes of the ordered product, the program determines whether the order is allowed to be picked up in the store;