Create shipping label missing tracking URL input

Hey Team,

It seems like passing in Tracking URL via the API for shipments isn’t quite working as expected.

  1. It is available in the create shipment shipping label input (https://developer.shiphero.com/wp-content/uploads/spectaql/#definition-CreateShipmentShippingLabelInput). However, when I try passing in a url there, it doesn’t work. It just remains as none.

  2. We are using (https://developer.shiphero.com/wp-content/uploads/spectaql/#definition-CreateShippingLabelInput) to add labels to existing shipments, but it seems like there isn’t the ability to pass in a Tracking URL. Can this be added as a possible field? Seems like it should be there since it’s possible on the shipment shipping label input

Thank you!
Daniel

Hello Daniel,
For number 1, can you share an example with a request ID?
I will forward your feedback for number 2.
Have a nice day!

yup! here is both the full mutation and the raw response:

mutation {
  shipment_create(
    data: {
      order_id: "T3JkZXI6NDg0MDEyNTcx"
      warehouse_id: "V2FyZWhvdXNlOjk2ODc5"
      address: {
        name: "John Deer"
        address1: "123 Main St"
        address2: "Apt 5"
        city: "San Francisco"
        state: "CA"
        zip: "94105"
        country: "US"
      }
      line_items: [
        {
          line_item_id: "TGluZUl0ZW06MTE5NzQ4MDA3Ng=="
          quantity: 5
        }
      ]
      labels: [
        {
          address: {
            name: "John Deer"
            address1: "123 Main St"
            address2: "Apt 5"
            city: "San Francisco"
            state: "CA"
            zip: "94105"
            country: "US"
          }
          carrier: "carrier"
          shipping_name: "shipping_name"
          shipping_method: "shipping_method"
          cost: "1.1"
          dimensions: {
            length: "1.0"
            width: "2.0"
            height: "3.0"
            weight: "4.0"
          }
          line_item_ids: ["TGluZUl0ZW06MTE5NzQ4MDA3Ng=="]
          label: {
            pdf_location: "pdf_location"
          }
          tracking_number: "tracking_number"
          tracking_url: "tracking_url"
        }
      ]
      shipped_off_shiphero: true
      customer_account_id: "QWNjb3VudDo3NDE0OQ=="
    }
  ) {
    request_id
    shipment {
      id
      warehouse_id
      created_date
      address {
        name
        address1
        address2
        city
        state
        zip
        country
      }
      line_items(first: 25) {
        pageInfo {
          hasNextPage
          endCursor
        }
        edges {
          node {
            shipping_label_id
            quantity
            line_item {
              locked_to_warehouse_id
              sku
              shipped_line_item_lots {
                lot_id
                lot_expiration_date
              }
              product {
                kit
                kit_components {
                  sku
                  quantity
                }
              }
            }
          }
        }
      }
      shipping_labels {
        id
        status
        box_id
        box_name
        tracking_number
        tracking_url
        shipping_method
        carrier
        cost
        dimensions {
          length
          width
          height
          weight
        }
      }
    }
  }
}
response = {
    "data": {
        "shipment_create": {
            "request_id": "6679df66067451fdef0c69a2",
            "shipment": {
                "id": "U2hpcG1lbnQ6NDY4Mjk5OTc4",
                "warehouse_id": "V2FyZWhvdXNlOjk2ODc5",
                "created_date": "2024-06-24T21:04:38",
                "address": {
                    "name": "John Deer None",
                    "address1": "123 Main St",
                    "address2": "Apt 5",
                    "city": "San Francisco",
                    "state": "CA",
                    "zip": null,
                    "country": "US",
                },
                "line_items": {
                    "pageInfo": {
                        "hasNextPage": false,
                        "endCursor": "YXJyYXljb25uZWN0aW9uOjA=",
                    },
                    "edges": [
                        {
                            "node": {
                                "shipping_label_id": "U2hpcHBpbmdMYWJlbDozNTI4MzcwMzU=",
                                "quantity": 5,
                                "line_item": {
                                    "locked_to_warehouse_id": null,
                                    "sku": "sku12345",
                                    "shipped_line_item_lots": [],
                                    "product": {"kit": false, "kit_components": []},
                                },
                            }
                        }
                    ],
                },
                "shipping_labels": [
                    {
                        "id": "U2hpcHBpbmdMYWJlbDozNTI4MzcwMzU=",
                        "status": "valid",
                        "box_id": null,
                        "box_name": null,
                        "tracking_number": "tracking_number",
                        "tracking_url": "",
                        "shipping_method": "shipping_method",
                        "carrier": "carrier",
                        "cost": "1.10",
                        "dimensions": {
                            "length": "1.00 inch",
                            "width": "2.00 inch",
                            "height": "3.0000 inch",
                            "weight": "4.0000 oz",
                        },
                    }
                ],
            },
        }
    },
    "extensions": {
        "throttling": {
            "estimated_complexity": 10,
            "cost": 11,
            "cost_detail": {
                "shipment_create": {
                    "items_count": 1,
                    "cost": 10,
                    "total_cost": 11,
                    "fields": {},
                }
            },
            "user_quota": {
                "credits_remaining": 1397,
                "max_available": 2002,
                "increment_rate": 30,
            },
        }
    },
}

@tomasfd any thoughts?

Hello @daniellanger!
I’m still troubleshooting this one. It looks like we may have a bug.

any update @tomasfd ?

@daniellanger

It looks like this for that case because only tracking_url was passed as the URL and not a full URL. But if you send a full URL like https://my.tracking.url/123456789 you should see it reflected when you click the “tracking_number” link. We use the tracking_number value for the visible text of the link.

image

Do you have a case where you sent a full URL and it wasn’t reflected? I was not able to find any on the logs for your account.

Have a nice day!

Hey @tomasfd

We just tried sending in the full URL as you suggested and while we are able to see it in the shiphero dashboard as the “tracking_number” link, it is still being returned as an empty string in the API.

Request Id: 66843a83eea8ec36cd913296
Order Id: T3JkZXI6NDg2NDg5NzY5

Thanks

Hi @daniellanger

I was able to reproduce the issue, and I escalated it to our engineering team so they could investigate further.

I’ll keep you updated.

Have a nice day!

1 Like

Hi @daniellanger

The team made a fix about this. Can you confirm that it is working?

Have a nice day!