Creating settings

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?

Creating a setting

You can choose between a few setting types:

  • Text field

  • Checkbox (True/False)

  • Select

  • Password

  1. Go to the App Setup page.

  2. Click Add Setting.

  3. Choose a setting type.

  4. Enter a name and description for your setting.

  5. 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. ​

  6. Click Create setting.

  7. Save changes at the top of the page. ​

Accessing settings in requests

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:

{{ settings.customer_id }}

Let’s take a look at packages next.

Last updated