Retrive Batch ID from Bulk Ship

Is it possible to query batches from bulk ship? If not, is it possible to query the batch ID that corresponds to an order?

Hi @ben-merchraise
You could make this by using the order_history query, something like this:

query{
  order_history(order_id: "138851624"){
    request_id
    complexity
    data(first: 2) {
      edges {
        node {
          information
          created_at
        }
      }
    }
  }
}

And the response should look something like this:

{
  "data": {
    "order_history": {
      "request_id": "5f3295f6d16d051af71dd6f8",
      "complexity": 3,
      "data": {
        "edges": [
          {
            "node": {
              "information": "Order Created.",
              "created_at": "2020-07-29T13:57:05+00:00"
            }
          },
          {
            "node": {
              "information": "This order shipped by Shipper printed using bulk ship, Batch: <a href=/dashboard/bulk-ship/batch/425778>#425778</a>",
              "created_at": "2020-07-29T14:01:40+00:00"
            }
          }
        ]
      }
    }
  }
}

Let me know I can help you with anything else,
Thanks!