Anchor to paymentCustomizationUpdatepayment
paymentCustomizationUpdate
mutation
Requires access scope.
Updates a payment customization.
Anchor to Arguments
Arguments
- •ID!required
The global ID of the payment customization.
- Anchor to paymentCustomizationpayment•
Customization PaymentCustomization requiredInput! The input data used to update the payment customization.
Was this section helpful?
Anchor to PaymentCustomizationUpdatePayload returnsPaymentCustomizationUpdatePayload returns
- Anchor to paymentCustomizationpayment•
Customization Returns the updated payment customization.
- Anchor to userErrorsuser•
Errors [PaymentCustomization non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation paymentCustomizationUpdate($id: ID!, $paymentCustomization: PaymentCustomizationInput!) {
paymentCustomizationUpdate(id: $id, paymentCustomization: $paymentCustomization) {
paymentCustomization {
# PaymentCustomization fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"paymentCustomization": {
"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>"
}
}
{
"id": "gid://shopify/<objectName>/10079785100",
"paymentCustomization": {
"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 PaymentCustomizationInput {
enabled: Boolean
functionId: String
metafields: [MetafieldInput!]
title: String
}
input MetafieldInput {
description: String
id: ID
key: String
namespace: String
type: String
value: String
}