       }
     })
 
-    %{transfer: transfer}
+    %{transfer: transfer, claim_id: transfer.body["data"]["recipient"]["credential"]["id"]}
   end
 
   describe "POST /claims" do
-    test "with raw data" do
-      resp = "claims"
-      |> post!(construct_claim())
+    test "with raw data", %{claim_id: claim_id} do
+      resp = "claims"
+      |> post!(construct_claim(claim_id))
       |> assert_claim()
 
       assert %{

      |> assert_claim()
    end

    test "401 when token is invalid" do
      %{"data" => %{"id" => id}} = "claims"
      |> post!(construct_claim())
      |> get_body()

      path = "claims/" <> to_string(id)

      } = resp
    end

    test "with invalid credential type", %{claim_id: claim_id} do
      resp = "claims"
      |> post!(construct_claim(claim_id, %{type: "card-token", token: "invalid_token"}))
      |> get_body

      assert %{
