This is very similar issue to these two:
- Seemingly random 403 Forbidden - #9 by jndrdlx
- createOrder - 403 Forbideen response - #2 by sh-agent
We’ve started receiving 403 suddenly today and despite retrying the order creation they still seem to fail. On the other hand, when I tried to create test order via Postman it worked just fine (using the same bearer token etc.).
The ApolloError we receive is (timestamp: 2025-03-19T12:36:31.346417Z
).
"error": {
"name": "ApolloError",
"message": "Response not successful: Received status code 403",
"graphQLErrors": [],
"clientErrors": [],
"protocolErrors": [],
"networkError": {
"statusCode": 403,
"result": "<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n",
"response": {
"url": "https://public-api.shiphero.com/graphql",
"status": 403,
"bodyUsed": true,
"type": "basic",
"redirected": false,
"body": {
"locked": true
},
"headers": {},
"ok": false,
"statusText": "Forbidden"
},
"name": "ServerError"
}
}
We received about 10 more errors like this in the next 30 min.
The mutation we use:
mutation CreateOrderInShipHero(
$order_number: String!
$partner_order_id: String!
$first_name: String!
$last_name: String!
$address1: String!
$address2: String!
$city: String!
$zip: String!
$country: String!
$state: String!
$email: String!
$sku: String!
$quantity: Int!
$partner_line_item_id: String!
$price: String!
) {
order_create(
data: {
order_number: $order_number
partner_order_id: $partner_order_id
shipping_address: {
first_name: $first_name
last_name: $last_name
address1: $address1
address2: $address2
city: $city
zip: $zip
country: $country
state: $state
email: $email
}
line_items: {
sku: $sku
quantity: $quantity
partner_line_item_id: $partner_line_item_id
price: $price
}
shipping_lines: {
carrier: "cheapest"
method: "Economy Domestic"
title: "Manual Order Shipping Method"
price: "0.00"
}
}
) {
request_id
complexity
order {
id
legacy_id
order_number
partner_order_id
shop_name
fulfillment_status
order_date
created_at
line_items {
total_count
edges {
node {
id
legacy_id
sku
partner_line_item_id
product_id
product_name
fulfillment_status
warehouse
quantity_allocated
warehouse_id
locked_to_warehouse_id
created_at
updated_at
order_id
}
cursor
}
}
shipping_address {
first_name
last_name
company
address1
address2
city
state
state_code
zip
country
country_code
email
phone
}
}
}
}
User:486349
Account:84583
shop-name: ship-hero-api