Unable to create shipments

Hello Shiphero team

We’re trying to create shipments via API and we’re getting successful response. However we can’t see the shipments created anywhere in the UI. Can I get some help in checking why please? I’ve added request and response below. We’re trying to send the label URI from our system to Shiphero and we’re trying to send it through shipment creation. Please advise this is the correct way to do it. Thank you!

Array
(
[Post Request labelUri URL : 107632] =>
[Post Request labelUri Data : 107632] => mutation {
shipment_create(
data: {
order_id: “T3JkZXI6MjI4NjIyNzc3”
warehouse_id: “V2FyZWhvdXNlOjc3NDEx=”
address: {
name: “Robert N Charlton”
address1: “70 Ponteland Rd”
address2: “”
city: “HUBBERHOLME”
state: “”
zip: “BD23 8LT”
country: “United Kingdom”
phone: “079 2596 7537”
}
line_items:[
{
line_item_id: “TGluZUl0ZW06NjA2Njg0MjY5”
quantity: 10
}
]
labels: {
address: {
name: “Robert N Charlton”
address1: “70 Ponteland Rd”
address2: “”
city: “HUBBERHOLME”
state: “”
zip: “BD23 8LT”
country: “United Kingdom”
phone: “079 2596 7537”
}
carrier: “Royal Mail”
shipping_name: “royal_mail / RoyalMail48”
shipping_method: “royal_mail / RoyalMail48”
cost: “0.00”
dimensions: { weight: “0”, height: “0”, width: “0”, length: “0” }
label: {
pdf_location: “somedomain.com
}
line_item_ids: “284753769”
tracking_number: “1111111111111”
}
notify_customer_via_shiphero: true
notify_customer_via_store: true
shipped_off_shiphero:true
}
) {
request_id
complexity
shipment {
id
legacy_id
order_id
user_id
warehouse_id
pending_shipment_id
address {
name
address1
address2
city
state
country
zip
phone
}
picked_up
needs_refund
refunded
delivered
shipped_off_shiphero
dropshipment
created_date
line_items(first: 2) {
edges {
node {
id
line_item_id
quantity
}
}
}
}
}
}
[Post Response labelUri Data : 107632] => Array
(
[data] => Array
(
[shipment_create] => Array
(
[request_id] => 61964b30c0bb4232fb66bcd1
[complexity] => 10
[shipment] => Array
(
[id] => U2hpcG1lbnQ6MjA0OTg0MzAw
[legacy_id] => 204984300
[order_id] => T3JkZXI6MjI4NjIyNzc3
[user_id] =>
[warehouse_id] => V2FyZWhvdXNlOjc3NDEx
[pending_shipment_id] =>
[address] => Array
(
[name] => Robert N Charlton None
[address1] => 70 Ponteland Rd
[address2] =>
[city] => HUBBERHOLME
[state] =>
[country] => United Kingdom
[zip] =>
[phone] =>
)

                                [picked_up] => 
                                [needs_refund] => 
                                [refunded] => 
                                [delivered] => 
                                [shipped_off_shiphero] => 1
                                [dropshipment] => 
                                [created_date] => 2021-11-18T12:46:41
                                [line_items] => Array
                                    (
                                        [edges] => Array
                                            (
                                                [0] => Array
                                                    (
                                                        [node] => Array
                                                            (
                                                                [id] => U2hpcHBlZExpbmVJdGVtOjMyMTkzNDU1Mw==
                                                                [line_item_id] => TGluZUl0ZW06NjA2Njg0MjY5
                                                                [quantity] => 10
                                                            )

Hello @April!
We’re looking into it, and we will let you know as soon as we have an answer.
Have a nice day!
Tomas

Hi @tomasfd - do you have an update for me? :slight_smile:

Hello @april!

I appreciate your patience.

I checked the four orders present in the dashboard, and I can see the shipments created in all of them. If you check the right side panels and scroll down a bit, you will find a shipments panel:


Please let me know if you see them as well.

If you didn’t know, if you follow this link, Order Fulfillment – Developer Resources | ShipHero, you will find the whole explanation of how to fulfill an order using the Public API as there are some steps required after creating the shipment to mimic the process as it works using the UI.

Have a great day!
Tomas

Hi Tomas

Thanks for your reply! I was able to find the shipments being created, however I need your input on where we should send the label URI from our system to Shiphero.

At the moment we are sending to pdf_location

Our expectation is that the link will appear when we click on VIEW LABEL as shown below, can you advise if this is correct?

Also when we create shipments, are they also supposed to appear in above interface? It seems they are not being created here so wondering where the disconnect might be?

Thanks for your help!

Hi @tomasfd - do you have any news for me? :slight_smile:

Hello @april!
I hope you are doing great today!
I’ve been running some tests, and I’ve come up with the following:

  1. The correct attribute inside labels to have the label display when you click there would be: paper_pdf_location
  2. Shipments should appear there, even when you haven’t completed the whole Flow. I’m still looking into this issue. Could you try adding the customer_account_id field? It goes in the same level as order_id, you should use this when you are a 3PL acting on behalf of one of your customers.
    Please let me know if that worked for you.
    Have a nice day!
    Tomas

Hi Tomas

Thanks for your reply! Hope you’re having a good Friday so far.

We’ve done the suggested changes but unfortunately we are still not able to see the shipments created in the shipments report page - https://shipping.shiphero.com/shipments-report/

Can you confirm that this is where we’re supposed to be able to access/view the location of the pdf file we sent through the API?

Hi @april!

Thank you, you too!

Yes, that is correct. That is where you should see the shipments you created, even if they were made using the API. That “View Label” should also link to the label pdf link provided in the paper_pdf_location field.

Do you mind sharing with me the request ID for the updated query? I’d like to trace it and why it does not appear on that screen.

Kind regards,
Tomas

Hi Tomas

Thanks for the speedy reply!

Here is the request ID for my most recent test - [request_id] => 61a0cbe066651bc6827ae7f7

Hello @april!
I’ve been running some tests, and I think something is not working correctly. My first tests were on a brand account, but I’m getting the same behavior as you in my 3PL test account.
I will need to do further research and let you know as soon as I have an update.
Have a lovely weekend!
Tomas

Hi Tomas

Hope you’re doing great.

Can you let me know if there is any update? This is currently a blocker for us :frowning:

Hello @april!
The engineering team is still looking at the issue. It is still in the backlog, but there is no ETA.
Feel free to ask for updates as many times as you require.
Have a nice weekend!
TomasFD

Hello Tomas

Do you have any new updates for me? Thanks.

Hi @april
There is no news yet! I put a priority tag on it, but we are in a code freeze for peak so it will not be during this holiday time period.

Hi Theresa

Happy new year! I just wanted to check if we expect to have some update around this soon?

Hello @april!
We still don’t have an ETA on this issue. I will repost the need for an update.
Best,
TomasFD

Hi Tomas

Any news? :slight_smile:

Hi Tomas

Are you able to provide an estimated timeline on when we can expect some update on this topic?

Appreciate an update. Thanks!

Hello @april!
Apologies for the late answer.
EN team is working on it, they didn’t provide an ETA yet.
Kind regards,
TomasFD