Address is null on shipments and shipping labels

Hello,

We have some logic that processes shipments and shipping labels via webhook. When the webhook comes in, we fetch the details from the GQL API and store them in a database for analytics.

As of today, however, we are encountering errors because it seems that the Shiphero API is no longer returning data for the address field on either the Shipment object or the ShippingLabel object. Instead, the field is null.

If this is an intentional change, please advise as to how we should collect the address information. Should we use the order address, or something else?

Example request that I ran to verify this was the case:

query getShipmentFull {
  shipment(id: "U2hpcG1lbnQ6MTEwMDA5NjIy") {
      request_id
      data {
        address {
          name
          address1
          address2
          city
          state
          country
          zip
          phone
        }
        id
        legacy_id
        order_id
        created_date
        shipping_labels {
          id
          legacy_id
          shipment_id
          order_id
          address {
            name
            address1
            address2
            city
            state
            country
            zip
          }
          created_date
          }
      }
  }
}

Response:

{
  "data": {
    "shipment": {
      "request_id": "5fadabd261d4ed2c202b06b0",
      "data": {
        "address": null,
        "id": "U2hpcG1lbnQ6MTEwMDA5NjIy",
        "legacy_id": 110009622,
        "order_id": "T3JkZXI6MTU2OTE5MjQx",
        "created_date": "2020-11-12T21:12:21",
        "shipping_labels": [
          {
            "id": "U2hpcHBpbmdMYWJlbDo4MDQzNDI3MQ==",
            "legacy_id": 80434271,
            "shipment_id": "U2hpcG1lbnQ6MTEwMDA5NjIy",
            "order_id": "T3JkZXI6MTU2OTE5MjQx",
            "address": null,
            "created_date": "2020-11-12T21:12:21"
          }
        ]
      }
    }
  }
}

Hi @jfmontanaro!
Are you currently still seeing this format change?
It should be displaying the address correctly now, but it might be the same case as Date format changed unexpectedly, but let me confirm with the team.
Thanks again for reporting these changes!
Tom

Hi Tomas,

It looks like the address is now showing up again on shipping labels, thanks for the update.

1 Like