Hi,
We have created a webhook in shiphero almost 1 year ago. Its working fine always.
But Nowdays, I am not getting the Tracking ID in my payload. I have attached my payload as
{“test”: “0”, “fulfillment”: {“shipment_id”: 94943158, “partner_order_id”: “AUS1100”, “order_number”: “AUS1100”, “warehouse”: “Primary”, “warehouse_id”: 7841}}
I think there is something missing or Shiphero changed anything. Please let me know.
Regards !!
I’ve been encountering similar problems just recently. I solved it by querying the API directly for the order to get the shipments, then querying for the shipment details (shipping_labels
, line_items
etc.) Kind of a pain but it does work.
It’s also a good idea to wait some period of time (I’m giving it 60 seconds) after receiving the webhook, because if you query it as soon as the webhook comes in the API doesn’t always give you the full data. E.g. the list of line_items
was sometimes incomplete in my experience.
Can you paste your API query here. How you have implemented. It will help me a lot.
Regards !
Hi,
I have send this query to get the shipping label and other shipping details
query {
shipments(order_id: “142110345”) {
request_id
complexity
data {
edges {
node {
id
legacy_id
order_id
user_id
warehouse_id
pending_shipment_id
address {
name
address1
address2
city
state
country
zip
phone
}
shipped_off_shiphero
dropshipment
created_date
line_items(first: 10) {
edges {
node {
line_item_id
quantity
}
}
}
shipping_labels {
id
legacy_id
account_id
tracking_number
carrier
shipping_name
shipping_method
cost
profile
packing_slip
warehouse
insurance_amount
carrier_account_id
source
created_date
}
}
}
}
}
}
But I get this response
{“data”:{“shipments”:{“request_id”:“5f3cf3aac10e28be300f47ae”,“complexity”:1001,“data”:{“edges”:[]}}}}
I got the edges array blank. Please let me know why this coming
Regards !!
Hi @Gauravtyagi
Thanks for that description!
We have been doing some work on our Webhooks lately and some might have not triggered as expected unfortunately, but the issue should be resolved by now.
Is it still happening for current orders? (Change was deployed last night). Also do you need us to re-trigger any Webhook for you? We could do that manually if needed.
As for that order id 142110345 we don’t have records or any shipments at the moment, you can try with for example order id 142620816 and see how it looks like
Thanks in advance!
@jfmontanaro that is an excellent workaround!! thanks! It should not require that, but that might be definitely useful to have (I’ve seen some integrations that just return 500s instead but that will stop our attempt of re-sending the webhook, so it will not work either)**
Hi @tomasw,
We don’t get the payload like it expected before. This is the recent payload which we get
{“test”: “0”, “fulfillment”: {“shipment_id”: 95342274, “partner_order_id”: “2705248616522”, “order_number”: “NZ247311”, “tracking_number”: “VRV0263837”, “line_items”: [{“id”: “5895577141322”, “shiphero_id”: 406652747, “quantity”: 2, “sku”: “GOLI60”, “serial_numbers”: [], “package”: “Package #1”, “lot_id”: null, “lot_name”: null, “lot_expiration”: null}], “custom_tracking_url”: “https://www.nzcouriers.co.nz/nzc/servlet/ITNG_TAndTServlet?page=1&VCCA=Enabled&Key_Type=CustomerLabel&customer_number=2634626&consignment_id=VRV0263837”, “shipping_method”: “GosweetSpotPayloadNew”, “shipping_carrier”: “api”, “shipping_address”: {“name”: “Mayethri Naidu”, “address1”: “13A SUNNYSIDE CRESCENT”, “address2”: “PAPATOETOE”, “address_city”: “AUCKLAND”, “address_zip”: “2025”, “address_state”: “AUK”, “address_country”: “NZ”}, “warehouse”: “Primary”, “warehouse_id”: 7841, “package”: {“length”: 10.24, “width”: 7.48, “height”: 1.97, “weight”: 70.548}, “created_at”: “2020-08-20 09:02:44”}, “label_cost”: “2.54”}
In this payload please check line_items array. In this array the custom description is missing it is coming before but now its not coming. Please check your webhooks once and let us know what changed you did
Regards !!
Hi @Gauravtyagi
I’m confirming with our engineering team this. I will let you know as soon as they confirm
Thanks again!
Tom
Hi again @Gauravtyagi
Is there any chance you might have an example of what you were receiving before?
Thanks again!
Tom
No, I don’t think I have any example. But have you changed anything. I will also check if I found any example
thanks
No problem!, thanks for checking @Gauravtyagi
I think that for that product the customs_description seems to be empty, but is there any chance you could point me to a SKU that has the field you are expecting to see?
Just to be 100% sure we are adding the field you are expecting to see and not other
Thanks again!
Tom
Hi again @Gauravtyagi
Field should be available now on the webhook
Thanks again!
Tom
Hi, @tomasw
I think webhook stop working again. I can’t get the payload now. Can you please check whats wrong with webhook now.
Regards !
Hi @Gauravtyagi
Do you have an order id or shipment I can search for?
The reason I as is because it looks like there have been some shipment_update
webhooks sent lately for your account, for example at 8/21/2020, 8:00:05 AM
Thanks in advance!
Tom
Yes, Please check this order ID AUS36236.
Yes Shipement update Webhook is running for our App. So please check is it send the custom description or not.
Regards !!
Hi @Gauravtyagi
That might be because the order was shipped on Shopify.
As for the custom, description would be on the line items section, something like:
"line_items": [{
"id": "MO191-301705549",
"shiphero_id": 407839455,
"quantity": 1,
"sku": "1122334581",
"serial_numbers": [],
"customs_description": "a description",
"package": "Package #1",
"lot_id": null,
"lot_name": null,
"lot_expiration": null
}]
Let me know if you are still not able to see it as customs_description
Thanks again!
Tom
Hi,
I have one more questions. We have set the custom shipping method name Australia Dangerous Good. Now we got the payload in this shipping method like this
{“shipping_method”: “Australia dangerous good”, “order_id”: 144408383, “profile”: “default”, “fulfillment_status”: “pending”, “order_number”: “AUS36504”, “shop_name”: “thebrandoutletoz.myshopify.com”, “account_id”: 4378, “partner_order_id”: “2596103454801”, “shipping_name”: “None”, “from_address”: {“name”: “The Brand Outlet”, “company_name”: “The Brand Outlet”, “address_1”: “404 Miller St”, “address_2”: “”, “email”: “support@thebrandoutlet.co.nz”, “city”: “Hastings”, “state”: “HKB”, “zip”: “4120”, “country”: “NZ”, “phone”: “068766773”}, “to_address”: {“name”: “Phil Green”, “company_name”: “”, “address_1”: “8A Flack Street”, “address_2”: “”, “email”: “damiengreen04@gmail.com”, “city”: “Ballan”, “state”: “VIC”, “zip”: “3342”, “country”: “AU”, “phone”: “0457005746”}, “packages”: [{“weight_in_oz”: 39.8014, “width”: 1.0, “length”: 1.0, “height”: 1.0, “line_items”: [{“sku”: “10004”, “tariff_code”: “00.00.00.000”, “price”: 98.0, “customs_description”: “UN1266”, “customs_value”: “98.00”, “line_item_id”: 411866190, “quantity”: 1, “weight”: 38.8014, “partner_line_item_id”: “8586323329105”, “id”: “8586323329105”, “country_of_manufacture”: “”, “product_name”: “Yves Saint Laurent Kouros Silver 100ml EDT”, “name”: “Yves Saint Laurent Kouros Silver 100ml EDT”, “ignore_on_customs”: false}], “box_code”: “custom”}]}
In this method I send the 2.54cm x 2.54cm x 2.54 cm 1.13kg shipping box dimensions check this screenshot http://prntscr.com/u8quej. But in this payload I don’t get these details.
Please let me know about this how can we get these details in payload
Regards !!
Hi @Gauravtyagi!
That is correct, it might be because we send the information as inches
“weight_in_oz”: 39.8014, “width”: 1.0, “length”: 1.0, “height”: 1.0,
Which would be the same as:
2.54cm x 2.54cm x 2.54 cm 1.13kg
Let me know if this is not what you were referring to
Thanks again!
Tom
Hi,
I have another question regarding the shiphero Payload.
We getting the payload then we generate the PDF file from that payload and send back to SH in response. The question is we want to attached the another PDF.
We currently send back response like this
{“code”: “200”,“shipping_method”:“DHL_Invoice”,“tracking_number”:“7618218904”,“label”: “https://akinaserver.com/printer/upload/AUS36728_label.pdf","customs_info”: “https://akinaserver.com/printer/upload/AUS36728.pdf, https://akinaserver.com/printer/upload/AUS36729.pdf","shipping_carrier”: “DHL Express”,“Content-Type”:“application/json”}
You can see in custom info fields we have passed two PDF URL. But it giving us error in SH.
So Please let us know how can we send it back or their is another fields for this.
Regards !!
Hi @Gauravtyagi!
The customs_info
field will only allow you to send one file.
Try by sending only one file, and if you need you could save those files as one PDF and sending it as one PDF file.
I could still make a Feature Request for us to support multiple custom_info
PDFs, but for now, it doesn’t work that way as far as I could check
Let me know if this doesn’t help!
Thanks again!
Tom
Hi,
I have another question.
We have set the custom shipping method in SH name Australian Dangerous Good. We get the payload there and then we create PDF and level and send back the payload to SH then the order is print. Now the problem is we set method for Australian Dangerous Good But the Tracking url is still a NZ couriers. We need to update it to Australian Courier. So please change this Tracking URL or let us know
Regards !!