All things Shopify and commerce
I am trying to place order by COD method and use bellow mutation
mutation {
checkoutCompleteWithTokenizedPaymentV2(checkoutId: "checkout-id", payment: {
paymentAmount: {
amount: "5009.1",
currencyCode: "INR"
},
idempotencyKey: "key",
billingAddress: {
address1: "123 Main St",
city: "City",
province: "Province",
country: "Country",
zip: "12345"
},
paymentData: {
type: CASH_ON_DELIVERY
}
}) {
checkout {
id
order {
id
}
}
checkoutUserErrors {
code
field
message
}
}
}
Whe I check above mutation on post man it through bellow error,
What is the correct mutation or query to places order with payment method COD by store front qraphql api.
"errors": [
{
"message": "Field 'checkoutCompleteWithTokenizedPaymentV2' doesn't exist on type 'Mutation'",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"mutation",
"checkoutCompleteWithTokenizedPaymentV2"
],
"extensions": {
"code": "undefinedField",
"typeName": "Mutation",
"fieldName": "checkoutCompleteWithTokenizedPaymentV2"
}
}
]
}
Please Help
Which version of the API are you on? It looks like you may want to be using v3:
https://shopify.dev/docs/api/storefront/2023-07/mutations/checkoutcompletewithtokenizedpaymentv3
User | RANK |
---|---|
41 | |
38 | |
24 | |
24 | |
22 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023