Configure required address fields
You can set different address requirements for each provider. Address requirements define what information the customer must provide when selecting a delivery method and a provider.
You can set the required information separately for home delivery and for pickup point delivery.
mutation {
updateProviderConfigurations(
input: [{
provider: "GLS",
key: REQUIRED_ADDRESS_FIELDS_FOR_HOME_DELIVERY,
value: "first_name,last_name,email,phone,country,city,postal_code,address_line1,address_line2,location",
},
{
provider: "GLS",
key: REQUIRED_ADDRESS_FIELDS_FOR_PICKUP_POINT_DELIVERY,
value: "first_name,last_name,email,phone",
}]
) {
key
value
}
}