Discussing APIs and development related to customers, discounts, and order management.
Hello,
I need to acquire Shopify orders data via GraphQL.
My endpoint is: https://****.myshopify.com/admin/api/2021-04/graphql.json
This is my bulk operation:
mutation {
bulkOperationRunQuery(
query:"""
{
orders(query:"updated_at:>2021-06-23") {
edges {
node {
id
email
originalTotalPriceSet {
shopMoney {
amount
currencyCode
}
}
createdAt
updatedAt
closedAt
cancelledAt
cancelReason
billingAddress {
firstName
lastName
company
address1
address2
city
zip
province
provinceCode
country
countryCodeV2
phone
}
shippingAddress {
firstName
lastName
company
address1
address2
city
zip
province
provinceCode
country
countryCodeV2
phone
}
customerAcceptsMarketing
lineItems(first:50) {
edges {
node {
name
variant {
name
barcode
}
discountedUnitPriceSet {
shopMoney {
amount
currencyCode
}
}
discountedTotalSet {
shopMoney {
amount
currencyCode
}
}
quantity
}
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
The operation runs as expected and I get back most of the data, including the billingAddress. But the shippingAdddress node is missing. What am I doing wrong?
Solved! Go to the solution
This is an accepted solution.
Local cache issue, goddammit!!
This is an accepted solution.
Local cache issue, goddammit!!