Hi Team,
We have setup the authorization correctly. Using Bearer Token in Postman. However, below order_create request is not working. We tried with basic account query also but no luck.
Including both queries below.
We keep getting error {“message”: “Unexpected error. Please contact a system administrator.”}
We tried options like updating the password and accessing new token, selecting Content-Type value application/json . Nothing helped.
Can you please help us resolving this. Thanks in advance.
mutation {
order_create(
data: {
order_number: "TEST_SO-339975"
shop_name: "Test Shop"
fulfillment_status: "pending"
order_date: "2023-01-20"
total_tax: "0.00"
subtotal: "0.00"
total_discounts: "0.00"
total_price: "0.00"
shipping_lines: {
title: "UPS"
price: "0.00"
carrier: "UPS"
method: "Ground"
}
shipping_address: {
first_name: "Test Trott"
last_name: "Test Trott"
city: "Vancouver"
state: "British Columbia"
state_code: "BC"
zip: "V6C 3C1"
country: "Canada"
country_code: "CA"
email: "test@flowhydration.com"
phone: "604-812-2302"
}
line_items: {
sku: "840277000811",
partner_line_item_id: "TEST_P40001",
quantity: 2,
price: "0.00",
product_name: "Original Product name changed here 001",
fulfillment_status: "pending",
quantity_pending_fulfillment: 2,
warehouse_id: "79549"
}
line_items: {
sku: "840277000637",
partner_line_item_id: "TEST_P40002",
quantity: 1,
price: "0.00",
product_name: "Original Product name changed here 002",
fulfillment_status: "pending",
quantity_pending_fulfillment: 1,
warehouse_id: "79549"
}
line_items: {
sku: "628055429784",
partner_line_item_id: "TEST_P40003",
quantity: 3,
price: "0.00",
product_name: "Original Product name changed here 003",
fulfillment_status: "pending",
quantity_pending_fulfillment: 2,
warehouse_id: "79549"
}
required_ship_date: "2023-01-21"
}
){
request_id
complexity
order {
id
order_number
shop_name
fulfillment_status
order_date
total_tax
subtotal
total_discounts
total_price
custom_invoice_url
account_id
email
profile
packing_note
required_ship_date
shipping_address {
first_name
last_name
company
address1
address2
city
state
state_code
zip
country
country_code
email
phone
}
line_items(first: 3) {
edges {
node {
id
sku
product_id
quantity
product_name
fulfillment_status
quantity_pending_fulfillment
quantity_allocated
backorder_quantity
eligible_for_return
customs_value
warehouse_id
locked_to_warehouse_id
}
}
}
}
}
}
Second request - query
query {
products {
request_id
complexity
data(first: 100) {
edges {
node {
id
legacy_id
account_id
name
sku
barcode
country_of_manufacture
dimensions {
height
width
length
weight
}
tariff_code
kit
kit_build
no_air
final_sale
customs_value
customs_description
not_owned
dropship
needs_serial_number
thumbnail
large_thumbnail
created_at
updated_at
product_note
virtual
ignore_on_invoice
ignore_on_customs
active
warehouse_products {
warehouse_id
on_hand
}
images {
src
}
tags
kit_components {
sku
quantity
}
}
}
}
}
}