A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi there,
I'm trying my first fulfillment mutation - and receiving a parse error in the response:
{"errors":[{"message":"Parse error on \"{\" (LCURLY) at [1, 132]","locations":[{"line":1,"column":132}]}]}
The query looks so:
mutation fulfillmentCreateV2($fulfillment: FulfillmentV2Input!) { fulfillmentCreateV2( fulfillment: $fulfillment ) { fulfillment { {"fulfillment":{"lineItemsByFulfillmentOrder":[{"fulfillmentOrderId":"4824818319500","fulfillmentOrderLineItems":{"id":"12317301801100","quantity":"1"}}],"notifyCustomer":true,"originAddress":{"address1":"TLSP","address2":"Test Addr2","city":"Test City","countryCode":"GB","provinceCode":"","zip":"AL1 1AL"},"trackingInfo":{"company":"Royal Mail","number":"TT116970370GB","url":"https://www.royalmail.com/track-your-item#/tracking-results/JC206970370GB"}}} } userErrors { field message } } }
If some kind person could please tell me what I am doing wrong, I would be ever so grateful.
Many thanks in advance
BtB
Please use as per below example.
mutation { fulfillmentCreateV2(fulfillment: {lineItemsByFulfillmentOrder: {fulfillmentOrderId: "gid://shopify/FulfillmentOrder/5022655414410" , fulfillmentOrderLineItems: [{id: "gid://shopify/FulfillmentOrderLineItem/10565649891466", quantity: 3}]}, trackingInfo: {company: "DHL", number: "00340434260386361229", url: "https://www.dhl.com/de-de/home/tracking/tracking-parcel.html?submit=1&tracking-id=003404342603863612..."}, notifyCustomer: true}) { fulfillment { id status } userErrors { field message } } }
I'm very sorry - I have no logged in since 06/21 - many thanks, I will try this and get back to you.