Hello @tomasw
shiphero working is perfect now our side but i have one issues your(shiphero) backend side i share a video please check it what i am doing there.
please give me Solution.
country related issues. i pass Out United states of America but there(shiphero backend) is empty.
Thanks agin!
Bhavesh
tomasw
April 18, 2021, 3:19pm
43
Hi @bhavesh !
Try by sending US instead (Ref.: Gotcha’s – Developer Resources | ShipHero )
Thanks again!
Tom
Hello @tomasw !
I hope doing great @tomasw
how to add order in coupon amount in shiphero order.
if you have any idea please share with me.
Thanks again!
Bhavesh
tomasw
May 21, 2021, 2:55pm
45
Hi @bhavesh !
Thanks! hope you are doing great as well!
Would total_discounts: “20.00” work for you?
You can add it while trying to generate the order
Thanks again!
Tom
1 Like
Hello @tomasw
Thanks working properly total_discounts.
how can check order states order processing, order cancle and order successfully.
Please give me solution.
Thanks again!
Bhavesh
Hello @tomasw !
Thanks! hope you are doing great as well!
Please give Solution product quantity update in shiphero.
how can check order states order processing, order cancle and order successfully.
Thanks again!
Bhavesh
tomasw
June 22, 2021, 12:31pm
48
Hi @bhavesh !
Do you need to check the status of the order?
In that case, you can use the order query, something like this:
query {
order(id: "195249449") {
request_id
complexity
data {
fulfillment_status
}
}
}
You need to update the inventory on the warehouse or the quantity of the product on the order?
Thanks again!
Tom
bhavesh
September 23, 2021, 7:19am
49
Hello,
How to check order tracking number marge or not
and which order number with merged?
can you please give me solution with tracking number
Thanks again!
Bhavesh
Theresa
September 28, 2021, 9:13pm
50
Hi Bhavesh,
This query will give you any merged orders:
query{
order(id: "<order id here>"){
request_id
complexity
data{
merged_orders{
order_id
is_master
}
}
}
}
bhavesh
November 9, 2021, 2:48pm
51
Hello gays,
Only php users are use this functions.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://public-api.shiphero.com/auth/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"refresh_token\":\"XXXXXXXXyour tokenXXXXXXXXXXX\"}",
CURLOPT_HTTPHEADER => array(
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if($err) {
echo "cURL Error #:" . $err;
} else {
$response;
}
$result = json_decode($response);
$bearer = $result->access_token;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://public-api.shiphero.com/graphql');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode(array("query"=>$body))); //$body add your query like order create, get treacking number etc.
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
$headers = array();
$headers[] = 'Accept-Encoding: gzip, deflate, br';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Accept: application/json';
$headers[] = 'Connection: keep-alive';
$headers[] = 'Origin: chrome-extension://flnheeellpciglgpaodhkhmapeljopja';
$headers[] = 'Authorization: Bearer '.$bearer;
$headers[] = 'Refresh_token: XXXXXXXXyour tokenXXXXXXXXXXX';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
//curl_close($ch);
$new_result = json_decode($result);
print_r($new_result);
Thanks in advance!
Bhavesh
1 Like
tomasfd
November 9, 2021, 7:14pm
52
Hello @bhavesh !
Could you please further explain your request? I’m not sure I understand what is the issue you are having.
If you are experiencing an error with an API call please remember to post the request ID so we can trace it.
Have a great day!
Tomas