Skip to main content

Configure delivery options for merchant

You can configure delivery options for your merchants. This means:

  • Enabling the different delivery types.
  • Adding default information for the different delivery types.

Enable delivery types

Enabling a given delivery type means that customers can select it when placing an order. Delivery options need to be enabled for the merchant, as well as each provider.

Use the updateMerchantConfigurations mutation. Its input field takes an array of objects that each need a key and a value.

  • For home delivery, the key is HOME_DELIVERY_ENABLED.
  • For pickup point delivery, the key is PICKUP_POINT_ENABLED.
GraphQL mutation
mutation {
updateMerchantConfigurations(
input: [{
key: HOME_DELIVERY_ENABLED,
value: "true",
},
{
key: PICKUP_POINT_ENABLED,
value: "true"
}]
) {
key
value
}
}

Set delivery information

Delivery information is additional text that is shown on the Delivery Gateway embedded UI when selecting a delivery method. You can specify different information for home delivery and pickup point delivery.

Use the updateMerchantConfigurations mutation. Its input field takes an array of objects that each need a provider ID, a key, and a value.

  • For home delivery information, the key is HOME_DELIVERY_INFORMATION.
  • For pickup point delivery information, the key is PICKUP_POINT_INFORMATION.
GraphQL mutation
mutation {
updateMerchantConfigurations(
input: [{
key: HOME_DELIVERY_INFORMATION,
value: "24 hour availability!",
},
{
key: PICKUP_POINT_INFORMATION,
value: "We have over 1500 locations",
}]
) {
key
value
}
}