     lead =
       load("lead.json")
       |> Map.merge(payload)
-      |> Map.merge(%{"id" => lead_id})
+      |> Map.put("id", lead_id)
 
     lead = parse_dates_to_strings(lead)
     send(self(), {:closex_mock_client, :update_lead, [lead_id, payload, opts]})

  def get_organization(id, opts) do
    organization =
      load("organization.json")
      |> Map.merge(%{"id" => id})

    send(self(), {:closex_mock_client, :get_organization, [id, opts]})
    {:ok, organization}

  def get_lead_custom_field(id, opts) do
    lead_custom_field =
      load("lead_custom_field.json")
      |> Map.put("id", id)

    send(self(), {:closex_mock_client, :get_lead_custom_field, [id, opts]})
    {:ok, lead_custom_field}
