Iam trying to update the custom attributes when a checkout is created right now i have subscribed to a checkout/create web-hook so that every time checkout is created i will be able to push the custom attributes using storefront graphql API but below mutation throws checkout not found error even though it is a valid checkout ID
mutation checkoutAttributesUpdateV2($checkoutId: ID!, $input: CheckoutAttributesUpdateV2Input!) {
checkoutAttributesUpdateV2(checkoutId: $checkoutId, input: $input) {
checkout {
id
}
checkoutUserErrors {
field
code
message
}
}
}
{
"checkoutId": "gid://shopify/Checkout/36603304411456",
"input": {
"allowPartialAddresses": true,
"customAttributes": [
{
"key": "_testAttribute",
"value": "testing"
}
]
}
}