Creating settings
Last updated
Last updated
Our settings feature lets you create merchant-configurable settings. These settings will show when a merchant activates your integration in Zapiet - Pickup + Delivery.
You can use values merchants enter as variables in any request or a request header. These settings are often used to ask the merchant questions like:
Do your orders order contain alcohol?
Do your orders contain fragile items?
Should we ask for ID on delivery?
You can choose between a few setting types:
Text field
Checkbox (True/False)
Select
Password
Choose a setting type.
In this example, we are going to ask the merchant to select the type of vehicle they want to deliver their orders. The merchant must select from a pre-defined list of options. Click the "Select" field type and add the available options.
Click Create setting.
Save changes at the top of the page.
Each setting will have its unique handle. You will see the handle below the setting name.
You can access this value in any request including authentication headers by using the liquid variable:
Let’s take a look at packages next.