Using api version 2025-01.
Trying to create a draft order with 100 lines. The request completes successfully and the ID is returned with no userErrors.
Except that the resulting draft order is missing like half of the items.
Client is telling me the bug started sometime this week.
Example payload:
{
"operationName": "createDraftOrder",
"variables": {
"input": {
"lineItems": [
{
"sku": "1114L",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 12.15,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "1114XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 13.07,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "1280AGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 34.04,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "2346S",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.98,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "4060NVXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 29.59,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "4060XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 31.56,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "4080BLKCGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 54.97,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "50V0L",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 25.76,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "6520AG",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.46,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "6520OD",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 9.58,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "6541BK",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 10.14,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "6580BLU",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 9.71,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "7033XXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 33.51,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "703ODL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 22.02,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "703TNXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 22.88,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "7040XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 51.45,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "705CGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 23.94,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "705ODXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 24.79,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "706CGLT",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 27.4,
"currencyCode": "CAD"
},
"quantity": 1,
"requiresShipping": false,
"taxable": false
},
{
"sku": "802CGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.71,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "802CGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.05,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "802S",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.59,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "802XS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.4,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "8033NVL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 33.56,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803BURL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 18.72,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803BURM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.02,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803CGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.61,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803CGM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.46,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803FGS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.16,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803FGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 18.41,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803FGXXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 18.36,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803NCS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.48,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803SP",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 22.34,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803TRL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 22.33,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "803XXXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.58,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804BURM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 21.22,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804BURS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.22,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804BURXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 19.72,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804BURXXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.33,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804CGBLKL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 21.55,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804CGBLKM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 21.62,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804CGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.79,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804CGS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.61,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "804FGM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 20.75,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{ ... a bunch more products ... }
{
"sku": "903GHS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 4.95,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "903NTM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 4.9,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "903NTXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 4.85,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "903OGM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 4.84,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "903PBL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 5.2,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "905ABM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 5.62,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "905FGS",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 5.27,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "905GHXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 5.65,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "9520BUR",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 9.12,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S13XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.48,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S14L",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.78,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S15L",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.98,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S19OATM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 7.77,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S31AGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.6,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S34XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.93,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S35TGL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 7.45,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S35XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 7.37,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S39XL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.04,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S52L",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 6.83,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S54CFEL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 7.53,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S75ERBKL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S75IVAGM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.35,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S75IVAGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.35,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S76BKAGXL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.65,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S95WNM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "S96OGM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "SSK19BKL",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 7.95,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
},
{
"sku": "SSN29BKM",
"title": "Product variant not found.",
"originalUnitPriceWithCurrency": {
"amount": 8.4,
"currencyCode": "CAD"
},
"quantity": 2,
"requiresShipping": false,
"taxable": false
}
],
"note": ""
}
},
"query": "mutation createDraftOrder($input: DraftOrderInput!) {\n draftOrderCreate(input: $input) {\n draftOrder {\n id\n __typename\n }\n userErrors {\n field\n message\n __typename\n }\n __typename\n }\n}"
}
Example response:
{
"draftOrderCreate": {
"draftOrder": {
"id": "gid://shopify/DraftOrder/1182240342304",
"__typename": "DraftOrder"
},
"userErrors": [],
"__typename": "DraftOrderCreatePayload"
}
}
But the order only contains 50 items.
As far as I know the limit for draft orders is 250 line items.
Request ID: 4b73c140-4084-4539-a8de-099a483d1672-1738963020
I was able to reproduce on my dev store with 100 line items in a draft order.