       |> Map.merge(security_params)
       |> Map.merge(shipment_request_params(shipment, service))
 
-    {:ok, response} = Client.post("/Ship", params, [{"Content-Type", "application/json"}])
+    response = Client.post("/Ship", params, [{"Content-Type", "application/json"}])
 
     with_response response do
       body = response.body["ShipmentResponse"]

      |> Map.merge(security_params)
      |> Map.merge(rate_request_params(shipment, service))

    {:ok, response} = Client.post("/Rate", params, [{"Content-Type", "application/json"}])

    with_response response do
      body = response.body["RateResponse"]

      |> Map.merge(security_params)
      |> Map.merge(xav_params)

    response = Client.post("/XAV", params, [{"Content-Type", "application/json"}])

    with_response response do
      body = response.body["XAVResponse"]
