api version: 2024-10
request url: https://xxx.myshopify.com/admin/api/2024-10/graphql.json
query:
mutation draftOrderCreate($input: DraftOrderInput!) {
draftOrderCreate(input: $input) {
draftOrder {
id
localizationExtensions(first:1) {
edges {
node {
key
value
}
}
}
}
}
}
graphql variables:
{
"input": {
"email": "test@example.com",
"lineItems": {
"variantId": "gid://shopify/ProductVariant/xxxxxx",
"quantity": 1
},
"localizationExtensions": {
"key": "TAX_CREDENTIAL_MX",
"value": "test"
}
}
}
The result is
{
"data": {
"draftOrderCreate": {
"draftOrder": {
"id": "gid://shopify/DraftOrder/xxxxxxx",
"localizationExtensions": {
"edges": []
}
}
}
},
"extensions": {
"cost": {
...
}
}
}
I follow this doc to test the api. But it does not set localizationExtensions.
https://shopify.dev/docs/apps/build/markets/add-locally-required-order-data
What is the problem?