Hi,
I’m trying to export orders using the bulkOperation but I’m not being able to export the orders with line items
I also would like to see the lineItemId on the Refund list.
Here’s my query:
mutation {
bulkOperationRunQuery(query: """
{
orders {
edges {
cursor
node {
id
email
closedAt
createdAt
processedAt
name
test
lineItems {
edges {
node {
id
quantity
originalUnitPriceSet {
shopMoney { amount }
}
totalDiscountSet {
shopMoney { amount }
}
fulfillmentStatus
variant {
id
title
}
product {
id
title
}
}
}
}
publication {
id
name
app {
id
title
}
}
totalPriceSet {
shopMoney {
amount
}
}
subtotalPriceSet {
shopMoney {
amount
}
}
totalTaxSet {
shopMoney {
amount
}
}
totalDiscountsSet {
shopMoney {
amount
}
}
totalRefundedSet {
shopMoney {
amount
}
}
totalShippingPriceSet {
shopMoney {
amount
}
}
cancelReason
cancelledAt
currencyCode
displayFinancialStatus
displayFulfillmentStatus
tags
shippingLine {
code
}
physicalLocation {
id
name
}
billingAddress {
city
provinceCode
country
}
discountCode
customer {
id
email
phone
firstName
lastName
}
shippingAddress {
city
provinceCode
country
}
customer {
id
displayName
email
firstName
lastName
tags
phone
}
refunds {
id
createdAt
totalRefundedSet {
shopMoney { amount }
}
}
}
}
pageInfo {
hasNextPage
}
}
}
""") {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}