Anchor to deliveryCustomizationCreatedelivery
deliveryCustomizationCreate
mutation
Requires access scope.
Creates a delivery customization.
Anchor to Arguments
Arguments
- Anchor to deliveryCustomizationdelivery•
Customization DeliveryCustomization requiredInput! The input data used to create the delivery customization.
Was this section helpful?
Anchor to DeliveryCustomizationCreatePayload returnsDeliveryCustomizationCreatePayload returns
- Anchor to deliveryCustomizationdelivery•
Customization Returns the created delivery customization.
- Anchor to userErrorsuser•
Errors [DeliveryCustomization non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation deliveryCustomizationCreate($deliveryCustomization: DeliveryCustomizationInput!) {
deliveryCustomizationCreate(deliveryCustomization: $deliveryCustomization) {
deliveryCustomization {
# DeliveryCustomization fields
}
userErrors {
field
message
}
}
}
Input
{
"deliveryCustomization": {
"enabled": true,
"functionId": "<your-functionId>",
"metafields": [
{
"description": "<your-description>",
"id": "gid://shopify/<objectName>/10079785100",
"key": "<your-key>",
"namespace": "<your-namespace>",
"type": "<your-type>",
"value": "<your-value>"
}
],
"title": "<your-title>"
}
}
{
"deliveryCustomization": {
"enabled": true,
"functionId": "<your-functionId>",
"metafields": [
{
"description": "<your-description>",
"id": "gid://shopify/<objectName>/10079785100",
"key": "<your-key>",
"namespace": "<your-namespace>",
"type": "<your-type>",
"value": "<your-value>"
}
],
"title": "<your-title>"
}
}
input DeliveryCustomizationInput {
enabled: Boolean
functionId: String
metafields: [MetafieldInput!]
title: String
}
input MetafieldInput {
description: String
id: ID
key: String
namespace: String
type: String
value: String
}