Hi
While creating new order using Graphql API we sometime get following issue,
shipping_lines": Expected “CreateShippingLinesInput”, found not an object.
Here is my request, Can you please check what could be the reason?
mutation {
order_create(data: {
order_number: “XXXXX”
partner_order_id: “XXXXX”
shop_name: “XXXXX”
order_date: “06-21-2021”
total_tax: “95.6”
subtotal: “478”
total_price: “478”
shipping_lines: {
title: “01F8Q9DAX73BNPX4VMKC3T9DVZ”
price: “63.2”
carrier: “5800”
method: “5800”
}
shipping_address: {
first_name: “XXXXX”
last_name: “XXXXX”
address1: “XXXXX”
city: “XXXXX”
zip: “XXXXX”
country: “XXXXX”
country_code: “XXXXX”
phone: “XXXXX”
}
billing_address: {
first_name: “XXXXX”
last_name: “XXXXX”
address1: “KLINGENBERGGATA 7 B”
city: “XXXXX”
zip: “XXXXX”
country: “XXXXX”
country_code: “XXXXX”
phone: “XXXXX”
}
tags: [
“XXXXX”]
line_items: [
{
sku: “#133”
partner_line_item_id: “XXXXX”
quantity: 1
price: “399”
product_name: “XXXXX”
warehouse_id: “XXXXX”
}]
email: “XXXXX”
}) {
complexity
request_id
order {
id
order_number
fulfillment_status
line_items(first: 1) {
edges {
node {
sku
fulfillment_status
quantity
}
}
}
}
}
}
Thanks in advance!